From 6c841e6fefd7d7fc16661bd4556af87915ae2140 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Thu, 2 Feb 2012 19:35:42 +0000 Subject: [PATCH] - removed libf2c (use the one from libf2c.spec) - release 2 Changed files: f2c.spec -> 1.11 --- f2c.spec | 33 ++++++--------------------------- 1 file changed, 6 insertions(+), 27 deletions(-) diff --git a/f2c.spec b/f2c.spec index 049df9e..fa1314b 100644 --- a/f2c.spec +++ b/f2c.spec @@ -1,8 +1,8 @@ -Summary: The f2c Fortran to C/C++ conversion program and libraries -Summary(pl.UTF-8): Program f2c do tłumaczenia z Fortranu na C/C++ i biblioteki +Summary: The f2c Fortran to C/C++ conversion program +Summary(pl.UTF-8): Program f2c do tłumaczenia z Fortranu na C/C++ Name: f2c Version: 20031027 -Release: 1 +Release: 2 License: Distributable Group: Development/Languages/Fortran Source0: %{name}-%{version}.tar.bz2 @@ -12,8 +12,6 @@ URL: ftp://ftp.netlib.org/f2c/ BuildRequires: rpmbuild(macros) >= 1.583 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define skip_post_check_so libf2c.so.* - %description f2c converts Fortran 77 source code to C or C++ source files. If no Fortran files are named on the command line, f2c can read Fortran from @@ -41,45 +39,26 @@ nagłówkowych ANSI C w celu wywoływania procedur fortranowskich z C. MFLAG=-mieee %endif -mkdir -p libf2c/PIC - -cp -f libf2c/makefile.u libf2c/Makefile cp -f src/makefile.u src/Makefile %{__make} -C src f2c \ CC="%{__cc}" \ RPM_OPT_FLAGS="%{rpmcflags}" \ MFLAG="$MFLAG" -%{__make} -C libf2c \ - CC="%{__cc}" \ - RPM_OPT_FLAGS="%{rpmcflags} -fPIC" \ - MFLAG="$MFLAG" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir},%{_includedir}} -install libf2c/libf2c.a $RPM_BUILD_ROOT%{_libdir} -install f2c.h $RPM_BUILD_ROOT%{_includedir} install src/f2c $RPM_BUILD_ROOT%{_bindir} install fc $RPM_BUILD_ROOT%{_bindir} install src/f2c.1t $RPM_BUILD_ROOT%{_mandir}/man1/f2c.1 -install libf2c/libf2c.so.0.22 $RPM_BUILD_ROOT%{_libdir} -ln -sf libf2c.so.0.22 $RPM_BUILD_ROOT%{_libdir}/libf2c.so - -rm -rf $RPM_BUILD_ROOT%{_prefix}/liblibf2c.so %clean rm -rf $RPM_BUILD_ROOT -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig - %files %defattr(644,root,root,755) %doc f2c.ps README permission disclaimer changes src/Notice -%attr(755,root,root) %{_bindir}/* -%attr(755,root,root) %{_libdir}/libf2c.so.*.* -%attr(755,root,root) %{_libdir}/libf2c.so -%{_libdir}/libf2c.a -%{_includedir}/f2c.h -%{_mandir}/*/* +%attr(755,root,root) %{_bindir}/f2c +%attr(755,root,root) %{_bindir}/fc +%{_mandir}/man1/f2c.1* -- 2.43.0