Hello community, here is the log from the commit of package perl-ExtUtils-F77 for openSUSE:Factory checked in at 2018-12-12 17:26:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-ExtUtils-F77 (Old) and /work/SRC/openSUSE:Factory/.perl-ExtUtils-F77.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-ExtUtils-F77" Wed Dec 12 17:26:53 2018 rev:25 rq:655756 version:1.22 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-ExtUtils-F77/perl-ExtUtils-F77.changes 2017-10-23 16:51:54.312578456 +0200 +++ /work/SRC/openSUSE:Factory/.perl-ExtUtils-F77.new.28833/perl-ExtUtils-F77.changes 2018-12-12 17:26:57.290993348 +0100 @@ -1,0 +2,22 @@ +Thu Dec 6 15:40:03 UTC 2018 - Stephan Kulow <[email protected]> + +- updated to 1.22 + see /usr/share/doc/packages/perl-ExtUtils-F77/CHANGES + + v1.22 released Dec 2nd 2018 + --------------------------- + + * Fixed some minor typos in README and F77.pm + + v1.21 released Nov 25th 2018 + ----------------------------- + + * Adjust ordering of searched for Generic GNU compilers (Nov 2018) + + * Addition to pod format content (Nov 2018) + + * Use Text::ParseWords not naive split (mohawk2) + + * Modernize t/require.t (mohawk2) + +------------------------------------------------------------------- Old: ---- ExtUtils-F77-1.20.tar.gz New: ---- ExtUtils-F77-1.22.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-ExtUtils-F77.spec ++++++ --- /var/tmp/diff_new_pack.ucPHzB/_old 2018-12-12 17:26:57.810992688 +0100 +++ /var/tmp/diff_new_pack.ucPHzB/_new 2018-12-12 17:26:57.814992682 +0100 @@ -1,7 +1,7 @@ # # spec file for package perl-ExtUtils-F77 # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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,19 +12,19 @@ # 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/ # Name: perl-ExtUtils-F77 -Version: 1.20 +Version: 1.22 Release: 0 %define cpan_name ExtUtils-F77 Summary: Simple interface to F77 libs -License: Artistic-1.0 or GPL-1.0+ +License: Artistic-1.0 OR GPL-1.0-or-later Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/ExtUtils-F77/ -Source0: https://cpan.metacpan.org/authors/id/C/CH/CHM/%{cpan_name}-%{version}.tar.gz +Url: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/K/KG/KGB/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -46,12 +46,13 @@ various flavours of UNIX systems. A simple self-documenting Perl database of knowledge/code for figuring out how to link for various combinations of OS and compiler is embedded in the modules Perl code. Please help save the -world by sending database entries for your system to [email protected] +world by submitted patches for new database entries for your system at +https://github.com/PDLPorters/extutils-f77 Note the default on most systems is now to search for a generic 'GNU' -compiler which can be g77, gfortran or g95 and then find the appropriate -link libraries automatically. (This is the 'Generic' 'GNU' database entry -in the code.) +compiler which can be gfortran, g77, g95 or fort77 (in that order based on +usage) and then find the appropriate link libraries automatically. (This is +the 'Generic' 'GNU' database entry in the code.) The library list which the module returns can be explicitly overridden by setting the environment variable F77LIBS, e.g. @@ -64,11 +65,11 @@ %setup -q -n %{cpan_name}-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -%{__make} %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} %check -%{__make} test +make test %install %perl_make_install ++++++ ExtUtils-F77-1.20.tar.gz -> ExtUtils-F77-1.22.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ExtUtils-F77-1.20/CHANGES new/ExtUtils-F77-1.22/CHANGES --- old/ExtUtils-F77-1.20/CHANGES 2016-05-28 21:56:39.000000000 +0200 +++ new/ExtUtils-F77-1.22/CHANGES 2018-12-02 07:31:14.000000000 +0100 @@ -1,6 +1,22 @@ ExtUtils::F77 Changes list -------------------------- +v1.22 released Dec 2nd 2018 +--------------------------- + +* Fixed some minor typos in README and F77.pm + +v1.21 released Nov 25th 2018 +----------------------------- + +* Adjust ordering of searched for Generic GNU compilers (Nov 2018) + +* Addition to pod format content (Nov 2018) + +* Use Text::ParseWords not naive split (mohawk2) + +* Modernize t/require.t (mohawk2) + v1.20 released May 28th 2016 ------------------------------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ExtUtils-F77-1.20/F77.pm new/ExtUtils-F77-1.22/F77.pm --- old/ExtUtils-F77-1.20/F77.pm 2016-05-28 21:55:38.000000000 +0200 +++ new/ExtUtils-F77-1.22/F77.pm 2018-12-02 07:30:16.000000000 +0100 @@ -3,6 +3,7 @@ use Config; use File::Spec; +use Text::ParseWords; =head1 NAME @@ -20,12 +21,12 @@ A simple self-documenting Perl database of knowledge/code for figuring out how to link for various combinations of OS and compiler is embedded in the modules Perl code. Please help -save the world by sending database entries for -your system to [email protected] +save the world by submitted patches for new database entries for +your system at L<https://github.com/PDLPorters/extutils-f77> Note the default on most systems is now to search for a generic 'GNU' compiler -which can be g77, gfortran or g95 and then find the appropriate link -libraries automatically. (This is the 'Generic' 'GNU' database entry +which can be gfortran, g77, g95 or fort77 (in that order based on usage) and then find +the appropriate link libraries automatically. (This is the 'Generic' 'GNU' database entry in the code.) The library list which the module returns @@ -38,7 +39,7 @@ =cut -$VERSION = "1.20"; +$VERSION = "1.22"; warn "\nExtUtils::F77: Version $VERSION\n"; @@ -108,7 +109,7 @@ $dir = "/usr/local/lib"; $lib = "f2c"; } - return( "-L$dir -L/usr/lib -l$lib -lm" ); + return( qq{"-L$dir" -L/usr/lib -l$lib -lm} ); }; $F77config{MinGW}{GFortran}{Link} = sub { @@ -123,7 +124,7 @@ } else { $dir = "/usr/local/lib"; } - return( "-L$dir -L/usr/lib -lgfortran -lquadmath -lm" ); + return( qq{"-L$dir" -L/usr/lib -lgfortran -lquadmath -lm} ); }; $F77config{MinGW}{G77}{Trail_} = 1; @@ -142,7 +143,7 @@ $dir = find_highest_SC("/usr/lang/SC*"); return "" unless $dir; # Failure print "$Pkg: Found Fortran latest version lib dir $dir\n"; - return "-L$dir -lF77 -lm"; + return qq{"-L$dir" -lF77 -lm}; }; # Whether symbols (subroutine names etc.) have trailing underscores @@ -244,7 +245,7 @@ /; } - join( ' ', "-L$dir", @libs ); + join( ' ', qq{"-L$dir"}, @libs ); }; @@ -257,8 +258,8 @@ $F77config{Generic}{GNU}{Trail_} = 1; $F77config{Generic}{GNU}{Cflags} = ' '; # <---need this space! -$F77config{Generic}{GNU}{Link} = link_gnufortran_compiler('g77', 'gfortran', 'g95', 'fort77'); -$F77config{Generic}{GNU}{Compiler} = find_in_path('g77', "$gfortran", 'g95','fort77'); +$F77config{Generic}{GNU}{Link} = link_gnufortran_compiler('gfortran', 'g77', 'g95', 'fort77'); +$F77config{Generic}{GNU}{Compiler} = find_in_path("$gfortran", 'g77', 'g95','fort77'); $F77config{Generic}{DEFAULT} = 'GNU'; ### cygwin ### @@ -361,7 +362,7 @@ } else { $dir = "/usr/local/lib"; } - return( "-L$dir -L/usr/lib -lg2c -lm" ); + return( qq{"-L$dir" -L/usr/lib -lg2c -lm} ); }; $F77config{Freebsd}{GFortran}{Link} = sub { @@ -376,7 +377,7 @@ } else { $dir = "/usr/local/lib"; } - return( "-L$dir -L/usr/lib -lgfortran -lm" ); + return( qq{"-L$dir" -L/usr/lib -lgfortran -lm} ); }; $F77config{Freebsd}{G77}{Trail_} = 1; @@ -619,7 +620,7 @@ sub validate_libs { print "$Pkg: Validating $_[0] "; - my @args = split(' ',shift()); + my @args = shellwords(shift()); my $pat; my $ret = 1; @@ -656,7 +657,7 @@ my $ret; open(OUT,">$file.f"); - print OUT " print *, 'Hello World'\n"; + print OUT " write(*,*) 'Hello World'\n"; print OUT " end\n"; close(OUT); print "Compiling the test Fortran program...\n"; @@ -702,7 +703,7 @@ unless($fallback_compiler eq 'GFortran' && $^O =~ /MSWin/i) { $gccdir = `$gcc -m32 -print-libgcc-file-name`; chomp $gccdir; $gccdir =~ s/\/libgcc.a//; - return " -L$gccdir -lgcc"; + return qq{ "-L$gccdir" -lgcc}; }else{ return ""; } @@ -789,15 +790,18 @@ if ( $Config{osname} =~ /darwin/ && $Config{osvers} >= 14 && $compiler eq 'gfortran' && $version >= 4.9 ) { # Add extra libs for gfortran versions >= 4.9 and OS X $append = "-lgcc_ext.10.5 -lgcc_s.10.5 -lquadmath"; - return( "-L$dir $append -L/usr/lib -l$lib -lm" ); + return( qq{"-L$dir" $append -L/usr/lib -l$lib -lm} ); } - return( "-L$dir -L/usr/lib -l$lib -lm" ); + return( qq{"-L$dir" -L/usr/lib -l$lib -lm} ); } +=head1 SEE ALSO + +The L<PGPLOT> module uses this to link with the Fortran based graphics library, and was the cause of this module's development. =head1 AUTHOR -Karl Glazebrook ([email protected]). +Karl Glazebrook =cut diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ExtUtils-F77-1.20/META.json new/ExtUtils-F77-1.22/META.json --- old/ExtUtils-F77-1.20/META.json 2016-05-28 21:57:33.000000000 +0200 +++ new/ExtUtils-F77-1.22/META.json 2018-12-02 07:32:51.000000000 +0100 @@ -1,7 +1,7 @@ { "abstract" : "a simple interface to F77 libs", "author" : [ - "Karl Glazebrook <[email protected]>" + "Karl Glazebrook <[email protected]>" ], "dynamic_config" : 1, "generated_by" : "ExtUtils::MakeMaker version 7.0401, CPAN::Meta::Converter version 2.150001", @@ -31,9 +31,19 @@ } }, "runtime" : { - "requires" : {} + "requires" : { + "Text::ParseWords" : "0" + } } }, "release_status" : "stable", - "version" : "1.20" + "resources" : { + "repository" : { + "type" : "git", + "url" : "git://github.com/PDLPorters/extutils-f77.git", + "web" : "http://github.com/PDLPorters/extutils-f77" + }, + "x_IRC" : "irc://irc.perl.org/#pdl" + }, + "version" : "1.22" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ExtUtils-F77-1.20/META.yml new/ExtUtils-F77-1.22/META.yml --- old/ExtUtils-F77-1.20/META.yml 2016-05-28 21:57:33.000000000 +0200 +++ new/ExtUtils-F77-1.22/META.yml 2018-12-02 07:32:51.000000000 +0100 @@ -1,7 +1,7 @@ --- abstract: 'a simple interface to F77 libs' author: - - 'Karl Glazebrook <[email protected]>' + - 'Karl Glazebrook <[email protected]>' build_requires: ExtUtils::MakeMaker: '0' configure_requires: @@ -17,5 +17,9 @@ directory: - t - inc -requires: {} -version: '1.20' +requires: + Text::ParseWords: '0' +resources: + IRC: irc://irc.perl.org/#pdl + repository: git://github.com/PDLPorters/extutils-f77.git +version: '1.22' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ExtUtils-F77-1.20/Makefile.PL new/ExtUtils-F77-1.22/Makefile.PL --- old/ExtUtils-F77-1.20/Makefile.PL 2015-12-12 20:04:45.000000000 +0100 +++ new/ExtUtils-F77-1.22/Makefile.PL 2018-12-01 07:24:40.000000000 +0100 @@ -1,15 +1,23 @@ - -# Makefile.PL for ExtUtils::F77 - use ExtUtils::MakeMaker; -# # See lib/ExtUtils/MakeMaker.pm for details of how to influence -# # the contents of the Makefile that is written. WriteMakefile( - 'NAME' => 'ExtUtils::F77', - 'ABSTRACT' => 'a simple interface to F77 libs', - 'AUTHOR' => 'Karl Glazebrook <[email protected]>', - 'LICENSE' => 'perl_5', - 'VERSION_FROM' => 'F77.pm', - 'dist' => { COMPRESS=>"gzip", SUFFIX=>"gz" }, # Is this still needed? - ); - + NAME => 'ExtUtils::F77', + ABSTRACT => 'a simple interface to F77 libs', + AUTHOR => 'Karl Glazebrook <[email protected]>', + LICENSE => 'perl_5', + VERSION_FROM => 'F77.pm', + PREREQ_PM => { + 'Text::ParseWords' => 0, + }, + META_MERGE => { + "meta-spec" => { version => 2 }, + resources => { + bugtracker => 'https://github.com/PDLPorters/extutils-f77/issues', + repository => { + type => 'git', + url => 'git://github.com/PDLPorters/extutils-f77.git', + web => 'http://github.com/PDLPorters/extutils-f77', + }, + x_IRC => 'irc://irc.perl.org/#pdl', + }, + }, +); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ExtUtils-F77-1.20/README new/ExtUtils-F77-1.22/README --- old/ExtUtils-F77-1.20/README 2001-06-15 21:04:01.000000000 +0200 +++ new/ExtUtils-F77-1.22/README 2018-12-01 07:26:26.000000000 +0100 @@ -1,18 +1,37 @@ +ExtUtils::F77 +Copyright(C) 2001 + Karl Glazebrook <[email protected]> -ExtUtils::F77 module --------------------- +1. Abstract -Karl Glazebrook +This module tries to figure out how to link C programs with +Fortran subroutines on your system. [email protected] +2. Install -[see file CHANGES for new features] +Extract archive file. +Change current directory to extraction directory (usually ExtUtils-F77-x.xx/ where "x.xx" is version +number). +Type "perl Makefile.PL" to create Makefile. +Type "make" to build module. +Type "make test" to test build. +Type "make install" to install. -This module tries to figure out how to link C programs with -Fortran subroutines on your system. Basically one must add a list -of Fortran runtime libraries. The problem is their location -and name varies with each OS/compiler combination! +3. How to use + +See "perldoc ExtUtils::F77". + +4. Changes + +See CHANGES file. + +5. Copyright + +See COPYING file. -Please see file COPYING for copyright/license information +6. See also +https://github.com/PDLPorters/extutils-f77 +https://metacpan.org/pod/ExtUtils::F77 +http://pdl.perl.org/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ExtUtils-F77-1.20/t/require.t new/ExtUtils-F77-1.22/t/require.t --- old/ExtUtils-F77-1.20/t/require.t 2006-04-11 17:13:51.000000000 +0200 +++ new/ExtUtils-F77-1.22/t/require.t 2018-12-01 07:24:40.000000000 +0100 @@ -1,52 +1,9 @@ -#!/usr/local/bin/perl -w - -# Simple test to just load the F77.pm module - use strict; -use vars qw/$loaded/; - -BEGIN { $| = 1; print "1..2\n"; } -END {print "not ok 1\n" unless $loaded;} -use ExtUtils::F77; -$loaded = 1; -print "ok 1\n"; - -# try compiling ? - -open(FH,">hello.f"); -print FH " - subroutine hello_fortran - print *, 'Hello from the wonderful world of fortran' -c $ExtUtils::F77::Compiler $ExtUtils::F77::Cflags $ExtUtils::F77::Runtime - return - end -"; - -close FH; -unlink "hello.o" if(-e "hello.o"); -my $compile_command = "$ExtUtils::F77::Compiler $ExtUtils::F77::Cflags -c hello.f "; -my $rc = system($compile_command); -$rc = 0xffff & $rc; -if($rc){ - if($rc == 0xff00){ - print "2 ERROR: $compile_command failed: $!"; - }elsif ($rc > 0x80) { - $rc >>= 8; - print "2 WARNING: $compile_command returned non-zero exit status $rc\n"; - }else{ - if($rc & 0x80){ - print "2 $compile_command coredumped from signal $rc"; - }else{ - print "2 $compile_command returned signal $rc"; - } - } -}else{ - unlink "hello.f","hello.o"; - print "ok 2\n" -} - -# how about linking - too complicated? - +use warnings; +use Test::More tests => 3; +use_ok 'ExtUtils::F77'; +is ExtUtils::F77->testcompiler, 1, 'testcompiler method returns 1'; +is ExtUtils::F77->runtimeok, 1, 'runtime libs found';
