1 Summary: The f2c Fortran to C/C++ conversion program and libraries
2 Summary(pl.UTF-8): Program f2c do tłumaczenia z Fortranu na C/C++ i biblioteki
7 Group: Development/Languages/Fortran
8 Source0: %{name}-%{version}.tar.bz2
9 # Source0-md5: bcd2c9ba1307c9fc9f73027c3c4e3d4c
10 Patch0: %{name}-20031027.patch
11 URL: ftp://ftp.netlib.org/f2c/
12 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 f2c converts Fortran 77 source code to C or C++ source files. If no
16 Fortran files are named on the command line, f2c can read Fortran from
17 standard input and write C to standard output.
19 f2c can also be used (with the -P option) to generate ANSI C header
20 files for calling Fortran routines from C.
22 %description -l pl.UTF-8
23 f2c służy do tłumaczenia kodu źródłowego w Fortranie 77 na kod
24 dając w wyniku pliki z kodem źródłowym w C lub C++. Jeśli w wierszu
25 polecenia nie zostaną podane żadne pliki, f2c będzie oczekiwał kodu w
26 Fortranie na standardowym wejściu i pisał kod w C na standardowe
29 f2c może również służyć (z opcją -P) do generowania plików
30 nagłówkowych ANSI C w celu wywoływania procedur fortranowskich z C.
43 cp -f libf2c/makefile.u libf2c/Makefile
44 cp -f src/makefile.u src/Makefile
45 %{__make} -C src f2c \
47 RPM_OPT_FLAGS="%{rpmcflags}" \
51 RPM_OPT_FLAGS="%{rpmcflags} -fPIC" \
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir},%{_includedir}}
58 install libf2c/libf2c.a $RPM_BUILD_ROOT%{_libdir}
59 install f2c.h $RPM_BUILD_ROOT%{_includedir}
60 install src/f2c $RPM_BUILD_ROOT%{_bindir}
61 install fc $RPM_BUILD_ROOT%{_bindir}
62 install src/f2c.1t $RPM_BUILD_ROOT%{_mandir}/man1/f2c.1
63 install libf2c/libf2c.so.0.22 $RPM_BUILD_ROOT%{_libdir}
64 ln -sf libf2c.so.0.22 $RPM_BUILD_ROOT%{_libdir}/libf2c.so
66 rm -rf $RPM_BUILD_ROOT%{_prefix}/liblibf2c.so
69 rm -rf $RPM_BUILD_ROOT
71 %post -p /sbin/ldconfig
72 %postun -p /sbin/ldconfig
75 %defattr(644,root,root,755)
76 %doc f2c.ps README permission disclaimer changes src/Notice
77 %attr(755,root,root) %{_bindir}/*
78 %attr(755,root,root) %{_libdir}/libf2c.so.*.*
79 %attr(755,root,root) %{_libdir}/libf2c.so