Projects
Eulaceura:Factory
f2c
_service:obs_scm:f2c.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:f2c.spec of Package f2c
%global sover 0.23 Name: f2c Summary: A Fortran 77 to C/C++ conversion program Version: 20230428 Release: 1 License: MIT URL: https://www.netlib.org/f2c Source0: https://www.netlib.org/f2c/src.tgz Source1: https://www.netlib.org/f2c/libf2c.zip Source2: https://www.netlib.org/f2c/f2c.pdf Source3: https://www.netlib.org/f2c/f2c.ps Source4: https://www.netlib.org/f2c/fc Patch1: 0001-f2c-apply-security-compile-args.patch Patch2: 0002-libf2c-support-build-shared-object.patch Patch3: 0003-libf2c-fix-format-security.patch BuildRequires: gcc make unzip %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 standard input and write C to standard output. %package devel Summary: A Fortran 77 to C/C++ conversion program Requires: %{name} = %{version}-%{release} %description devel Development files for %{name}. %prep %setup -c %{name}-%{version} %{__mkdir_p} libf2c && %{__unzip} -qq %{SOURCE1} -d libf2c # apply patches %autopatch -p1 # update shared object version %__sed -i "s/@SOVER@/%{sover}/" libf2c/makefile.u # copy additional files %__cp %{SOURCE2} %{SOURCE3} %{SOURCE4} . %build %set_build_flags %make_build -C src -f makefile.u f2c %make_build -C libf2c -f makefile.u %install install -D -p -m 0755 src/f2c %{buildroot}%{_bindir}/f2c install -D -p -m 0644 src/f2c.1t %{buildroot}%{_mandir}/man1/f2c.1 install -D -p -m 0644 src/f2c.h %{buildroot}%{_includedir}/f2c.h install -D -p -m 0644 libf2c/libf2c.a %{buildroot}%{_libdir}/libf2c.a install -D -p -m 0755 libf2c/libf2c.so.%{sover} %{buildroot}%{_libdir}/libf2c.so.%{sover} %__ln_s -r %{buildroot}%{_libdir}/libf2c.so.%{sover} %{buildroot}%{_libdir}/libf2c.so.0 %__ln_s -r %{buildroot}%{_libdir}/libf2c.so.%{sover} %{buildroot}%{_libdir}/libf2c.so install -D -p -m 0755 fc %{buildroot}%{_bindir}/f77 %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc f2c.ps f2c.pdf src/changes src/README %license src/Notice %{_bindir}/f2c %{_bindir}/f77 %{_mandir}/man1/f2c.1* %{_libdir}/libf2c.so.%{sover} %files devel %{_includedir}/f2c.h %{_libdir}/libf2c.a %{_libdir}/libf2c.so{,.0} %changelog * Thu Jan 18 2024 herengui <herengui@kylinsec.com.cn> - 20230428-1 - Initial package
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2