forked from Imagelibrary/rtems
New.
This commit is contained in:
38
contrib/crossrpms/gcc/base-go.add
Normal file
38
contrib/crossrpms/gcc/base-go.add
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
%if %build_infos
|
||||||
|
%if %build_go
|
||||||
|
# ==============================================================
|
||||||
|
# @rpmprefix@gcc-go-common
|
||||||
|
# ==============================================================
|
||||||
|
%package -n @rpmprefix@gcc-go-common
|
||||||
|
Summary: Base package for rtems gcc/go compiler (go)
|
||||||
|
Group: Development/Tools
|
||||||
|
Version: %{gcc_rpmvers}
|
||||||
|
License: GPL
|
||||||
|
|
||||||
|
Requires(post): /sbin/install-info
|
||||||
|
Requires(preun): /sbin/install-info
|
||||||
|
|
||||||
|
%description -n @rpmprefix@gcc-go-common
|
||||||
|
RTEMS is an open source operating system for embedded systems.
|
||||||
|
|
||||||
|
This is the files for gcc/go (go) that are shared by all targets.
|
||||||
|
|
||||||
|
%files -n @rpmprefix@gcc-go-common
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%sysdir %{_prefix}
|
||||||
|
%sysdir %{_prefix}/share
|
||||||
|
|
||||||
|
%sysdir %{_infodir}
|
||||||
|
%ghost %{_infodir}/dir
|
||||||
|
%{_infodir}/gccgo.info*
|
||||||
|
|
||||||
|
%post -n @rpmprefix@gcc-go-common
|
||||||
|
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccgo.info* || :
|
||||||
|
|
||||||
|
%preun -n @rpmprefix@gcc-go-common
|
||||||
|
if [ $1 -eq 0 ]; then
|
||||||
|
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccgo.info* || :
|
||||||
|
fi
|
||||||
|
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
43
contrib/crossrpms/gcc/target-go.add
Normal file
43
contrib/crossrpms/gcc/target-go.add
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
%if %build_go
|
||||||
|
# ==============================================================
|
||||||
|
# @rpmprefix@@tool_target@-go
|
||||||
|
# ==============================================================
|
||||||
|
%package -n @rpmprefix@@tool_target@-gcc-go
|
||||||
|
Summary: Go support (go) for @tool_target@-gcc
|
||||||
|
Group: Development/Tools
|
||||||
|
Version: %{gcc_rpmvers}
|
||||||
|
License: GPL
|
||||||
|
|
||||||
|
%if %build_infos
|
||||||
|
Requires: @rpmprefix@gcc-go-common
|
||||||
|
%endif
|
||||||
|
Requires: @rpmprefix@@tool_target@-gcc = %{gcc_rpmvers}-%{release}
|
||||||
|
|
||||||
|
%description -n @rpmprefix@@tool_target@-gcc-go
|
||||||
|
RTEMS is an open source operating system for embedded systems.
|
||||||
|
|
||||||
|
This is the gcc/go compiler for @tool_target@
|
||||||
|
|
||||||
|
%files -n @rpmprefix@@tool_target@-gcc-go -f build/files.go
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%sysdir %{_bindir}
|
||||||
|
%{_bindir}/@tool_target@-gccgo%{_exeext}
|
||||||
|
|
||||||
|
%sysdir %{_mandir}
|
||||||
|
%sysdir %{_mandir}/man1
|
||||||
|
%{_mandir}/man1/@tool_target@-gccgo*.1*
|
||||||
|
|
||||||
|
%sysdir %{_libexecdir}
|
||||||
|
%dir %{_libexecdir}/gcc
|
||||||
|
%dir %{_libexecdir}/gcc/@tool_target@
|
||||||
|
%dir %{_libexecdir}/gcc/@tool_target@/%{gcc_version}
|
||||||
|
%{_libexecdir}/gcc/@tool_target@/%{gcc_version}/go1%{_exeext}
|
||||||
|
|
||||||
|
%sysdir %{_gcclibdir}
|
||||||
|
%dir %{_gcclibdir}/gcc
|
||||||
|
%dir %{_gcclibdir}/gcc/@tool_target@
|
||||||
|
%dir %{_gcclibdir}/gcc/@tool_target@/%{gcc_version}
|
||||||
|
%sysdir %{_prefix}
|
||||||
|
%{_gcclibdir}/gcc/@tool_target@/%{gcc_version}/go
|
||||||
|
|
||||||
|
%endif
|
||||||
Reference in New Issue
Block a user