- Package default D compiler.
OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc?expand=0&rev=92
This commit is contained in:
parent
11a3a4531f
commit
916b6e7846
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri May 10 07:23:58 UTC 2019 - rguenther@suse.com
|
||||
|
||||
- Package default D compiler.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 30 09:09:39 UTC 2019 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
|
62
gcc.spec
62
gcc.spec
@ -34,6 +34,11 @@ Name: gcc
|
||||
# alpha hppa arm
|
||||
%define build_ada 0
|
||||
%endif
|
||||
%ifarch x86_64 %ix86 %arm aarch64 riscv64 s390x
|
||||
%define build_d 1
|
||||
%else
|
||||
%define build_d 0
|
||||
%endif
|
||||
Url: http://gcc.gnu.org/
|
||||
%define gcc_version 9
|
||||
%define gcc_suffix 9
|
||||
@ -372,6 +377,39 @@ Requires: gcc-go = %{version}
|
||||
The system GNU Go Compiler 64bit support.
|
||||
|
||||
|
||||
%package -n gcc-d
|
||||
Summary: The system GNU D Compiler
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
Requires: gcc = %{version}
|
||||
Requires: gcc%{gcc_version}-d
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
|
||||
%description -n gcc-d
|
||||
The system GNU D Compiler.
|
||||
|
||||
%package -n gcc-d-32bit
|
||||
Summary: The system GNU D Compiler
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
Requires: gcc%{gcc_version}-d-32bit
|
||||
Requires: gcc-d = %{version}
|
||||
|
||||
%description -n gcc-d-32bit
|
||||
The system GNU D Compiler 32bit support.
|
||||
|
||||
%package -n gcc-d-64bit
|
||||
Summary: The system GNU D Compiler
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
Requires: gcc%{gcc_version}-d-64bit
|
||||
Requires: gcc-d = %{version}
|
||||
|
||||
%description -n gcc-d-64bit
|
||||
The system GNU D Compiler 64bit support.
|
||||
|
||||
|
||||
%prep
|
||||
|
||||
%install
|
||||
@ -391,6 +429,9 @@ for program in \
|
||||
%if %{build_ada}
|
||||
gnat gnatbind gnatbl gnatchop gnatclean gnatfind gnatkr \
|
||||
gnatlink gnatls gnatmake gnatname gnatprep gnatxref gprmake \
|
||||
%endif
|
||||
%if %{build_d}
|
||||
gdc \
|
||||
%endif
|
||||
gcc-ar gcc-nm gcc-ranlib \
|
||||
; do
|
||||
@ -407,6 +448,9 @@ for man1 in \
|
||||
cpp \
|
||||
gfortran \
|
||||
gccgo \
|
||||
%if %{build_d}
|
||||
gdc \
|
||||
%endif
|
||||
; do
|
||||
ln -sf $man1-%{gcc_suffix}.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/$man1.1.gz
|
||||
done
|
||||
@ -545,6 +589,13 @@ fi
|
||||
%ghost %{_sysconfdir}/alternatives/gofmt
|
||||
%doc %{_mandir}/man1/gccgo.1.gz
|
||||
|
||||
%if %{build_d}
|
||||
%files -n gcc-d
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/gdc
|
||||
%doc %{_mandir}/man1/gdc.1.gz
|
||||
%endif
|
||||
|
||||
%if %{separate_bi32}
|
||||
|
||||
%files -n gcc-32bit
|
||||
@ -577,6 +628,11 @@ fi
|
||||
%defattr(-,root,root)
|
||||
# empty - only for the dependency
|
||||
|
||||
%if %{build_d}
|
||||
%files -n gcc-d-32bit
|
||||
%defattr(-,root,root)
|
||||
# empty - only for the dependency
|
||||
%endif
|
||||
%endif
|
||||
%if %{separate_bi64}
|
||||
|
||||
@ -610,6 +666,12 @@ fi
|
||||
%defattr(-,root,root)
|
||||
# empty - only for the dependency
|
||||
|
||||
%if %{build_d}
|
||||
%files -n gcc-d-64bit
|
||||
%defattr(-,root,root)
|
||||
# empty - only for the dependency
|
||||
%endif
|
||||
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user