From b85631a2e7a37e74b9553de1ae01b96aa0f16964 Mon Sep 17 00:00:00 2001 From: Chan Lee Date: Mon, 24 Apr 2017 16:11:01 +0900 Subject: [PATCH] packaging: add fortran compiler Change-Id: I139d3b29c690a05e29bcfcfa660350f63bbbdadc Signed-off-by: Chan Lee --- packaging/gcc-aarch64.spec | 67 ++++++++++++++++++++++++++++++++++++++++++++-- packaging/gcc-armv7l.spec | 67 ++++++++++++++++++++++++++++++++++++++++++++-- packaging/linaro-gcc.spec | 67 ++++++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 195 insertions(+), 6 deletions(-) diff --git a/packaging/gcc-aarch64.spec b/packaging/gcc-aarch64.spec index a2607ef..af6e10c 100644 --- a/packaging/gcc-aarch64.spec +++ b/packaging/gcc-aarch64.spec @@ -23,6 +23,7 @@ %define gcc_run_tests 1 %endif +%define quadmath_arch %ix86 x86_64 ia64 %define tsan_arch x86_64 aarch64 %define asan_arch x86_64 %ix86 ppc ppc64 %sparc %arm aarch64 %define itm_arch x86_64 %ix86 %arm ppc ppc64 ppc64le s390 s390x %sparc aarch64 @@ -213,6 +214,23 @@ implementation of Distributed Systems Programming (GLADE) and the Posix %post -n libada -p /sbin/ldconfig %postun -n libada -p /sbin/ldconfig +%package fortran +Summary: The GNU Fortran Compiler and Support Files +License: GPL-3.0+ +Group: Development/Languages +%description fortran +This is the Fortran compiler of the GNU Compiler Collection (GCC). + +%package -n libgfortran +Summary: The GNU Fortran Compiler Runtime Library +License: GPL-3.0-with-GCC-exception +Group: Development/Languages +%description -n libgfortran +The runtime library needed to run programs compiled with the Fortran compiler +of the GNU Compiler Collection (GCC). +%post -n libgfortran -p /sbin/ldconfig +%postun -n libgfortran -p /sbin/ldconfig + %package -n libquadmath Summary: The GNU Fortran Compiler Quadmath Runtime Library License: LGPL-2.1 @@ -478,6 +496,23 @@ implementation of Distributed Systems Programming (GLADE) and the Posix %post -n libada-32bit -p /sbin/ldconfig %postun -n libada-32bit -p /sbin/ldconfig +%package fortran-32bit +Summary: The GNU Fortran Compiler and Support Files +License: GPL-3.0+ +Group: Development/Languages +%description fortran-32bit +This is the Fortran compiler of the GNU Compiler Collection (GCC). + +%package -n libgfortran-32bit +Summary: The GNU Fortran Compiler Runtime Library +License: GPL-3.0-with-GCC-exception +Group: Development/Languages +%description -n libgfortran-32bit +The runtime library needed to run programs compiled with the Fortran compiler +of the GNU Compiler Collection (GCC). +%post -n libgfortran-32bit -p /sbin/ldconfig +%postun -n libgfortran-32bit -p /sbin/ldconfig + %package -n libquadmath-32bit Summary: The GNU Fortran Compiler Quadmath Runtime Library License: LGPL-2.1 @@ -826,7 +861,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \ --mandir=%{_mandir} \ --libdir=%{libdir} \ --libexecdir=%{libdir} \ - --enable-languages=c,c++ \ + --enable-languages=c,c++,fortran \ --enable-checking=release \ --disable-libssp \ --disable-bootstrap \ @@ -844,10 +879,10 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \ --without-system-libunwind \ --enable-threads=posix \ --disable-multilib \ - --disable-libquadmath \ --enable-lto \ %{!?cross: \ --enable-libcc1 \ + --enable-libgfortran \ %ifarch armv7l --with-arch=armv7-a \ --with-tune=cortex-a8 \ @@ -880,6 +915,8 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \ --disable-sjlj-exceptions \ } \ --disable-libgcc \ + --disable-libgfortran \ + --disable-libquadmath \ --disable-libgomp \ --disable-libatomic \ --disable-libstdc++-v3 \ @@ -1119,6 +1156,26 @@ install -m 0755 %{SOURCE23} %{buildroot}/%{_rpmconfigdir}/tizen/ %{libdir}/libubsan.so.* %endif +%files fortran +%defattr(-,root,root) +%dir %{libsubdir}/finclude +%{_bindir}/gfortran +%{_bindir}/%{target_arch}-gfortran +%{libsubdir}/f951 +%{libsubdir}/finclude/* +%{libdir}/libgfortran.a +%{libdir}/libgfortran.so +%{libsubdir}/libgfortran.spec +%{libsubdir}/libcaf_single.a +%ifarch %quadmath_arch +%{libdir}/libquadmath.a +%{libdir}/libquadmath.so +%endif + +%files -n libgfortran +%defattr(-,root,root) +%{libdir}/libgfortran.so.* + %ifarch %quadmath_arch %files -n libquadmath %manifest gcc.manifest @@ -1202,6 +1259,12 @@ install -m 0755 %{SOURCE23} %{buildroot}/%{_rpmconfigdir}/tizen/ %{libsubdir}/32/libitm.so.* %endif +%files -n libgfortran-32bit +%defattr(-,root,root) +%dir %{libsubdir}/32/finclude +%{libsubdir}/32/libgfortran.so.* +%{libsubdir}/32/finclude/* + %ifarch %quadmath_arch %files -n libquadmath-32bit %license COPYING.LIB diff --git a/packaging/gcc-armv7l.spec b/packaging/gcc-armv7l.spec index ea57dd8..9b816c1 100644 --- a/packaging/gcc-armv7l.spec +++ b/packaging/gcc-armv7l.spec @@ -23,6 +23,7 @@ %define gcc_run_tests 1 %endif +%define quadmath_arch %ix86 x86_64 ia64 %define tsan_arch x86_64 aarch64 %define asan_arch x86_64 %ix86 ppc ppc64 %sparc %arm aarch64 %define itm_arch x86_64 %ix86 %arm ppc ppc64 ppc64le s390 s390x %sparc aarch64 @@ -213,6 +214,23 @@ implementation of Distributed Systems Programming (GLADE) and the Posix %post -n libada -p /sbin/ldconfig %postun -n libada -p /sbin/ldconfig +%package fortran +Summary: The GNU Fortran Compiler and Support Files +License: GPL-3.0+ +Group: Development/Languages +%description fortran +This is the Fortran compiler of the GNU Compiler Collection (GCC). + +%package -n libgfortran +Summary: The GNU Fortran Compiler Runtime Library +License: GPL-3.0-with-GCC-exception +Group: Development/Languages +%description -n libgfortran +The runtime library needed to run programs compiled with the Fortran compiler +of the GNU Compiler Collection (GCC). +%post -n libgfortran -p /sbin/ldconfig +%postun -n libgfortran -p /sbin/ldconfig + %package -n libquadmath Summary: The GNU Fortran Compiler Quadmath Runtime Library License: LGPL-2.1 @@ -478,6 +496,23 @@ implementation of Distributed Systems Programming (GLADE) and the Posix %post -n libada-32bit -p /sbin/ldconfig %postun -n libada-32bit -p /sbin/ldconfig +%package fortran-32bit +Summary: The GNU Fortran Compiler and Support Files +License: GPL-3.0+ +Group: Development/Languages +%description fortran-32bit +This is the Fortran compiler of the GNU Compiler Collection (GCC). + +%package -n libgfortran-32bit +Summary: The GNU Fortran Compiler Runtime Library +License: GPL-3.0-with-GCC-exception +Group: Development/Languages +%description -n libgfortran-32bit +The runtime library needed to run programs compiled with the Fortran compiler +of the GNU Compiler Collection (GCC). +%post -n libgfortran-32bit -p /sbin/ldconfig +%postun -n libgfortran-32bit -p /sbin/ldconfig + %package -n libquadmath-32bit Summary: The GNU Fortran Compiler Quadmath Runtime Library License: LGPL-2.1 @@ -826,7 +861,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \ --mandir=%{_mandir} \ --libdir=%{libdir} \ --libexecdir=%{libdir} \ - --enable-languages=c,c++ \ + --enable-languages=c,c++,fortran \ --enable-checking=release \ --disable-libssp \ --disable-bootstrap \ @@ -844,10 +879,10 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \ --without-system-libunwind \ --enable-threads=posix \ --disable-multilib \ - --disable-libquadmath \ --enable-lto \ %{!?cross: \ --enable-libcc1 \ + --enable-libgfortran \ %ifarch armv7l --with-arch=armv7-a \ --with-tune=cortex-a8 \ @@ -880,6 +915,8 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \ --disable-sjlj-exceptions \ } \ --disable-libgcc \ + --disable-libgfortran \ + --disable-libquadmath \ --disable-libgomp \ --disable-libatomic \ --disable-libstdc++-v3 \ @@ -1119,6 +1156,26 @@ install -m 0755 %{SOURCE23} %{buildroot}/%{_rpmconfigdir}/tizen/ %{libdir}/libubsan.so.* %endif +%files fortran +%defattr(-,root,root) +%dir %{libsubdir}/finclude +%{_bindir}/gfortran +%{_bindir}/%{target_arch}-gfortran +%{libsubdir}/f951 +%{libsubdir}/finclude/* +%{libdir}/libgfortran.a +%{libdir}/libgfortran.so +%{libsubdir}/libgfortran.spec +%{libsubdir}/libcaf_single.a +%ifarch %quadmath_arch +%{libdir}/libquadmath.a +%{libdir}/libquadmath.so +%endif + +%files -n libgfortran +%defattr(-,root,root) +%{libdir}/libgfortran.so.* + %ifarch %quadmath_arch %files -n libquadmath %manifest gcc.manifest @@ -1202,6 +1259,12 @@ install -m 0755 %{SOURCE23} %{buildroot}/%{_rpmconfigdir}/tizen/ %{libsubdir}/32/libitm.so.* %endif +%files -n libgfortran-32bit +%defattr(-,root,root) +%dir %{libsubdir}/32/finclude +%{libsubdir}/32/libgfortran.so.* +%{libsubdir}/32/finclude/* + %ifarch %quadmath_arch %files -n libquadmath-32bit %license COPYING.LIB diff --git a/packaging/linaro-gcc.spec b/packaging/linaro-gcc.spec index a81bbe4..d0e2220 100644 --- a/packaging/linaro-gcc.spec +++ b/packaging/linaro-gcc.spec @@ -20,6 +20,7 @@ %define gcc_run_tests 1 %endif +%define quadmath_arch %ix86 x86_64 ia64 %define tsan_arch x86_64 aarch64 %define asan_arch x86_64 %ix86 ppc ppc64 %sparc %arm aarch64 %define itm_arch x86_64 %ix86 %arm ppc ppc64 ppc64le s390 s390x %sparc aarch64 @@ -210,6 +211,23 @@ implementation of Distributed Systems Programming (GLADE) and the Posix %post -n libada -p /sbin/ldconfig %postun -n libada -p /sbin/ldconfig +%package fortran +Summary: The GNU Fortran Compiler and Support Files +License: GPL-3.0+ +Group: Development/Languages +%description fortran +This is the Fortran compiler of the GNU Compiler Collection (GCC). + +%package -n libgfortran +Summary: The GNU Fortran Compiler Runtime Library +License: GPL-3.0-with-GCC-exception +Group: Development/Languages +%description -n libgfortran +The runtime library needed to run programs compiled with the Fortran compiler +of the GNU Compiler Collection (GCC). +%post -n libgfortran -p /sbin/ldconfig +%postun -n libgfortran -p /sbin/ldconfig + %package -n libquadmath Summary: The GNU Fortran Compiler Quadmath Runtime Library License: LGPL-2.1 @@ -475,6 +493,23 @@ implementation of Distributed Systems Programming (GLADE) and the Posix %post -n libada-32bit -p /sbin/ldconfig %postun -n libada-32bit -p /sbin/ldconfig +%package fortran-32bit +Summary: The GNU Fortran Compiler and Support Files +License: GPL-3.0+ +Group: Development/Languages +%description fortran-32bit +This is the Fortran compiler of the GNU Compiler Collection (GCC). + +%package -n libgfortran-32bit +Summary: The GNU Fortran Compiler Runtime Library +License: GPL-3.0-with-GCC-exception +Group: Development/Languages +%description -n libgfortran-32bit +The runtime library needed to run programs compiled with the Fortran compiler +of the GNU Compiler Collection (GCC). +%post -n libgfortran-32bit -p /sbin/ldconfig +%postun -n libgfortran-32bit -p /sbin/ldconfig + %package -n libquadmath-32bit Summary: The GNU Fortran Compiler Quadmath Runtime Library License: LGPL-2.1 @@ -823,7 +858,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \ --mandir=%{_mandir} \ --libdir=%{libdir} \ --libexecdir=%{libdir} \ - --enable-languages=c,c++ \ + --enable-languages=c,c++,fortran \ --enable-checking=release \ --disable-libssp \ --disable-bootstrap \ @@ -841,10 +876,10 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \ --without-system-libunwind \ --enable-threads=posix \ --disable-multilib \ - --disable-libquadmath \ --enable-lto \ %{!?cross: \ --enable-libcc1 \ + --enable-libgfortran \ %ifarch armv7l --with-arch=armv7-a \ --with-tune=cortex-a8 \ @@ -877,6 +912,8 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \ --disable-sjlj-exceptions \ } \ --disable-libgcc \ + --disable-libgfortran \ + --disable-libquadmath \ --disable-libgomp \ --disable-libatomic \ --disable-libstdc++-v3 \ @@ -1116,6 +1153,26 @@ install -m 0755 %{SOURCE23} %{buildroot}/%{_rpmconfigdir}/tizen/ %{libdir}/libubsan.so.* %endif +%files fortran +%defattr(-,root,root) +%dir %{libsubdir}/finclude +%{_bindir}/gfortran +%{_bindir}/%{target_arch}-gfortran +%{libsubdir}/f951 +%{libsubdir}/finclude/* +%{libdir}/libgfortran.a +%{libdir}/libgfortran.so +%{libsubdir}/libgfortran.spec +%{libsubdir}/libcaf_single.a +%ifarch %quadmath_arch +%{libdir}/libquadmath.a +%{libdir}/libquadmath.so +%endif + +%files -n libgfortran +%defattr(-,root,root) +%{libdir}/libgfortran.so.* + %ifarch %quadmath_arch %files -n libquadmath %manifest gcc.manifest @@ -1199,6 +1256,12 @@ install -m 0755 %{SOURCE23} %{buildroot}/%{_rpmconfigdir}/tizen/ %{libsubdir}/32/libitm.so.* %endif +%files -n libgfortran-32bit +%defattr(-,root,root) +%dir %{libsubdir}/32/finclude +%{libsubdir}/32/libgfortran.so.* +%{libsubdir}/32/finclude/* + %ifarch %quadmath_arch %files -n libquadmath-32bit %license COPYING.LIB -- 2.7.4