+++ /dev/null
---- f2c-19991109/libf2c/f2c.h0.tim Wed Jun 19 07:04:28 1996
-+++ f2c-19991109/libf2c/f2c.h0 Wed Jul 28 12:27:07 1999
-@@ -7,6 +7,26 @@
- #ifndef F2C_INCLUDE
- #define F2C_INCLUDE
-
-+#ifdef __alpha__
-+
-+typedef int integer;
-+typedef unsigned int uinteger;
-+typedef char *address;
-+typedef short int shortint;
-+typedef float real;
-+typedef double doublereal;
-+typedef struct { real r, i; } complex;
-+typedef struct { doublereal r, i; } doublecomplex;
-+typedef int logical;
-+typedef short int shortlogical;
-+typedef char logical1;
-+typedef char integer1;
-+
-+
-+
-+#else
-+
-+
- typedef long int integer;
- typedef unsigned long int uinteger;
- typedef char *address;
-@@ -26,6 +46,8 @@
- #define qbit_set(a,b) ((a) | ((ulongint)1 << (b)))
- #endif
-
-+#endif /* __alpha__ */
-+
- #define TRUE_ (1)
- #define FALSE_ (0)
-
-@@ -42,9 +64,21 @@
- typedef short ftnlen;
- typedef short ftnint;
- #else
-+
-+#ifdef __alpha__
-+
-+typedef int flag;
-+typedef int ftnlen;
-+typedef int ftnint;
-+
-+#else
-+
- typedef long int flag;
- typedef long int ftnlen;
- typedef long int ftnint;
-+
-+#endif /* __alpha__ */
-+
- #endif
-
- /*external read, write*/
---- f2c-19991109/libf2c/makefile.u.tim Mon May 17 15:40:48 1999
-+++ f2c-19991109/libf2c/makefile.u Wed Jul 28 12:30:27 1999
-@@ -13,15 +13,17 @@
- # to the CFLAGS = line below.
-
- .SUFFIXES: .c .o
--CC = cc
-+CC = gcc
- SHELL = /bin/sh
--CFLAGS = -O
-+CFLAGS = $(RPM_OPT_FLAGS) -DNON_UNIX_STDIO
-+SHARED = libf2c.so.0.22
-
- # compile, then strip unnecessary symbols
- .c.o:
- $(CC) -c -DSkip_f2c_Undefs $(CFLAGS) $*.c
-- ld -r -x -o $*.xxx $*.o
-- mv $*.xxx $*.o
-+%.o : %.c \
-+ $(CC) -c $(CFLAGS) $(CPPFLAGS) -f -o $@ $<
-+
- ## Under Solaris (and other systems that do not understand ld -x),
- ## omit -x in the ld line above.
- ## If your system does not have the ld command, comment out
-@@ -69,11 +71,21 @@
- OFILES = $(MISC) $(POW) $(CX) $(DCX) $(REAL) $(DBL) $(INT) \
- $(HALF) $(CMP) $(EFL) $(CHAR) $(I77) $(TIME)
-
--all: f2c.h signal1.h sysdep1.h libf2c.a
-+all: f2c.h signal1.h sysdep1.h libf2c.a $(SHARED)
-
- libf2c.a: $(OFILES)
-- ar r libf2c.a $?
-- -ranlib libf2c.a
-+ ar r $@ $?
-+ -ranlib $@
-+
-+
-+SHAREDOBJ = $(patsubst %.o,%.o,$(MISC) $(POW) $(CX) $(DCX) \
-+ $(REAL) $(DBL) $(INT) $(HALF) $(CMP) $(EFL) $(CHAR) $(I77) $(TIME))
-+
-+$(SHARED): $(SHAREDOBJ)
-+ $(CC) -shared -Wl,-soname,libf2c.so.0 -o $@ *.o -lm -lc
-+
-+
-+
-
- ## Shared-library variant: the following rule works on Linux
- ## systems. Details are system-dependent. Under Linux, -fPIC
-@@ -122,8 +134,8 @@
- -ranlib $(LIBDIR)/libf2c.a
-
- clean:
-- rm -f libf2c.a *.o arith.h signal1.h sysdep1.h
--
-+ rm -f libf2c.a *.o $(SHARED) arith.h signal1.h sysdep1.h
-+
- backspac.o: fio.h
- close.o: fio.h
- dfe.o: fio.h
---- f2c-19991109/src/f2c.1t.tim Tue Sep 8 10:16:48 1998
-+++ f2c-19991109/src/f2c.1t Wed Jul 28 12:27:07 1999
-@@ -353,11 +353,8 @@
- .F /usr/include/f2c.h
- header file
- .TP
--.F /usr/lib/libF77.a
--intrinsic function library
--.TP
--.F /usr/lib/libI77.a
--Fortran I/O library
-+.F /usr/lib/libf2c.a
-+f2c function library
- .TP
- .F /lib/libc.a
- C library, see section 3
---- f2c-19991109/src/f2c.h.tim Wed Jun 19 07:04:27 1996
-+++ f2c-19991109/src/f2c.h Wed Jul 28 12:27:07 1999
-@@ -7,6 +7,28 @@
- #ifndef F2C_INCLUDE
- #define F2C_INCLUDE
-
-+#ifdef __alpha__
-+
-+typedef int integer;
-+typedef unsigned int uinteger;
-+typedef char *address;
-+typedef short int shortint;
-+typedef float real;
-+typedef double doublereal;
-+typedef struct { real r, i; } complex;
-+typedef struct { doublereal r, i; } doublecomplex;
-+typedef int logical;
-+typedef short int shortlogical;
-+typedef char logical1;
-+typedef char integer1;
-+
-+
-+
-+#else
-+
-+
-+
-+
- typedef long int integer;
- typedef unsigned long int uinteger;
- typedef char *address;
-@@ -26,6 +48,8 @@
- #define qbit_set(a,b) ((a) | ((ulongint)1 << (b)))
- #endif
-
-+#endif /* __alpha__ */
-+
- #define TRUE_ (1)
- #define FALSE_ (0)
-
-@@ -41,10 +65,23 @@
- typedef short flag;
- typedef short ftnlen;
- typedef short ftnint;
-+
- #else
-+
-+#ifdef __alpha__
-+
-+typedef int flag;
-+typedef int ftnlen;
-+typedef int ftnint;
-+
-+#else
-+
- typedef long int flag;
- typedef long int ftnlen;
- typedef long int ftnint;
-+
-+#endif /* __alpha__ */
-+
- #endif
-
- /*external read, write*/
---- f2c-19991109/src/makefile.u.tim Wed Feb 25 08:18:04 1998
-+++ f2c-19991109/src/makefile.u Wed Jul 28 12:27:07 1999
-@@ -1,8 +1,8 @@
- # Makefile for f2c, a Fortran 77 to C converter
-
- .SUFFIXES: .c .o
--CC = cc
--CFLAGS = -O
-+CC = gcc
-+CFLAGS = $(RPM_OPT_FLAGS)
- SHELL = /bin/sh
- YACC = yacc
- YFLAGS =
---- f2c-19991109/f2c.h.tim Wed Jul 28 11:01:39 1999
-+++ f2c-19991109/f2c.h Wed Jul 28 12:27:07 1999
-@@ -7,6 +7,25 @@
- #ifndef F2C_INCLUDE
- #define F2C_INCLUDE
-
-+#ifdef __alpha__
-+
-+typedef int integer;
-+typedef unsigned int uinteger;
-+typedef char *address;
-+typedef short int shortint;
-+typedef float real;
-+typedef double doublereal;
-+typedef struct { real r, i; } complex;
-+typedef struct { doublereal r, i; } doublecomplex;
-+typedef int logical;
-+typedef short int shortlogical;
-+typedef char logical1;
-+typedef char integer1;
-+
-+
-+
-+#else
-+
- typedef long int integer;
- typedef unsigned long int uinteger;
- typedef char *address;
-@@ -26,6 +45,8 @@
- #define qbit_set(a,b) ((a) | ((ulongint)1 << (b)))
- #endif
-
-+#endif /* __alpha__ */
-+
- #define TRUE_ (1)
- #define FALSE_ (0)
-
-@@ -42,9 +63,21 @@
- typedef short ftnlen;
- typedef short ftnint;
- #else
-+
-+#ifdef __alpha__
-+
-+typedef int flag;
-+typedef int ftnlen;
-+typedef int ftnint;
-+
-+#else
-+
- typedef long int flag;
- typedef long int ftnlen;
- typedef long int ftnint;
-+
-+#endif /* __alpha__ */
-+
- #endif
-
- /*external read, write*/
+++ /dev/null
-Summary: The f2c Fortran to C/C++ conversion program and libraries
-Summary(pl.UTF-8): Program f2c do tłumaczenia z Fortranu na C/C++ i biblioteki
-Name: f2c
-Version: 20031027
-Release: 1
-License: Distributable
-Group: Development/Languages/Fortran
-Source0: %{name}-%{version}.tar.bz2
-# Source0-md5: bcd2c9ba1307c9fc9f73027c3c4e3d4c
-Patch0: %{name}-20031027.patch
-URL: ftp://ftp.netlib.org/f2c/
-BuildRequires: rpmbuild(macros) >= 1.583
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%define skip_post_check_so libf2c.so.*
-
-%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.
-
-%description -l pl.UTF-8
-f2c służy do tłumaczenia kodu źródłowego w Fortranie 77 na kod
-dając w wyniku pliki z kodem źródłowym w C lub C++. Jeśli w wierszu
-polecenia nie zostaną podane żadne pliki, f2c będzie oczekiwał kodu w
-Fortranie na standardowym wejściu i pisał kod w C na standardowe
-wyjście.
-
-f2c może również służyć (z opcją -P) do generowania plików
-nagłówkowych ANSI C w celu wywoływania procedur fortranowskich z C.
-
-%prep
-%setup -q
-%patch0 -p1
-
-%build
-%ifarch alpha
-MFLAG=-mieee
-%endif
-
-mkdir -p libf2c/PIC
-
-cp -f libf2c/makefile.u libf2c/Makefile
-cp -f src/makefile.u src/Makefile
-%{__make} -C src f2c \
- CC="%{__cc}" \
- RPM_OPT_FLAGS="%{rpmcflags}" \
- MFLAG="$MFLAG"
-%{__make} -C libf2c \
- CC="%{__cc}" \
- RPM_OPT_FLAGS="%{rpmcflags} -fPIC" \
- MFLAG="$MFLAG"
-
-%install
-rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir},%{_includedir}}
-
-install libf2c/libf2c.a $RPM_BUILD_ROOT%{_libdir}
-install f2c.h $RPM_BUILD_ROOT%{_includedir}
-install src/f2c $RPM_BUILD_ROOT%{_bindir}
-install fc $RPM_BUILD_ROOT%{_bindir}
-install src/f2c.1t $RPM_BUILD_ROOT%{_mandir}/man1/f2c.1
-install libf2c/libf2c.so.0.22 $RPM_BUILD_ROOT%{_libdir}
-ln -sf libf2c.so.0.22 $RPM_BUILD_ROOT%{_libdir}/libf2c.so
-
-rm -rf $RPM_BUILD_ROOT%{_prefix}/liblibf2c.so
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
-
-%files
-%defattr(644,root,root,755)
-%doc f2c.ps README permission disclaimer changes src/Notice
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/libf2c.so.*.*
-%attr(755,root,root) %{_libdir}/libf2c.so
-%{_libdir}/libf2c.a
-%{_includedir}/f2c.h
-%{_mandir}/*/*