]> git.pld-linux.org Git - packages/f2c.git/blame - f2c.spec
- removed libf2c (use the one from libf2c.spec)
[packages/f2c.git] / f2c.spec
CommitLineData
6c841e6f
JB
1Summary: The f2c Fortran to C/C++ conversion program
2Summary(pl.UTF-8): Program f2c do tłumaczenia z Fortranu na C/C++
97471d16 3Name: f2c
4Version: 20031027
6c841e6f 5Release: 2
97471d16 6License: Distributable
7Group: Development/Languages/Fortran
8Source0: %{name}-%{version}.tar.bz2
9# Source0-md5: bcd2c9ba1307c9fc9f73027c3c4e3d4c
10Patch0: %{name}-20031027.patch
11URL: ftp://ftp.netlib.org/f2c/
12BuildRequires: rpmbuild(macros) >= 1.583
13BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
97471d16 15%description
16f2c converts Fortran 77 source code to C or C++ source files. If no
17Fortran files are named on the command line, f2c can read Fortran from
18standard input and write C to standard output.
19
20f2c can also be used (with the -P option) to generate ANSI C header
21files for calling Fortran routines from C.
22
23%description -l pl.UTF-8
24f2c służy do tłumaczenia kodu źródłowego w Fortranie 77 na kod
25dając w wyniku pliki z kodem źródłowym w C lub C++. Jeśli w wierszu
26polecenia nie zostaną podane żadne pliki, f2c będzie oczekiwał kodu w
27Fortranie na standardowym wejściu i pisał kod w C na standardowe
28wyjście.
29
30f2c może również służyć (z opcją -P) do generowania plików
31nagłówkowych ANSI C w celu wywoływania procedur fortranowskich z C.
32
33%prep
34%setup -q
35%patch0 -p1
36
37%build
38%ifarch alpha
39MFLAG=-mieee
40%endif
41
97471d16 42cp -f src/makefile.u src/Makefile
43%{__make} -C src f2c \
44 CC="%{__cc}" \
45 RPM_OPT_FLAGS="%{rpmcflags}" \
46 MFLAG="$MFLAG"
97471d16 47
48%install
49rm -rf $RPM_BUILD_ROOT
50install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir},%{_includedir}}
51
97471d16 52install src/f2c $RPM_BUILD_ROOT%{_bindir}
53install fc $RPM_BUILD_ROOT%{_bindir}
54install src/f2c.1t $RPM_BUILD_ROOT%{_mandir}/man1/f2c.1
97471d16 55
56%clean
57rm -rf $RPM_BUILD_ROOT
58
97471d16 59%files
60%defattr(644,root,root,755)
61%doc f2c.ps README permission disclaimer changes src/Notice
6c841e6f
JB
62%attr(755,root,root) %{_bindir}/f2c
63%attr(755,root,root) %{_bindir}/fc
64%{_mandir}/man1/f2c.1*
This page took 0.066753 seconds and 4 git commands to generate.