[packages/libf2c] Up to 20240131
arekm
arekm at pld-linux.org
Sun Mar 15 01:24:06 CET 2026
commit 20595ec1ff3358a01424f3099430653fe284d72a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Mar 15 01:23:28 2026 +0100
Up to 20240131
format-security.patch | 11 -----------
libf2c-nomacros.patch | 20 --------------------
libf2c-opt.patch | 15 ---------------
libf2c.spec | 12 ++++--------
4 files changed, 4 insertions(+), 54 deletions(-)
---
diff --git a/libf2c.spec b/libf2c.spec
index ef75dcb..7e48ee6 100644
--- a/libf2c.spec
+++ b/libf2c.spec
@@ -1,16 +1,14 @@
Summary: Fortran to C conversion support library
Summary(pl.UTF-8): Biblioteka wspierająca tłumaczenie z Fortranu na C
Name: libf2c
-Version: 20110801
-Release: 2
+Version: 20240131
+Release: 1
License: distributable
Group: Libraries
Source0: http://www.netlib.org/f2c/libf2c.zip
-# Source0-md5: dc6ae2b9b33347feb8bdcc3c3def8b9f
+# Source0-md5: 651b3d9cbfc9ae659166332785ac3b6e
Patch0: %{name}-LP64.patch
-Patch1: %{name}-opt.patch
-Patch2: %{name}-nomacros.patch
-Patch3: format-security.patch
+Patch1: %{name}-nomacros.patch
URL: http://www.netlib.org/f2c/
BuildRequires: unzip
Conflicts: f2c < 20031027-2
@@ -51,8 +49,6 @@ Statyczna biblioteka f2c.
%setup -q -c
%patch -P0 -p1
%patch -P1 -p1
-%patch -P2 -p1
-%patch -P3 -p1
%build
%{__make} -f makefile.u \
diff --git a/format-security.patch b/format-security.patch
deleted file mode 100644
index fef7371..0000000
--- a/format-security.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- libf2c-20110801/arithchk.c~ 2011-01-27 16:24:09.000000000 +0000
-+++ libf2c-20110801/arithchk.c 2015-04-05 17:33:07.396796153 +0000
-@@ -122,7 +122,7 @@
- long Cray1;
-
- /* Cray1 = 4617762693716115456 -- without overflow on non-Crays */
-- Cray1 = printf(emptyfmt) < 0 ? 0 : 4617762;
-+ Cray1 = printf("%s", emptyfmt) < 0 ? 0 : 4617762;
- if (printf(emptyfmt, Cray1) >= 0)
- Cray1 = 1000000*Cray1 + 693716;
- if (printf(emptyfmt, Cray1) >= 0)
diff --git a/libf2c-nomacros.patch b/libf2c-nomacros.patch
deleted file mode 100644
index 6f3582e..0000000
--- a/libf2c-nomacros.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-diff -urN 1.org/f2c.h0 1/f2c.h0
---- 1.org/f2c.h0 1999-09-07 19:46:24.000000000 +0200
-+++ 1/f2c.h0 2012-07-29 14:10:11.654966145 +0200
-@@ -154,16 +154,6 @@
- };
- typedef struct Namelist Namelist;
-
--#define abs(x) ((x) >= 0 ? (x) : -(x))
--#define dabs(x) (doublereal)abs(x)
--#define min(a,b) ((a) <= (b) ? (a) : (b))
--#define max(a,b) ((a) >= (b) ? (a) : (b))
--#define dmin(a,b) (doublereal)min(a,b)
--#define dmax(a,b) (doublereal)max(a,b)
--#define bit_test(a,b) ((a) >> (b) & 1)
--#define bit_clear(a,b) ((a) & ~((uinteger)1 << (b)))
--#define bit_set(a,b) ((a) | ((uinteger)1 << (b)))
--
- /* procedure parameter types for -A and -C++ */
-
- #define F2C_proc_par_types 1
diff --git a/libf2c-opt.patch b/libf2c-opt.patch
deleted file mode 100644
index 46c2585..0000000
--- a/libf2c-opt.patch
+++ /dev/null
@@ -1,15 +0,0 @@
---- libf2c/makefile.u.orig 2003-06-06 15:09:42.000000000 +0200
-+++ libf2c/makefile.u 2006-07-23 20:36:43.243357750 +0200
-@@ -86,12 +86,6 @@
-
- ### If your system lacks ranlib, you don't need it; see README.
-
--f77vers.o: f77vers.c
-- $(CC) -c f77vers.c
--
--i77vers.o: i77vers.c
-- $(CC) -c i77vers.c
--
- # To get an "f2c.h" for use with "f2c -C++", first "make hadd"
- hadd: f2c.h0 f2ch.add
- cat f2c.h0 f2ch.add >f2c.h
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libf2c.git/commitdiff/20595ec1ff3358a01424f3099430653fe284d72a
More information about the pld-cvs-commit
mailing list