Blame SPECS/compat-libgfortran-41.spec

1a3eef
%define DATE 20071221
1a3eef
%define _unpackaged_files_terminate_build 0
1a3eef
Summary: Compatibility Fortran 95 runtime library version 4.1.2
1a3eef
Name: compat-libgfortran-41
1a3eef
Version: 4.1.2
1a3eef
Release: 45%{?dist}
1a3eef
# libgfortran has an exception which allows
1a3eef
# linking it into any kind of programs or shared libraries without
1a3eef
# restrictions.
1a3eef
License: GPLv2+ with exceptions
1a3eef
Group: System Environment/Libraries
1a3eef
Source0: libgfortran-%{version}-%{DATE}.tar.bz2
1a3eef
URL: http://gcc.gnu.org
1a3eef
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
1a3eef
ExcludeArch: aarch64 ppc64le
1a3eef
BuildRequires: gcc-gfortran >= 4.1.2, gettext, bison, flex, texinfo
1a3eef
Patch1: libgfortran41-gthr.patch
1a3eef
1a3eef
%description
1a3eef
This package includes a Fortran 95 runtime library for compatibility
1a3eef
with GCC 4.1.x-RH compiled Fortran applications.
1a3eef
1a3eef
%prep
1a3eef
%setup -q -n libgfortran-%{version}-%{DATE}
1a3eef
%patch1 -p0 -b .gthr~
1a3eef
1a3eef
%build
1a3eef
%ifarch %{ix86} x86_64
1a3eef
sed -i -e 's/4 8 10 16/4 8 10/g' libgfortran/mk-kinds-h.sh libgfortran/mk-srk-inc.sh
1a3eef
%endif
1a3eef
mkdir obj
1a3eef
cd obj
1a3eef
CFLAGS="$RPM_OPT_FLAGS" FCFLAGS="$RPM_OPT_FLAGS" ../libgfortran/configure --prefix=%{_prefix} --disable-multilib
1a3eef
make %{?_smp_mflags}
1a3eef
1a3eef
%install
1a3eef
rm -rf $RPM_BUILD_ROOT
1a3eef
cd obj
1a3eef
mkdir -p $RPM_BUILD_ROOT%{_libdir}
1a3eef
install -m 755 .libs/libgfortran.so.1.0.0 $RPM_BUILD_ROOT%{_libdir}/
1a3eef
ln -sf libgfortran.so.1.0.0 $RPM_BUILD_ROOT%{_libdir}/libgfortran.so.1
1a3eef
1a3eef
%clean
1a3eef
rm -rf $RPM_BUILD_ROOT
1a3eef
1a3eef
%post -p /sbin/ldconfig
1a3eef
1a3eef
%postun -p /sbin/ldconfig
1a3eef
1a3eef
%files
1a3eef
%defattr(-,root,root)
1a3eef
%{_libdir}/libgfortran.so.1*
1a3eef
1a3eef
%changelog
1a3eef
* Thu Feb 14 2019 Jakub Jelinek 
1a3eef
- remove real kind 16 support on i?86/x86_64 (#1628391)
1a3eef
1a3eef
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 4.1.2-44
1a3eef
- Mass rebuild 2014-01-24
1a3eef
1a3eef
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 4.1.2-43
1a3eef
- Mass rebuild 2013-12-27
1a3eef
1a3eef
* Wed Aug 28 2013 Jakub Jelinek 
1a3eef
- add %%{?dist} to Release (#874994)
1a3eef
1a3eef
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.2-42
1a3eef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1a3eef
1a3eef
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.2-41
1a3eef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1a3eef
1a3eef
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.2-40
1a3eef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
1a3eef
1a3eef
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.2-39
1a3eef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
1a3eef
1a3eef
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.2-38
1a3eef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
1a3eef
1a3eef
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.2-37
1a3eef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
1a3eef
1a3eef
* Fri Dec 21 2007 Jakub Jelinek  <jakub@redhat.com> 4.1.2-36
1a3eef
- new compat library