%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
%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
%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
--mandir=%{_mandir} \
--libdir=%{libdir} \
--libexecdir=%{libdir} \
- --enable-languages=c,c++ \
+ --enable-languages=c,c++,fortran \
--enable-checking=release \
--disable-libssp \
--disable-bootstrap \
--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 \
--disable-sjlj-exceptions \
} \
--disable-libgcc \
+ --disable-libgfortran \
+ --disable-libquadmath \
--disable-libgomp \
--disable-libatomic \
--disable-libstdc++-v3 \
%{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
%{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
%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
%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
%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
--mandir=%{_mandir} \
--libdir=%{libdir} \
--libexecdir=%{libdir} \
- --enable-languages=c,c++ \
+ --enable-languages=c,c++,fortran \
--enable-checking=release \
--disable-libssp \
--disable-bootstrap \
--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 \
--disable-sjlj-exceptions \
} \
--disable-libgcc \
+ --disable-libgfortran \
+ --disable-libquadmath \
--disable-libgomp \
--disable-libatomic \
--disable-libstdc++-v3 \
%{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
%{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
%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
%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
%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
--mandir=%{_mandir} \
--libdir=%{libdir} \
--libexecdir=%{libdir} \
- --enable-languages=c,c++ \
+ --enable-languages=c,c++,fortran \
--enable-checking=release \
--disable-libssp \
--disable-bootstrap \
--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 \
--disable-sjlj-exceptions \
} \
--disable-libgcc \
+ --disable-libgfortran \
+ --disable-libquadmath \
--disable-libgomp \
--disable-libatomic \
--disable-libstdc++-v3 \
%{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
%{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