packages: f2c/f2c-20031027.patch, f2c/f2c.spec - restored

lisu lisu at pld-linux.org
Wed Feb 1 11:05:49 CET 2012


Author: lisu                         Date: Wed Feb  1 10:05:49 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- restored

---- Files affected:
packages/f2c:
   f2c-20031027.patch (1.2 -> 1.3) , f2c.spec (1.9 -> 1.10) 

---- Diffs:

================================================================
Index: packages/f2c/f2c-20031027.patch
diff -u /dev/null packages/f2c/f2c-20031027.patch:1.3
--- /dev/null	Wed Feb  1 11:05:49 2012
+++ packages/f2c/f2c-20031027.patch	Wed Feb  1 11:05:44 2012
@@ -0,0 +1,272 @@
+--- 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*/

================================================================
Index: packages/f2c/f2c.spec
diff -u /dev/null packages/f2c/f2c.spec:1.10
--- /dev/null	Wed Feb  1 11:05:49 2012
+++ packages/f2c/f2c.spec	Wed Feb  1 11:05:44 2012
@@ -0,0 +1,122 @@
+# $Revision$, $Date$
+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}/*/*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.10  2012/02/01 10:05:44  lisu
+- restored
+
+Revision 1.9  2012/02/01 09:47:27  lisu
+- obsoleted by libf2c
+
+Revision 1.8  2012/01/31 21:16:15  lisu
+- skip_post_check_so for one broken lib
+
+Revision 1.7  2007/09/11 22:10:44  glen
+- adapter
+
+Revision 1.6  2007/02/12 21:23:55  glen
+- tabs in preamble
+
+Revision 1.5  2007/02/12 00:48:48  baggins
+- converted to UTF-8
+
+Revision 1.4  2005/06/12 00:37:56  undefine
+- use -fPIC for libf2c
+
+Revision 1.3  2005/05/28 23:34:57  twittner
+- CC="%{__cc}"
+
+Revision 1.2  2005/01/17 19:44:09  qboosh
+- cleanups, proper optflags, .so perms
+
+Revision 1.1  2005/01/16 16:09:23  ankry
+- new, based on mdk spec; newer sources
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/f2c/f2c-20031027.patch?r1=1.2&r2=1.3&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/f2c/f2c.spec?r1=1.9&r2=1.10&f=u



More information about the pld-cvs-commit mailing list