Sophie

Sophie

distrib > Mandriva > 9.0 > i586 > media > contrib-src > by-pkgid > c3fe35c17a590f4e69914173c2573d5b > files > 3

f2c-20001107-4mdk.src.rpm

%define name f2c
%define version 20001107
%define release 4mdk

Summary: The f2c Fortran to C/C++ conversion program and static libraries.
Name: %{name}
Version: %{version}
Release: %{release}
License: Distributable
Group: Development/Other
Source: f2c-20001107.tar.bz2
Patch0: f2c-19991109.patch.bz2
URL: ftp://ftp.netlib.org/f2c/
Buildroot: %{_tmppath}/%{name}-buildroot

%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.

F2c can also be used (with the -P option) to generate ANSI C header
files for calling Fortran routines from C.

%prep
rm -rf $RPM_BUILD_ROOT

%setup -q

%patch0 -p1  -b .tim

%build
%ifarch axp
MFLAG=-mieee
%endif

mkdir -p $RPM_BUILD_DIR/f2c-%{version}/libf2c/PIC

cp libf2c/makefile.u libf2c/Makefile
make -C src RPM_OPT_FLAGS="$RPM_OPT_FLAGS" MFLAG="$MFLAG" f2c
make -C libf2c RPM_OPT_FLAGS="$RPM_OPT_FLAGS" MFLAG="$MFLAG" 

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_bindir} $RPM_BUILD_ROOT/%{_mandir}/man1 $RPM_BUILD_ROOT/%{_libdir} $RPM_BUILD_ROOT/%{_includedir} 
install -m 644 libf2c/libf2c.a $RPM_BUILD_ROOT/%{_libdir}
install -m 644 f2c.h $RPM_BUILD_ROOT/%{_includedir}
install -s -m 755 src/f2c $RPM_BUILD_ROOT/%{_bindir}
install -s -m 755 fc $RPM_BUILD_ROOT/%{_bindir}
install -m 644 src/f2c.1t $RPM_BUILD_ROOT/%{_mandir}/man1/f2c.1
install -m 755 libf2c/libf2c.so.0.22 $RPM_BUILD_ROOT/%{_libdir}
ln -sf %{_libdir}/libf2c.so.0.22 $RPM_BUILD_ROOT/%{_libdir}libf2c.so
 
%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc f2c.ps readme permission disclaimer changes src/Notice src/README
%{_libdir}/*
%{_includedir}/*
%{_bindir}/*
%{_mandir}/*/*

%clean
rm -rf $RPM_BUILD_ROOT

%changelog
* Thu Aug 29 2002 Lenny Cartier <lenny@mandrakesoft.com> 20001107-4mdk
- rebuild

* Fri Jul 06 2001 Lenny Cartier <lenny@mandrakesoft.com> 20001107-3mdk
- rebuild

* Tue Jan 09 2001 Lenny Cartier <lenny@mandrakesoft.com> 20001107-2mdk
- rebuild

* Wed Nov 08 2000 Lenny Cartier <lenny@mandrakesoft.com> 20001107-1mdk
- used helpful srpm from Martin Wilck <martin@tropos.de> :
	- Updated to most recent sources (20001107).
	- Patch of last version still applies.
	- Bzip'ed the sources
	- Use macros for directories.

* Fri Feb 04 2000 Tim Powers <timp@redhat.com>
- fixed so that man pages are gzip'ed

* Tue Nov 9 1999 Tim Powers <timp@redhat.com>
- updated source to 19991109
- quiet setup

* Wed Jul 28 1999 Tim Powers <timp@redhat.com>
- updated source to 19990728
- updated patch
- added %defattr
- moved changleg to bottom of spec
- built for 6.1

* Tue Apr 27 1999 Bill Nottingham <notting@redhat.com>
- build for powertools

* Tue Mar 30 1999 Alexander L. Belikoff <abel@bfr.co.il>

- upgraded to version 19990326
- adjusted the types in f2c.h for the Alpha
- f2c source is packaged as a .tar.gz file and libf2c inside is already
  extracted - this makes building patches much easier.

* Thu May 07 1998 Prospector System <bugs@redhat.com>

- translations modified for de, fr, tr

* Wed Oct 29 1997 Cristian Gafton <gafton@redhat.com>
- upgraded to version 19970805
- added buildroot; removed libs subpackage and made it obsoleted

* Thu Jul 17 1997 Erik Troan <ewt@redhat.com>
- built against glibc

* Thu Apr 17 1997 Erik Troan <ewt@redhat.com>
- Changed axp tag to alpha

* Fri Apr 11 1997 Michael Fulbright <msf@redhat.com>
- Fixed man page and made it install the troff version in correct place.
- Removed checksum calculation on sources, otherwise we cant patch source!