Hello community,

here is the log from the commit of package f2c for openSUSE:Factory checked in 
at 2019-07-17 13:19:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/f2c (Old)
 and      /work/SRC/openSUSE:Factory/.f2c.new.1887 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "f2c"

Wed Jul 17 13:19:47 2019 rev:19 rq:715506 version:0.23

Changes:
--------
--- /work/SRC/openSUSE:Factory/f2c/f2c.changes  2012-02-14 13:05:36.000000000 
+0100
+++ /work/SRC/openSUSE:Factory/.f2c.new.1887/f2c.changes        2019-07-17 
13:19:50.547655601 +0200
@@ -1,0 +2,25 @@
+Mon Jul 15 15:46:08 UTC 2019 - Jonathan Brielmaier <[email protected]>
+
+- correct changelog:
+  Add patch:
+  * libf2c-20110801-format-security.patch 
+- get correct release tarball (src.tgz) by running
+  `osc service localrun download_files`
+
+-------------------------------------------------------------------
+Tue Aug 21 10:32:00 UTC 2018 - [email protected]
+
+- update to version 0.23
+  * new patches and libraries and updated specfile according to 
+    Fedora version 20160102
+- removed patches
+  * removing obsolete patches f2c-integer.diff, f2c-malloccheck.diff
+    f2c.diff, tmpfile-fix.patch and yyparse.patch and usefull, yet 
+    inconsistent f2c-optflags.patch
+- added patches
+  * patches f2c-20110801.patch to use shared library libf2c.so.0.23 
+    and libf2c-20110801.patch to use less memory copied from Fedora 
+    repository
+  * patch f2c-20180821.patch released to fix optflags parsing
+
+-------------------------------------------------------------------

Old:
----
  baselibs.conf
  changes.gz
  disclaimer.gz
  f2c-integer.diff
  f2c-malloccheck.diff
  f2c-optflags.patch
  f2c.1t.gz
  f2c.dif
  f2c.h.gz
  f2c.ps.gz
  f2c.tgz
  fc.gz
  permission.gz
  readme.gz
  tmpfile-fix.patch
  yaf77-1.6.tgz
  yyparse.patch

New:
----
  f2c-20110801.patch
  f2c-20180821.patch
  f2c.pdf
  f2c.ps
  libf2c-20110801-format-security.patch
  src.tgz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ f2c.spec ++++++
--- /var/tmp/diff_new_pack.Ay1RNq/_old  2019-07-17 13:19:52.831654222 +0200
+++ /var/tmp/diff_new_pack.Ay1RNq/_new  2019-07-17 13:19:52.835654220 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package f2c
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,104 +12,88 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
-
+%define libname libf2c0
+%global sover 0.23
 Name:           f2c
-BuildRequires:  tcsh unzip
-License:        MIT
-Group:          Development/Languages/Fortran
-# bug437293
-%ifarch ppc64
-Obsoletes:      f2c-64bit
-%endif
 #
-Version:        0.11
-Release:        1197
+Version:        0.23
+Release:        0
 Summary:        A Fortran-77 to C Translator
-Source:         f2c.tgz
-Source1:        yaf77-1.6.tgz
-Source2:        libf2c.zip
-Source3:        f2c.h.gz
-Source4:        f2c.ps.gz
-Source5:        permission.gz
-Source6:        readme.gz
-Source7:        disclaimer.gz
-Source8:        changes.gz
-Source9:        f2c.1t.gz
-Source10:       fc.gz
-Source11:       baselibs.conf
-Patch:          f2c.dif
-Patch1:         tmpfile-fix.patch
-Patch2:         f2c-optflags.patch
-Patch3:         yyparse.patch
-Patch4:         f2c-integer.diff
-Patch5:         f2c-malloccheck.diff
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+License:        MIT
+Group:          Development/Languages/Fortran
+Source0:        http://www.netlib.org/f2c/src.tgz
+Source1:        http://www.netlib.org/f2c/libf2c.zip
+Source2:        http://www.netlib.org/f2c/f2c.pdf
+Source3:        http://www.netlib.org/f2c/f2c.ps
+Patch0:         f2c-20110801.patch
+Patch1:         libf2c-20110801-format-security.patch
+Patch2:         f2c-20180821.patch
+BuildRequires:  tcsh
+BuildRequires:  unzip
+URL:            http://www.netlib.org/f2c/
 
 %description
-Contains libf2c.so.0.11, ported by Rob Hooft. This package uses an
-'f77' script that hides the C translation process from the user.
+This package uses an 'f77' script that hides the C translation process from 
the user.
+
+%package -n %{libname}
+Summary:        A Fortran-77 to C Translator
+Group:          System/Libraries
+
+%description -n %{libname}
+This package uses an 'f77' script that hides the C translation process from 
the user.
+
+%package devel
+Summary:        Files for Developing with f2c
+Group:          Development/Libraries/C and C++
+Requires:       %{libname} = %{version}
+
+%description devel
+This package uses an 'f77' script that hides the C translation process from 
the user.
 
 %prep
-%setup -c 
-unzip $RPM_SOURCE_DIR/libf2c.zip
-tar xvpfz $RPM_SOURCE_DIR/yaf77-1.6.tgz
-cp -av $RPM_SOURCE_DIR/*.gz .
-gunzip *.gz
-mv f2c.h libf2c/f2c.h0
-%patch
+
+%setup -q -c %{name}-%{version}
+
+mkdir libf2c
+unzip -qq %{SOURCE1} -d libf2c
+%patch0 -p1
 %patch1 -p1
 %patch2 -p1
-%patch3 -p1
-%patch4
-%patch5
+
+# Set library soversion
+sed -i "s/@SOVER@/%{sover}/" libf2c/makefile.u
+
+# PDF and PS documentation
+cp %{SOURCE2} %{SOURCE3} .
 
 %build
-(cd src && make CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing")
-(cd libf2c && sh ./make.elf)
-(cd libf2c && make -f makefile.u CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing")
-pushd yaf77-1.6/F77ext
-F2C=../../src/f2c make FFLAGS=-I../../libf2c CFLAGS=-I../../libf2c 
%{?_smp_mflags}
-popd
+make -C src -f makefile.u %{?_smp_mflags} CFLAGS="%{optflags} 
-fno-strict-aliasing" f2c
+make -C libf2c -f makefile.u %{?_smp_mflags} CFLAGS="%{optflags} -fPIC 
-fno-strict-aliasing"
 
 %install
-mkdir -p $RPM_BUILD_ROOT/usr/{bin,include,%_lib}
-install -m 755 src/f2c f77-f2c $RPM_BUILD_ROOT/usr/bin
-install -m 644 libf2c/f2c.h $RPM_BUILD_ROOT/usr/include
-mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
-install -m 644 f2c.1t $RPM_BUILD_ROOT%{_mandir}/man1/f2c.1
-install -m 644 libf2c/libf2c.a $RPM_BUILD_ROOT%_libdir
-install -m 755 libf2c/libf2c.so.0.11 $RPM_BUILD_ROOT%_libdir
-(cd $RPM_BUILD_ROOT%_libdir && ln -s libf2c.so.0.11 libf2c.so && ln -s 
libf2c.so.0.11 libf2c.so.0)
-mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/f2c
-install -m 644 changes disclaimer f2c.ps permission fc 
$RPM_BUILD_ROOT%{_defaultdocdir}/f2c
-install -m 644 libf2c/hello.f Changelog.SuSE 
$RPM_BUILD_ROOT%{_defaultdocdir}/f2c
-install -m 755 yaf77-1.6/f77 $RPM_BUILD_ROOT/usr/bin/yaf77
-install -m 644 yaf77-1.6/README 
$RPM_BUILD_ROOT%{_defaultdocdir}/f2c/README.yaf77
-install -m 644 yaf77-1.6/F77ext/libF77ext.a $RPM_BUILD_ROOT%_libdir
-
-%post
-%run_ldconfig
+install -D -p -m 644 src/f2c.h  %{buildroot}%{_includedir}/f2c.h
+install -D -p -m 755 src/f2c    %{buildroot}%{_bindir}/f2c
+install -D -p -m 644 src/f2c.1t %{buildroot}%{_mandir}/man1/f2c.1
+install -D -p -m 755 libf2c/libf2c.so.%{sover} 
%{buildroot}%{_libdir}/libf2c.so.%{sover}
+ln -sr %{buildroot}%{_libdir}/libf2c.so.%{sover} 
%{buildroot}%{_libdir}/libf2c.so.0
+ln -sr %{buildroot}%{_libdir}/libf2c.so.%{sover} 
%{buildroot}%{_libdir}/libf2c.so
+
+%files -n %{libname}
+%{_libdir}/*.so.*
+
+%files devel
+%{_libdir}/*.so
+%{_includedir}/f2c*
 
-%postun
-%run_ldconfig
+%post -n %{libname} -p /sbin/ldconfig
+%postun -n %{libname} -p /sbin/ldconfig
 
 %files
-%defattr(-,root,root)
-%docdir %{_defaultdocdir}/f2c
-%{_defaultdocdir}/f2c
-/usr/bin/f2c
-/usr/bin/f77-f2c
-/usr/bin/yaf77
-/usr/include/f2c.h
-%_libdir/libF77ext.a
-%_libdir/libf2c.a
-%_libdir/libf2c.so
-%_libdir/libf2c.so.0
-%_libdir/libf2c.so.0.11
-%doc %{_mandir}/man1/f2c.1.gz
+%{_bindir}/f2c
+%{_mandir}/man1/f2c.1%{?ext_man}
 
 %changelog

++++++ f2c-optflags.patch -> f2c-20110801.patch ++++++
--- /work/SRC/openSUSE:Factory/f2c/f2c-optflags.patch   2011-09-23 
01:57:14.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.f2c.new.1887/f2c-20110801.patch 2019-07-17 
13:19:50.255655778 +0200
@@ -1,26 +1,68 @@
---- f2c-0.11/libf2c/make.elf.xx        2005-06-15 16:15:31.000000000 +0200
-+++ f2c-0.11/libf2c/make.elf   2005-06-15 16:15:39.000000000 +0200
-@@ -3,7 +3,7 @@
- #
- rm *.o
- make -f makefile.u CC="gcc" \
--    CFLAGS="-O2 -fPIC -fomit-frame-pointer -DNON_UNIX_STDIO -D_POSIX_SOURCE"
-+    CFLAGS="$RPM_OPT_FLAGS -O2 -fPIC -fomit-frame-pointer -DNON_UNIX_STDIO 
-D_POSIX_SOURCE"
- gcc -o libf2c.so.0.11 -shared -Wl,-soname,libf2c.so.0 *.o
- ../src/f2c hello.f
- gcc -s -o hello hello.c libf2c.so.0.11 -lm
---- f2c-0.11/libf2c/makefile.u
-+++ f2c-0.11/libf2c/makefile.u 2005/07/06 09:26:07
-@@ -69,10 +69,10 @@
+--- a/libf2c/makefile.u        2009-12-03 18:18:51.000000000 -0800
++++ b/libf2c/makefile.u        2009-12-03 18:17:43.000000000 -0800
+@@ -16,12 +16,14 @@
+ CC = cc
+ SHELL = /bin/sh
+ CFLAGS = -O
++SHARED = libf2c.so.@SOVER@
+
+ # 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) -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,12 @@
+ 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 $@
++
+
+ ## Shared-library variant: the following rule works on Linux
+ ## systems.  Details are system-dependent.  Under Linux, -fPIC
+@@ -85,8 +88,8 @@
+ ## instead of "$(CC) -shared", and when running programs linked against 
libf2c.so,
+ ## arrange for $DYLD_LIBRARY_PATH to include the directory containing 
libf2c.so.
+
+-libf2c.so: $(OFILES)
+-      $(CC) -shared -o libf2c.so $(OFILES)
++$(SHARED): $(OFILES)
++      $(CC) -shared -Wl,-soname,libf2c.so.0 -o $@ $(OFILES) -lm -lc
+
  ### If your system lacks ranlib, you don't need it; see README.
- 
- f77vers.o: f77vers.c
--      $(CC) -c f77vers.c
-+      $(CC) $(RPM_OPT_FLAGS) -c f77vers.c
- 
- i77vers.o: i77vers.c
--      $(CC) -c i77vers.c
-+      $(CC) $(RPM_OPT_FLAGS) -c i77vers.c
- 
- # To get an "f2c.h" for use with "f2c -C++", first "make hadd"
- hadd: f2c.h0 f2ch.add
+
+@@ -126,7 +129,7 @@
+       -ranlib $(LIBDIR)/libf2c.a
+
+ clean:
+-      rm -f libf2c.a *.o arith.h signal1.h sysdep1.h
++      rm -f libf2c.a *.o arith.h signal1.h sysdep1.h $(SHARED)
+
+ backspac.o:   fio.h
+ close.o:      fio.h
+--- a/src/f2c.h        1999-09-07 19:46:24.000000000 +0200
++++ b/src/f2c.h        2011-12-14 00:53:19.503602011 +0100
+@@ -7,8 +7,8 @@
+ #ifndef F2C_INCLUDE
+ #define F2C_INCLUDE
+
+-typedef long int integer;
+-typedef unsigned long int uinteger;
++typedef int integer;
++typedef unsigned int uinteger;
+ typedef char *address;
+ typedef short int shortint;
+ typedef float real;

++++++ f2c-optflags.patch -> f2c-20180821.patch ++++++
--- /work/SRC/openSUSE:Factory/f2c/f2c-optflags.patch   2011-09-23 
01:57:14.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.f2c.new.1887/f2c-20180821.patch 2019-07-17 
13:19:50.471655647 +0200
@@ -1,26 +1,23 @@
---- f2c-0.11/libf2c/make.elf.xx        2005-06-15 16:15:31.000000000 +0200
-+++ f2c-0.11/libf2c/make.elf   2005-06-15 16:15:39.000000000 +0200
-@@ -3,7 +3,7 @@
- #
- rm *.o
- make -f makefile.u CC="gcc" \
--    CFLAGS="-O2 -fPIC -fomit-frame-pointer -DNON_UNIX_STDIO -D_POSIX_SOURCE"
-+    CFLAGS="$RPM_OPT_FLAGS -O2 -fPIC -fomit-frame-pointer -DNON_UNIX_STDIO 
-D_POSIX_SOURCE"
- gcc -o libf2c.so.0.11 -shared -Wl,-soname,libf2c.so.0 *.o
- ../src/f2c hello.f
- gcc -s -o hello hello.c libf2c.so.0.11 -lm
---- f2c-0.11/libf2c/makefile.u
-+++ f2c-0.11/libf2c/makefile.u 2005/07/06 09:26:07
-@@ -69,10 +69,10 @@
+--- a/libf2c/makefile.u 2018-08-21 11:18:51.000000000 -0800
++++ b/libf2c/makefile.u 2018-08-21 11:17:43.000000000 -0800
+@@ -80,6 +80,7 @@ libf2c.a: $(OFILES)
+ ## must appear in the CFLAGS assignment when making libf2c.so.
+ ## Under Solaris, use -Kpic in CFLAGS and use "ld -G" instead
+ ## of "$(CC) -shared".
++
+ ## For MacOSX 10.4 and 10.5 (and perhaps other versions >= 10.3), use
+ ## "MACOSX_DEPLOYMENT_TARGET=10.3 libtool -dynamic -undefined dynamic_lookup 
-single_module"
+ ## instead of "$(CC) -shared", and when running programs linked against 
libf2c.so,
+@@ -91,10 +92,10 @@ libf2c.so: $(OFILES)
  ### If your system lacks ranlib, you don't need it; see README.
  
  f77vers.o: f77vers.c
 -      $(CC) -c f77vers.c
-+      $(CC) $(RPM_OPT_FLAGS) -c f77vers.c
++      $(CC) -c -DSkip_f2c_Undefs $(CFLAGS) -o f77vers.o f77vers.c
  
  i77vers.o: i77vers.c
 -      $(CC) -c i77vers.c
-+      $(CC) $(RPM_OPT_FLAGS) -c i77vers.c
++      $(CC) -c -DSkip_f2c_Undefs $(CFLAGS) -o i77vers.o i77vers.c
  
  # To get an "f2c.h" for use with "f2c -C++", first "make hadd"
  hadd: f2c.h0 f2ch.add

++++++ f2c.ps ++++++
+++ empty output from diff against f2c.ps.gz

++++++ libf2c-20110801-format-security.patch ++++++
diff --git a/libf2c/arithchk.c b/libf2c/arithchk.c
index 8e15722..a1a03ac 100644
--- a/libf2c/arithchk.c
+++ b/libf2c/arithchk.c
@@ -110,7 +110,7 @@ icheck(void)
        return 0;
        }
 
-char *emptyfmt = "";   /* avoid possible warning message with printf("") */
+const char emptyfmt[] = "";    /* avoid possible warning message with 
printf("") */
 
  static Akind *
 ccheck(void)
++++++ libf2c.zip ++++++
Binary files /var/tmp/diff_new_pack.Ay1RNq/_old and 
/var/tmp/diff_new_pack.Ay1RNq/_new differ


Reply via email to