|
|
57f902a |
%global sover 0.23
|
|
|
57f902a |
|
|
|
645d4e1 |
Name: f2c
|
|
|
645d4e1 |
Summary: A Fortran 77 to C/C++ conversion program
|
|
|
c7cc66c |
Version: 20190311
|
|
|
6011a98 |
Release: 3%{?dist}
|
|
|
645d4e1 |
License: MIT
|
|
|
304bb03 |
|
|
|
57f902a |
URL: http://www.netlib.org/f2c/
|
|
|
57f902a |
Source0: http://www.netlib.org/f2c/src.tgz
|
|
|
57f902a |
Source1: http://www.netlib.org/f2c/libf2c.zip
|
|
|
57f902a |
Source2: http://www.netlib.org/f2c/f2c.pdf
|
|
|
57f902a |
Source3: http://www.netlib.org/f2c/f2c.ps
|
|
|
304bb03 |
|
|
|
645d4e1 |
# Patch makefile to build a shared library
|
|
|
57f902a |
Patch0: f2c-20110801.patch
|
|
Yaakov Selkowitz |
6388b45 |
Patch1: libf2c-20110801-format-security.patch
|
|
|
304bb03 |
|
|
|
304bb03 |
BuildRequires: gcc unzip
|
|
|
304bb03 |
|
|
|
c7cc66c |
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
645d4e1 |
Provides: %{name}-devel = %{version}-%{release}
|
|
|
645d4e1 |
|
|
|
57f902a |
|
|
|
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 |
|
|
|
57f902a |
|
|
|
645d4e1 |
%package libs
|
|
|
645d4e1 |
Summary: Dynamic libraries from %{name}
|
|
|
645d4e1 |
|
|
|
645d4e1 |
%description libs
|
|
|
645d4e1 |
Dynamic libraries from %{name}.
|
|
|
645d4e1 |
|
|
|
57f902a |
|
|
|
645d4e1 |
%prep
|
|
|
57f902a |
%setup -q -c %{name}-%{version}
|
|
|
645d4e1 |
mkdir libf2c
|
|
|
57f902a |
unzip -qq %{SOURCE1} -d libf2c
|
|
|
57f902a |
%patch0 -p1
|
|
Yaakov Selkowitz |
6388b45 |
%patch1 -p1
|
|
|
57f902a |
# Set library soversion
|
|
|
57f902a |
sed -i "s/@SOVER@/%{sover}/" libf2c/makefile.u
|
|
|
57f902a |
|
|
|
57f902a |
# PDF and PS documentation
|
|
|
57f902a |
cp %{SOURCE2} %{SOURCE3} .
|
|
|
57f902a |
|
|
|
645d4e1 |
|
|
|
645d4e1 |
%build
|
|
|
57f902a |
make -C src -f makefile.u %{?_smp_mflags} CFLAGS="%{optflags}" f2c
|
|
|
57f902a |
make -C libf2c -f makefile.u %{?_smp_mflags} CFLAGS="%{optflags} -fPIC"
|
|
|
57f902a |
|
|
|
645d4e1 |
|
|
|
645d4e1 |
%install
|
|
|
57f902a |
install -D -p -m 644 src/f2c.h %{buildroot}%{_includedir}/f2c.h
|
|
|
57f902a |
install -D -p -m 755 src/f2c %{buildroot}%{_bindir}/f2c
|
|
|
645d4e1 |
install -D -p -m 644 src/f2c.1t %{buildroot}%{_mandir}/man1/f2c.1
|
|
|
57f902a |
install -D -p -m 755 libf2c/libf2c.so.%{sover} %{buildroot}%{_libdir}/libf2c.so.%{sover}
|
|
|
57f902a |
ln -sr %{buildroot}%{_libdir}/libf2c.so.%{sover} %{buildroot}%{_libdir}/libf2c.so.0
|
|
|
57f902a |
ln -sr %{buildroot}%{_libdir}/libf2c.so.%{sover} %{buildroot}%{_libdir}/libf2c.so
|
|
|
645d4e1 |
|
|
|
645d4e1 |
|
|
|
57f902a |
%ldconfig_scriptlets
|
|
|
57f902a |
|
|
|
645d4e1 |
|
|
|
645d4e1 |
%files
|
|
|
57f902a |
%doc f2c.ps f2c.pdf src/changes src/README
|
|
|
57f902a |
%license src/Notice
|
|
|
645d4e1 |
%{_bindir}/f2c
|
|
|
645d4e1 |
%{_mandir}/man1/f2c.1*
|
|
|
645d4e1 |
%{_includedir}/f2c.h
|
|
|
645d4e1 |
%{_libdir}/libf2c.so
|
|
|
645d4e1 |
|
|
|
645d4e1 |
%files libs
|
|
|
57f902a |
%doc libf2c/README
|
|
|
57f902a |
%license libf2c/Notice
|
|
|
645d4e1 |
%{_libdir}/libf2c.so.*
|
|
|
645d4e1 |
|
|
|
645d4e1 |
|
|
|
645d4e1 |
%changelog
|
|
|
6011a98 |
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20190311-3
|
|
|
6011a98 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
6011a98 |
|
|
|
deaac4b |
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20190311-2
|
|
|
deaac4b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
deaac4b |
|
|
|
c7cc66c |
* Sun Mar 17 2019 Richard Shaw <hobbes1069@gmail.com> - 20190311-1
|
|
|
c7cc66c |
- Update to 20190311.
|
|
|
c7cc66c |
|
|
|
9902801 |
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20160102-3
|
|
|
9902801 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
9902801 |
|
|
|
7377587 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20160102-2
|
|
|
7377587 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
7377587 |
|
|
|
57f902a |
* Mon Feb 19 2018 Richard Shaw <hobbes1069@gmail.com> - 20160102
|
|
|
57f902a |
- Update to 20160102.
|
|
|
57f902a |
- Major overhaul on spec file.
|
|
|
57f902a |
|
|
|
2d5dd9f |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20110801-13
|
|
|
2d5dd9f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
2d5dd9f |
|
|
|
21842e3 |
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20110801-12
|
|
|
21842e3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
21842e3 |
|
|
|
90bce85 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20110801-11
|
|
|
90bce85 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
90bce85 |
|
|
|
bfc93e0 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20110801-10
|
|
|
bfc93e0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
bfc93e0 |
|
|
|
e6d7abc |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 20110801-9
|
|
|
e6d7abc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
e6d7abc |
|
|
|
05143fa |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20110801-8
|
|
|
05143fa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
05143fa |
|
|
|
d686edc |
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20110801-7
|
|
|
d686edc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
d686edc |
|
|
Yaakov Selkowitz |
6388b45 |
* Fri Jun 13 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 20110801-6
|
|
Yaakov Selkowitz |
6388b45 |
- Fix FTBFS with -Werror=format-security (#1037057, #1106245)
|
|
Yaakov Selkowitz |
6388b45 |
|
|
|
31897ba |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20110801-5
|
|
|
31897ba |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
31897ba |
|
|
|
86c6508 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20110801-4
|
|
|
86c6508 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
86c6508 |
|
|
|
dd50213 |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20110801-3
|
|
|
dd50213 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
dd50213 |
|
|
|
a6aa552 |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20110801-2
|
|
|
a6aa552 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
a6aa552 |
|
|
Carl Byington |
4df4e5a |
* Sun Apr 08 2012 Carl Byington <carl@five-ten-sg.com> 20110801-1
|
|
Carl Byington |
4df4e5a |
- update to newer upstream version
|
|
Carl Byington |
4df4e5a |
- patch from Jaroslav Škarvada for 4 byte ints on x86_64
|
|
Carl Byington |
4df4e5a |
|
|
|
3f96246 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20090411-8
|
|
|
3f96246 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
3f96246 |
|
|
|
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 |
|