packaging: add fortran compiler 58/126558/5
authorChan Lee <chan45.lee@samsung.com>
Mon, 24 Apr 2017 07:11:01 +0000 (16:11 +0900)
committerSlava Barinov <v.barinov@samsung.com>
Fri, 28 Apr 2017 07:59:54 +0000 (10:59 +0300)
Change-Id: I139d3b29c690a05e29bcfcfa660350f63bbbdadc
Signed-off-by: Chan Lee <chan45.lee@samsung.com>
packaging/gcc-aarch64.spec
packaging/gcc-armv7l.spec
packaging/linaro-gcc.spec

index a2607ef..af6e10c 100644 (file)
@@ -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
index ea57dd8..9b816c1 100644 (file)
@@ -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
index a81bbe4..d0e2220 100644 (file)
@@ -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