From 362be027e5738f4fbb59646f1cd9d618f8a44e3d Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: Aug 28 2013 13:46:36 +0000 Subject: import compat-libgfortran-41-4.1.2-42.el7.src.rpm --- diff --git a/.compat-libgfortran-41.metadata b/.compat-libgfortran-41.metadata new file mode 100644 index 0000000..30a5d79 --- /dev/null +++ b/.compat-libgfortran-41.metadata @@ -0,0 +1 @@ +e8cebc1272553955afc79ee62d402b34d7107321 SOURCES/libgfortran-4.1.2-20071221.tar.bz2 diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/libgfortran41-gthr.patch b/SOURCES/libgfortran41-gthr.patch new file mode 100644 index 0000000..077db31 --- /dev/null +++ b/SOURCES/libgfortran41-gthr.patch @@ -0,0 +1,23 @@ +--- gcc/gthr-default.h.jj 2007-12-14 16:24:42.515800719 +0100 ++++ gcc/gthr-default.h 2007-11-24 23:05:01.000000000 +0100 +@@ -0,0 +1 @@ ++#include "gthr-posix.h" +--- gcc/gthr-posix.h.jj 2007-07-04 20:46:26.000000000 +0200 ++++ gcc/gthr-posix.h 2007-12-20 16:04:49.000000000 +0100 +@@ -62,9 +62,15 @@ typedef pthread_mutex_t __gthread_recurs + # ifndef __gthrw_pragma + # define __gthrw_pragma(pragma) + # endif +-# define __gthrw2(name,name2,type) \ ++# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2) ++# define __gthrw2(name,name2,type) \ ++ static __typeof(type) name __attribute__ ((__weakref__(#name2))); \ ++ __gthrw_pragma(weak type) ++# else ++# define __gthrw2(name,name2,type) \ + extern __typeof(type) name __attribute__ ((__weakref__(#name2))); \ + __gthrw_pragma(weak type) ++# endif + # define __gthrw_(name) __gthrw_ ## name + #else + # define __gthrw2(name,name2,type) diff --git a/SPECS/compat-libgfortran-41.spec b/SPECS/compat-libgfortran-41.spec new file mode 100644 index 0000000..6f157ee --- /dev/null +++ b/SPECS/compat-libgfortran-41.spec @@ -0,0 +1,73 @@ +%define DATE 20071221 +%define _unpackaged_files_terminate_build 0 +Summary: Compatibility Fortran 95 runtime library version 4.1.2 +Name: compat-libgfortran-41 +Version: 4.1.2 +Release: 42%{?dist} +# libgfortran has an exception which allows +# linking it into any kind of programs or shared libraries without +# restrictions. +License: GPLv2+ with exceptions +Group: System Environment/Libraries +Source0: libgfortran-%{version}-%{DATE}.tar.bz2 +URL: http://gcc.gnu.org +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: gcc-gfortran >= 4.1.2, gettext, bison, flex, texinfo +Patch1: libgfortran41-gthr.patch + +%description +This package includes a Fortran 95 runtime library for compatibility +with GCC 4.1.x-RH compiled Fortran applications. + +%prep +%setup -q -n libgfortran-%{version}-%{DATE} +%patch1 -p0 -b .gthr~ + +%build +mkdir obj +cd obj +CFLAGS="$RPM_OPT_FLAGS" FCFLAGS="$RPM_OPT_FLAGS" ../libgfortran/configure --prefix=%{_prefix} --disable-multilib +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +cd obj +mkdir -p $RPM_BUILD_ROOT%{_libdir} +install -m 755 .libs/libgfortran.so.1.0.0 $RPM_BUILD_ROOT%{_libdir}/ +ln -sf libgfortran.so.1.0.0 $RPM_BUILD_ROOT%{_libdir}/libgfortran.so.1 + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libgfortran.so.1* + +%changelog +* Wed Aug 28 2013 Jakub Jelinek - 4.1.2-42 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Jul 18 2012 Fedora Release Engineering - 4.1.2-41 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Jan 12 2012 Fedora Release Engineering - 4.1.2-40 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 4.1.2-39 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Jul 24 2009 Fedora Release Engineering - 4.1.2-38 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Feb 24 2009 Fedora Release Engineering - 4.1.2-37 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Dec 21 2007 Jakub Jelinek 4.1.2-36 +- new compat library