|
|
645d4e1 |
Name: f2c
|
|
|
645d4e1 |
Summary: A Fortran 77 to C/C++ conversion program
|
|
|
645d4e1 |
Version: 20090411
|
|
|
8d24c9b |
Release: 7%{?dist}
|
|
|
645d4e1 |
License: MIT
|
|
|
645d4e1 |
Group: Development/Languages
|
|
|
645d4e1 |
URL: http://netlib.org/f2c/
|
|
|
645d4e1 |
Source: ftp://netlib.org/f2c.tar
|
|
|
645d4e1 |
# Patch makefile to build a shared library
|
|
|
645d4e1 |
Patch: f2c-20090411.patch
|
|
|
645d4e1 |
BuildRequires: unzip
|
|
|
645d4e1 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
645d4e1 |
Requires: %{name}-libs = %{version}-%{release}
|
|
|
645d4e1 |
Provides: %{name}-devel = %{version}-%{release}
|
|
|
645d4e1 |
|
|
|
645d4e1 |
%description
|
|
|
645d4e1 |
F2c converts Fortran 77 source code to C or C++ source files. If no
|
|
|
645d4e1 |
Fortran files are named on the command line, f2c can read Fortran from
|
|
|
645d4e1 |
standard input and write C to standard output.
|
|
|
645d4e1 |
|
|
|
645d4e1 |
%package libs
|
|
|
645d4e1 |
Summary: Dynamic libraries from %{name}
|
|
|
645d4e1 |
Group: Development/Libraries
|
|
|
645d4e1 |
|
|
|
645d4e1 |
%description libs
|
|
|
645d4e1 |
Dynamic libraries from %{name}.
|
|
|
645d4e1 |
|
|
|
645d4e1 |
%prep
|
|
|
645d4e1 |
%setup -q -n %{name}
|
|
|
645d4e1 |
mkdir libf2c
|
|
|
645d4e1 |
pushd libf2c
|
|
|
645d4e1 |
unzip ../libf2c.zip
|
|
|
645d4e1 |
popd
|
|
|
645d4e1 |
%patch
|
|
|
645d4e1 |
|
|
|
645d4e1 |
%build
|
|
|
645d4e1 |
cp src/makefile.u src/Makefile
|
|
|
645d4e1 |
cp libf2c/makefile.u libf2c/Makefile
|
|
|
645d4e1 |
make -C src %{?_smp_mflags} CFLAGS="%{optflags}" f2c
|
|
|
645d4e1 |
make -C libf2c %{?_smp_mflags} CFLAGS="%{optflags} -fPIC"
|
|
|
645d4e1 |
|
|
|
645d4e1 |
%install
|
|
|
645d4e1 |
rm -rf %{buildroot}
|
|
|
645d4e1 |
install -D -p -m 644 f2c.h %{buildroot}%{_includedir}/f2c.h
|
|
|
645d4e1 |
install -D -p -m 755 src/f2c %{buildroot}%{_bindir}/f2c
|
|
|
645d4e1 |
install -D -p -m 644 src/f2c.1t %{buildroot}%{_mandir}/man1/f2c.1
|
|
|
645d4e1 |
install -D -p -m 755 libf2c/libf2c.so.0.22 %{buildroot}%{_libdir}/libf2c.so.0.22
|
|
|
645d4e1 |
ln -s libf2c.so.0.22 %{buildroot}%{_libdir}/libf2c.so.0
|
|
|
645d4e1 |
ln -s libf2c.so.0.22 %{buildroot}%{_libdir}/libf2c.so
|
|
|
645d4e1 |
|
|
|
645d4e1 |
%post libs -p /sbin/ldconfig
|
|
|
645d4e1 |
|
|
|
645d4e1 |
%postun libs -p /sbin/ldconfig
|
|
|
645d4e1 |
|
|
|
645d4e1 |
%clean
|
|
|
645d4e1 |
rm -rf %{buildroot}
|
|
|
645d4e1 |
|
|
|
645d4e1 |
%files
|
|
|
645d4e1 |
%defattr(-,root,root,-)
|
|
|
8a0be4d |
%doc f2c.ps f2c.pdf readme changes src/README
|
|
|
645d4e1 |
%{_bindir}/f2c
|
|
|
645d4e1 |
%{_mandir}/man1/f2c.1*
|
|
|
645d4e1 |
%{_includedir}/f2c.h
|
|
|
645d4e1 |
%{_libdir}/libf2c.so
|
|
|
645d4e1 |
|
|
|
645d4e1 |
%files libs
|
|
|
645d4e1 |
%defattr(-,root,root,-)
|
|
|
8a0be4d |
%doc permission disclaimer src/Notice
|
|
|
645d4e1 |
%{_libdir}/libf2c.so.*
|
|
|
645d4e1 |
|
|
|
645d4e1 |
|
|
|
645d4e1 |
%changelog
|
|
|
8d24c9b |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20090411-7
|
|
|
8d24c9b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
8d24c9b |
|
|
|
8a0be4d |
* Wed Jul 07 2010 Carl Byington <carl@five-ten-sg.com> 20090411-6
|
|
|
8a0be4d |
- Subpackage Licensing, move Notice to -libs.
|
|
|
8a0be4d |
|
|
|
645d4e1 |
* Sun Dec 05 2009 Carl Byington <carl@five-ten-sg.com> 20090411-5
|
|
|
645d4e1 |
- fully versioned provides
|
|
|
645d4e1 |
|
|
|
645d4e1 |
* Sat Dec 05 2009 Carl Byington <carl@five-ten-sg.com> 20090411-4
|
|
|
645d4e1 |
- remove -devel subpackage, merge it into the main package which
|
|
|
645d4e1 |
provides -devel and requires -libs.
|
|
|
645d4e1 |
|
|
|
645d4e1 |
* Sat Dec 05 2009 Carl Byington <carl@five-ten-sg.com> 20090411-3
|
|
|
645d4e1 |
- remove patch backups
|
|
|
645d4e1 |
- add comment for patch purpose
|
|
|
645d4e1 |
|
|
|
645d4e1 |
* Thu Dec 03 2009 Carl Byington <carl@five-ten-sg.com> 20090411-2
|
|
|
645d4e1 |
- add symlink to fix rpmlint error
|
|
|
645d4e1 |
- remove unnecessary parts of the patch, which enables building a
|
|
|
645d4e1 |
shared library.
|
|
|
645d4e1 |
- main package now requires -devel since that is needed to be useful.
|
|
|
645d4e1 |
- summary changed to specify this only works on F77 code.
|
|
|
645d4e1 |
- %%files use explicit libf2c rather than * wildcard
|
|
|
645d4e1 |
|
|
|
645d4e1 |
* Wed Dec 02 2009 Carl Byington <carl@five-ten-sg.com> 20090411-1
|
|
|
645d4e1 |
- update to newer upstream version
|
|
|
645d4e1 |
- add .pdf documentation also
|
|
|
645d4e1 |
- trim changelog
|
|
|
645d4e1 |
- move all the license related files into -libs, and both the
|
|
|
645d4e1 |
main package and -devel require -libs, to avoid either duplicating
|
|
|
645d4e1 |
files or installing any package without the license files.
|
|
|
645d4e1 |
|
|
|
645d4e1 |
* Sun Nov 25 2009 Carl Byington <carl@five-ten-sg.com> 20031026-3.0.3
|
|
|
645d4e1 |
- don't install the static library.
|
|
|
645d4e1 |
- preserve the alpha architecture patch and ifdef in the spec file
|
|
|
645d4e1 |
even if it is not used by fedora.
|
|
|
645d4e1 |
- split off -libs and -devel packages.
|
|
|
645d4e1 |
- full version/release in requires
|
|
|
645d4e1 |
|
|
|
645d4e1 |
* Wed Nov 25 2009 Carl Byington <carl@five-ten-sg.com> 20031026-3.0.2
|
|
|
645d4e1 |
- convert to fedora compatible spec file.
|
|
|
645d4e1 |
|
|
|
645d4e1 |
* Sat Jun 14 2008 Axel Thimm <Axel.Thimm@ATrpms.net> - 20031026-3.0.1
|
|
|
645d4e1 |
- Fix not utf-8 specfile entries.
|
|
|
645d4e1 |
|