[packages/perl-ExtUtils-F77] - updated to 1.26

qboosh qboosh at pld-linux.org
Sat Sep 20 19:06:12 CEST 2025


commit 3489d1f93b6e8817b1a8948e23c80f83a8b5b21a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Sep 20 19:09:09 2025 +0200

    - updated to 1.26

 perl-ExtUtils-F77-gcc.patch | 73 ++++++++++++++++++++-------------------------
 perl-ExtUtils-F77.spec      | 12 ++++----
 2 files changed, 40 insertions(+), 45 deletions(-)
---
diff --git a/perl-ExtUtils-F77.spec b/perl-ExtUtils-F77.spec
index 7ec74ee..d047be7 100644
--- a/perl-ExtUtils-F77.spec
+++ b/perl-ExtUtils-F77.spec
@@ -1,24 +1,25 @@
 #
 # Conditional build:
-%bcond_without	tests	# don't perform "make test"
+%bcond_without	tests	# unit tests
 #
 %define		pdir	ExtUtils
 %define		pnam	F77
 Summary:	ExtUtils::F77 Perl module - simple interface to F77 libraries
 Summary(pl.UTF-8):	Moduł Perla ExtUtils::F77 - prosty interfejs do bibliotek F77
 Name:		perl-ExtUtils-F77
-Version:	1.17
+Version:	1.26
 Release:	1
 # same as perl
 License:	GPL v1+ or Artistic
 Group:		Development/Languages/Perl
-Source0:	http://www.cpan.org/modules/by-module/ExtUtils/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5:	c0143b5342587ed2ee5db3f6cfb9cc13
+Source0:	https://www.cpan.org/modules/by-module/ExtUtils/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	06e142e823e6f60a1d4aa711f45c2f79
 Patch0:		%{name}-gcc.patch
-URL:		http://search.cpan.org/dist/ExtUtils-F77/
+URL:		https://metacpan.org/dist/ExtUtils-F77
 BuildRequires:	gcc-fortran
 BuildRequires:	perl-devel >= 1:5.8.0
 BuildRequires:	rpm-perlprov >= 4.1-13
+BuildRequires:	rpmbuild(macros) >= 1.745
 Requires:	gcc-fortran
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -43,6 +44,7 @@ kompilatora.
 %build
 %{__perl} Makefile.PL \
 	INSTALLDIRS=vendor
+
 %{__make}
 
 %{?with_tests:%{__make} test}
diff --git a/perl-ExtUtils-F77-gcc.patch b/perl-ExtUtils-F77-gcc.patch
index 925ea9b..258dab7 100644
--- a/perl-ExtUtils-F77-gcc.patch
+++ b/perl-ExtUtils-F77-gcc.patch
@@ -1,50 +1,43 @@
---- ExtUtils-F77-1.17/F77.pm.orig	2011-01-01 02:53:06.000000000 +0100
-+++ ExtUtils-F77-1.17/F77.pm	2011-12-17 13:56:13.302842603 +0100
-@@ -255,7 +255,7 @@
+--- ExtUtils-F77-1.26/F77.pm.orig	2021-02-16 02:01:07.000000000 +0100
++++ ExtUtils-F77-1.26/F77.pm	2025-09-20 18:53:40.999306699 +0200
+@@ -97,12 +97,12 @@ sub gfortran_make_linkline {
+   $dir ||= $defaultdir;
+   $lib ||= $defaultlib;
+   $append ||= '';
+-  return( qq{"-L$dir" -L/usr/lib -l$lib $append -lm} );
++  return( qq{"-L$dir" -l$lib $append -lm} );
+ }
+ 
+ sub gfortran_find_libdir {
+   my ($compiler, $lib) = @_;
+-  for my $suffix (qw(a so)) {
++  for my $suffix (qw(so a)) {
+     my $filename = "lib$lib.$suffix";
+     my $dir = `$compiler -print-file-name=$filename`;
+     chomp $dir;
+@@ -111,6 +111,7 @@ sub gfortran_find_libdir {
+     # directory if it returns a proper path (or matches a /)
+     next if !defined $dir or $dir eq $lib;
+     $dir =~ s,/$filename$,,;
++    $dir = `cd $dir ; pwd | tr -d '\n'`; # sanitize
+     return $dir;
+   }
+ }
+@@ -239,7 +240,7 @@ $F77config{Solaris}{DEFAULT} = 'F77';
  ### Generic GNU-77 or F2C system ###
  
  $F77config{Generic}{GNU}{Trail_} = 1;
 -$F77config{Generic}{GNU}{Cflags} = ' ';        # <---need this space!
 +$F77config{Generic}{GNU}{Cflags} = "$Config{'optimize'}";
- $F77config{Generic}{GNU}{Link}   = link_gnufortran_compiler('g77', 'gfortran', 'g95', 'fort77');    
- $F77config{Generic}{GNU}{Compiler} = find_in_path('g77', "$gfortran", 'g95','fort77');
- $F77config{Generic}{DEFAULT}     = 'GNU';
-@@ -587,7 +587,7 @@
+ $F77config{Generic}{GNU}{Link}   = link_gnufortran_compiler($gfortran, 'g77', 'g95', 'fort77');
+ $F77config{Generic}{GNU}{Compiler} = find_in_path($gfortran, 'g77',  'g95','fort77');
+ 
+@@ -538,7 +539,7 @@ sub validate_libs {
     # Create list of directories to search (with common defaults)
  
-    my @path = ();     
--   for (@args, "/usr/lib", "/lib") { 
-+   for (@args, "/usr/lib64", "/lib64", "/usr/lib", "/lib") { 
+    my @path = ();
+-   for (@args, "/usr/lib", "/lib") {
++   for (@args, "/usr/libx32", "/libx32", "/usr/lib64", "/lib64", "/usr/lib", "/lib") {
        push @path, $1 if /^-L(.+)$/ && -d $1;
     }
  
-@@ -717,21 +717,25 @@
-     my @libs = @{$complibs{$compiler}};
-      my ($dir, $lib, $test);
-      foreach $test (@libs) {
--      $dir = `$compiler -print-file-name=lib$test.a`;
-+     foreach $ext ('.so', '.a') {
-+      $dir = `$compiler -print-file-name=lib$test$ext`;
-        chomp $dir;
-        # Note that -print-file-name returns just the library name
-        # if it cant be found - make sure that we only accept the
-        # directory if it returns a proper path (or matches a /)
--       if (defined $dir && $dir ne "lib$test.a") {
-+       if (defined $dir && $dir ne "lib$test$ext") {
-         $lib = $test; # Found an existing library
--        $dir =~ s,/lib$lib.a$,,;
-+        $dir =~ s,/lib$lib$ext$,,;
-+	$dir = `cd $dir ; pwd | tr -d '\n'`; # sanitize
-         last;
-      } else {
-          $dir = "/usr/local/lib";
-          $lib = "f2c";
-     }
-     }
--     return( "-L$dir -L/usr/lib -l$lib -lm" );
-+    last if defined($lib);
-+    }
-+     return( "-L$dir -l$lib -lm" );
- }
- 
- 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-ExtUtils-F77.git/commitdiff/3489d1f93b6e8817b1a8948e23c80f83a8b5b21a



More information about the pld-cvs-commit mailing list