[packages/gcc/GCC_11] - build gdc (-d and libphobos* packages); rel 2
qboosh
qboosh at pld-linux.org
Fri Dec 13 18:49:08 CET 2024
commit d3c82bea78c76ee8cb29623ee0e991fd09ed7940
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Dec 13 18:26:20 2024 +0100
- build gdc (-d and libphobos* packages); rel 2
gcc-info.patch | 14 +++++++++++
gcc.spec | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
2 files changed, 91 insertions(+), 2 deletions(-)
---
diff --git a/gcc.spec b/gcc.spec
index d9a3631..0f12b0d 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -8,6 +8,7 @@
# - languages:
%bcond_without ada # ADA language support
%bcond_without cxx # C++ language support
+%bcond_without d # D language support
%bcond_without fortran # Fortran language support
%bcond_without go # Go support
%bcond_without objc # Objective-C language support
@@ -106,7 +107,7 @@ Summary(pl.UTF-8): Kolekcja kompilatorów GNU: kompilator C i pliki współdziel
Summary(pt_BR.UTF-8): Coleção dos compiladores GNU: o compilador C e arquivos compartilhados
Name: gcc
Version: %{major_ver}.%{minor_ver}
-Release: 1
+Release: 2
Epoch: 6
License: GPL v3+
Group: Development/Languages
@@ -959,6 +960,43 @@ API and internal documentation for C++ standard library.
%description -n libstdc++-apidocs -l pl.UTF-8
Dokumentacja API i wewnętrzna biblioteki standardowej C++.
+%package d
+Summary: D language support for GCC
+Summary(pl.UTF-8): Obsługa języka D dla GCC
+Group: Development/Languages
+Requires: %{name} = %{epoch}:%{version}-%{release}
+Requires: libgphobos = %{epoch}:%{version}-%{release}
+
+%description d
+This package adds support for compiling D programs with the GNU
+compiler.
+
+%description d -l pl.UTF-8
+Ten pakiet dodaje obsługę języka D do kompilatora GCC.
+
+%package -n libgphobos
+Summary: D language runtime libraries
+Summary(pl.UTF-8): Biblioteki uruchomieniowe dla języka D
+Group: Libraries
+
+%description -n libgphobos
+D language runtime libraries.
+
+%description -n libgphobos -l pl.UTF-8
+Biblioteki uruchomieniowe dla języka D.
+
+%package -n libgphobos-static
+Summary: Static D language runtime libraries
+Summary(pl.UTF-8): Statyczne biblioteki uruchomieniowe dla języka D
+Group: Development/Libraries
+Requires: %{name}-d = %{epoch}:%{version}-%{release}
+
+%description -n libgphobos-static
+Static D language runtime libraries.
+
+%description -n libgphobos-static -l pl.UTF-8
+Statyczne biblioteki uruchomieniowe dla języka D.
+
%package fortran
Summary: Fortran 95 language support for GCC
Summary(es.UTF-8): Soporte de Fortran 95 para GCC
@@ -2627,7 +2665,7 @@ TEXCONFIG=false \
--enable-gnu-unique-object \
--enable-initfini-array \
--disable-isl-version-check \
- --enable-languages="c%{?with_cxx:,c++}%{?with_fortran:,fortran}%{?with_objc:,objc}%{?with_objcxx:,obj-c++}%{?with_ada:,ada}%{?with_go:,go}" \
+ --enable-languages="c%{?with_cxx:,c++}%{?with_d:,d}%{?with_fortran:,fortran}%{?with_objc:,objc}%{?with_objcxx:,obj-c++}%{?with_ada:,ada}%{?with_go:,go}" \
--%{?with_gomp:en}%{!?with_gomp:dis}able-libgomp \
--enable-libitm \
--enable-linker-build-id \
@@ -3002,6 +3040,12 @@ rm -rf $RPM_BUILD_ROOT
%postun ada -p /sbin/postshell
-/usr/sbin/fix-info-dir -c %{_infodir}
+%post d -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%postun d -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
%post fortran -p /sbin/postshell
-/usr/sbin/fix-info-dir -c %{_infodir}
@@ -3056,6 +3100,8 @@ rm -rf $RPM_BUILD_ROOT
%postun -p /sbin/ldconfig -n libstdc++-multilib-32
%post -p /sbin/ldconfig -n libstdc++-multilib-%{multilib2}
%postun -p /sbin/ldconfig -n libstdc++-multilib-%{multilib2}
+%post -p /sbin/ldconfig -n libgphobos
+%postun -p /sbin/ldconfig -n libgphobos
%post -p /sbin/ldconfig -n libgfortran
%postun -p /sbin/ldconfig -n libgfortran
%post -p /sbin/ldconfig -n libgfortran-multilib-32
@@ -3702,6 +3748,35 @@ rm -rf $RPM_BUILD_ROOT
%endif
%endif
+%if %{with d}
+%files d
+%defattr(644,root,root,755)
+%doc gcc/d/{ChangeLog,README.gcc}
+%attr(755,root,root) %{_bindir}/gdc
+%attr(755,root,root) %{_bindir}/*-gdc
+%attr(755,root,root) %{gcclibdir}/d21
+%attr(755,root,root) %{_libdir}/libgdruntime.so
+%attr(755,root,root) %{_libdir}/libgphobos.so
+%{_libdir}/libgdruntime.la
+%{_libdir}/libgphobos.la
+%{_libdir}/libgphobos.spec
+%{gcclibdir}/include/d
+%{_mandir}/man1/gdc.1*
+%{_infodir}/gdc.info*
+
+%files -n libgphobos
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libgdruntime.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgdruntime.so.2
+%attr(755,root,root) %{_libdir}/libgphobos.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgphobos.so.2
+
+%files -n libgphobos-static
+%defattr(644,root,root,755)
+%{_libdir}/libgdruntime.a
+%{_libdir}/libgphobos.a
+%endif
+
%if %{with fortran}
%files fortran
%defattr(644,root,root,755)
diff --git a/gcc-info.patch b/gcc-info.patch
index 3f250ec..4687bc3 100644
--- a/gcc-info.patch
+++ b/gcc-info.patch
@@ -250,3 +250,17 @@ diff -urNp -x '*.orig' gcc-10.2.0.org/libquadmath/libquadmath.texi gcc-10.2.0/li
@end direntry
This manual documents the GCC Quad-Precision Math Library API.
+--- gcc-11.5.0/gcc/d/gdc.texi.orig 2024-07-19 07:52:43.845493268 +0200
++++ gcc-11.5.0/gcc/d/gdc.texi 2024-12-12 22:08:23.782172397 +0100
+@@ -34,9 +34,9 @@ man page gfdl(7).
+
+ @ifinfo
+ @format
+- at dircategory Software development
++ at dircategory Programming Languages:
+ @direntry
+-* gdc: (gdc). A GCC-based compiler for the D language
++* gdc: (gdc). A GCC-based compiler for the D language
+ @end direntry
+ @end format
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gcc.git/commitdiff/d3c82bea78c76ee8cb29623ee0e991fd09ed7940
More information about the pld-cvs-commit
mailing list