Hello community,

here is the log from the commit of package perl-Crypt-OpenSSL-Bignum for 
openSUSE:Factory checked in at 2018-10-11 11:51:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Crypt-OpenSSL-Bignum (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Crypt-OpenSSL-Bignum.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Crypt-OpenSSL-Bignum"

Thu Oct 11 11:51:58 2018 rev:19 rq:640262 version:0.09

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/perl-Crypt-OpenSSL-Bignum/perl-Crypt-OpenSSL-Bignum.changes
      2015-02-06 22:38:01.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.perl-Crypt-OpenSSL-Bignum.new/perl-Crypt-OpenSSL-Bignum.changes
 2018-10-11 11:53:22.714181739 +0200
@@ -1,0 +2,19 @@
+Wed Feb  7 16:16:40 UTC 2018 - [email protected]
+
+- updated to 0.09
+   see /usr/share/doc/packages/perl-Crypt-OpenSSL-Bignum/Changes
+
+  0.09    2017/12/01
+          - fix #4 License is not specified in metadata 
+          - fix #6 Strip 
+ and  out of $lib and $inc
+          - fix #7 Fix building with OpenSSL 1.1.0 
+  
+  0.08    2017/02/08
+          - Makefile.PL MSWin32 fix
+  
+  0.07    2016/10/25
+          - Makefile.PL supports OPENSSL_PREFIX or OPENSSL_LIB+OPENSSL_INCLUDE 
env variables
+          - Makefile.PL tries to find libcrypto via pkg-config
+
+-------------------------------------------------------------------

Old:
----
  Crypt-OpenSSL-Bignum-0.06.tar.gz

New:
----
  Crypt-OpenSSL-Bignum-0.09.tar.gz
  cpanspec.yml

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

Other differences:
------------------
++++++ perl-Crypt-OpenSSL-Bignum.spec ++++++
--- /var/tmp/diff_new_pack.sas7Sz/_old  2018-10-11 11:53:23.178181149 +0200
+++ /var/tmp/diff_new_pack.sas7Sz/_new  2018-10-11 11:53:23.182181143 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Crypt-OpenSSL-Bignum
 #
-# Copyright (c) 2015 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,20 @@
 # 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-Crypt-OpenSSL-Bignum
-Version:        0.06
+Version:        0.09
 Release:        0
 %define cpan_name Crypt-OpenSSL-Bignum
 Summary:        OpenSSL's multiprecision integer arithmetic
-License:        GPL-1.0+ or Artistic-1.0
+License:        Artistic-1.0 OR GPL-1.0-or-later
 Group:          Development/Libraries/Perl
 Url:            http://search.cpan.org/dist/Crypt-OpenSSL-Bignum/
-Source:         
http://www.cpan.org/authors/id/K/KM/KMX/%{cpan_name}-%{version}.tar.gz
+Source0:        
https://cpan.metacpan.org/authors/id/K/KM/KMX/%{cpan_name}-%{version}.tar.gz
+Source1:        cpanspec.yml
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl
 BuildRequires:  perl-macros
@@ -44,7 +45,7 @@
 
 %prep
 %setup -q -n %{cpan_name}-%{version}
-find . -type f -print0 | xargs -0 chmod 644
+find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
@@ -60,6 +61,7 @@
 
 %files -f %{name}.files
 %defattr(-,root,root,755)
-%doc Changes LICENSE README
+%doc Changes README
+%license LICENSE
 
 %changelog

++++++ Crypt-OpenSSL-Bignum-0.06.tar.gz -> Crypt-OpenSSL-Bignum-0.09.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Crypt-OpenSSL-Bignum-0.06/Bignum/CTX.pm 
new/Crypt-OpenSSL-Bignum-0.09/Bignum/CTX.pm
--- old/Crypt-OpenSSL-Bignum-0.06/Bignum/CTX.pm 2015-02-04 10:35:52.000000000 
+0100
+++ new/Crypt-OpenSSL-Bignum-0.09/Bignum/CTX.pm 2016-10-25 09:34:38.000000000 
+0200
@@ -9,7 +9,7 @@
 
 require DynaLoader;
 
-@ISA = qw(DynaLoader);
+use base qw(DynaLoader);
 
 bootstrap Crypt::OpenSSL::Bignum $Crypt::OpenSSL::Bignum::VERSION;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Crypt-OpenSSL-Bignum-0.06/Bignum.pm 
new/Crypt-OpenSSL-Bignum-0.09/Bignum.pm
--- old/Crypt-OpenSSL-Bignum-0.06/Bignum.pm     2015-02-06 07:48:34.000000000 
+0100
+++ new/Crypt-OpenSSL-Bignum-0.09/Bignum.pm     2017-12-01 20:07:57.000000000 
+0100
@@ -6,11 +6,9 @@
 
 use vars qw( $VERSION @ISA );
 
-require DynaLoader;
+use base qw(DynaLoader);
 
-@ISA = qw(DynaLoader);
-
-$VERSION = '0.06';
+$VERSION = '0.09';
 
 bootstrap Crypt::OpenSSL::Bignum $VERSION;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Crypt-OpenSSL-Bignum-0.06/Bignum.xs 
new/Crypt-OpenSSL-Bignum-0.09/Bignum.xs
--- old/Crypt-OpenSSL-Bignum-0.06/Bignum.xs     2015-02-04 23:10:38.000000000 
+0100
+++ new/Crypt-OpenSSL-Bignum-0.09/Bignum.xs     2017-12-01 20:05:15.000000000 
+0100
@@ -29,7 +29,11 @@
 MODULE = Crypt::OpenSSL::Bignum      PACKAGE = Crypt::OpenSSL::Bignum   PREFIX 
= BN_
 
 BOOT:
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
+    OPENSSL_init_crypto(0, NULL);
+#else
     ERR_load_crypto_strings();
+#endif
 
 void
 DESTROY(Crypt::OpenSSL::Bignum self)
@@ -92,7 +96,7 @@
     BIGNUM* bn;
   CODE:
     checkOpenSslCall( bn = BN_new() );
-    checkOpenSslCall( BN_zero( bn ) );
+    checkOpenSslCall( BN_set_word( bn, 0 ) );
     RETVAL = bn;
   OUTPUT:
     RETVAL
@@ -103,7 +107,7 @@
     BIGNUM *bn;
   CODE:
     checkOpenSslCall( bn = BN_new() );
-    checkOpenSslCall( BN_zero( bn ) );
+    checkOpenSslCall( BN_set_word( bn, 0 ) );
     RETVAL = bn;
   OUTPUT:
     RETVAL
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Crypt-OpenSSL-Bignum-0.06/Changes 
new/Crypt-OpenSSL-Bignum-0.09/Changes
--- old/Crypt-OpenSSL-Bignum-0.06/Changes       2015-02-06 07:49:10.000000000 
+0100
+++ new/Crypt-OpenSSL-Bignum-0.09/Changes       2017-12-01 20:12:22.000000000 
+0100
@@ -1,5 +1,17 @@
 Revision history for Perl extension Crypt::OpenSSL::Bignum.
 
+0.09    2017/12/01
+        - fix #4 License is not specified in metadata 
+        - fix #6 Strip \n and \r out of $lib and $inc
+        - fix #7 Fix building with OpenSSL 1.1.0 
+
+0.08    2017/02/08
+        - Makefile.PL MSWin32 fix
+
+0.07    2016/10/25
+        - Makefile.PL supports OPENSSL_PREFIX or OPENSSL_LIB+OPENSSL_INCLUDE 
env variables
+        - Makefile.PL tries to find libcrypto via pkg-config
+
 0.06    2015/02/06
         - fix for #77911 Patch to add more functions
         - new constructors: new, rand, pseudo_rand, rand_range
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Crypt-OpenSSL-Bignum-0.06/MANIFEST 
new/Crypt-OpenSSL-Bignum-0.09/MANIFEST
--- old/Crypt-OpenSSL-Bignum-0.06/MANIFEST      2015-02-06 07:50:10.000000000 
+0100
+++ new/Crypt-OpenSSL-Bignum-0.09/MANIFEST      2017-12-01 20:13:18.000000000 
+0100
@@ -2,7 +2,6 @@
 Bignum.xs
 Bignum/CTX.pm
 Changes
-hints/MSWin32.pl
 LICENSE
 Makefile.PL
 MANIFEST
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Crypt-OpenSSL-Bignum-0.06/META.json 
new/Crypt-OpenSSL-Bignum-0.09/META.json
--- old/Crypt-OpenSSL-Bignum-0.06/META.json     2015-02-06 07:50:09.000000000 
+0100
+++ new/Crypt-OpenSSL-Bignum-0.09/META.json     2017-12-01 20:13:17.000000000 
+0100
@@ -4,13 +4,13 @@
       "Ian Robertson <[email protected]>"
    ],
    "dynamic_config" : 1,
-   "generated_by" : "ExtUtils::MakeMaker version 6.98, CPAN::Meta::Converter 
version 2.143240",
+   "generated_by" : "ExtUtils::MakeMaker version 7.3, CPAN::Meta::Converter 
version 2.150010",
    "license" : [
-      "unknown"
+      "perl_5"
    ],
    "meta-spec" : {
       "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec";,
-      "version" : "2"
+      "version" : 2
    },
    "name" : "Crypt-OpenSSL-Bignum",
    "no_index" : {
@@ -42,5 +42,6 @@
          "url" : "https://github.com/kmx/perl-Crypt-OpenSSL-Bignum";
       }
    },
-   "version" : "0.06"
+   "version" : "0.09",
+   "x_serialization_backend" : "JSON::PP version 2.94"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Crypt-OpenSSL-Bignum-0.06/META.yml 
new/Crypt-OpenSSL-Bignum-0.09/META.yml
--- old/Crypt-OpenSSL-Bignum-0.06/META.yml      2015-02-06 07:49:59.000000000 
+0100
+++ new/Crypt-OpenSSL-Bignum-0.09/META.yml      2017-12-01 20:13:13.000000000 
+0100
@@ -7,8 +7,8 @@
 configure_requires:
   ExtUtils::MakeMaker: '0'
 dynamic_config: 1
-generated_by: 'ExtUtils::MakeMaker version 6.98, CPAN::Meta::Converter version 
2.143240'
-license: unknown
+generated_by: 'ExtUtils::MakeMaker version 7.3, CPAN::Meta::Converter version 
2.150010'
+license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
   version: '1.4'
@@ -21,4 +21,5 @@
   perl: '5.006002'
 resources:
   repository: https://github.com/kmx/perl-Crypt-OpenSSL-Bignum
-version: '0.06'
+version: '0.09'
+x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Crypt-OpenSSL-Bignum-0.06/Makefile.PL 
new/Crypt-OpenSSL-Bignum-0.09/Makefile.PL
--- old/Crypt-OpenSSL-Bignum-0.06/Makefile.PL   2015-02-04 23:10:31.000000000 
+0100
+++ new/Crypt-OpenSSL-Bignum-0.09/Makefile.PL   2017-12-01 20:05:59.000000000 
+0100
@@ -1,16 +1,40 @@
 use ExtUtils::MakeMaker;
-# See lib/ExtUtils/MakeMaker.pm for details of how to influence
-# the contents of the Makefile that is written.
+use Config;
+
+my $lib = '-lcrypto';
+my $inc = '';
+my $nul = $^O eq 'MSWin32' ? 'nul' : '/dev/null';
+if (my $dir = $ENV{OPENSSL_PREFIX}) {
+  $lib = "-L$dir/lib -lcrypto";
+  $inc = "-I$dir/include";
+}
+elsif ($ENV{OPENSSL_LIB}) {
+  $lib = $ENV{OPENSSL_LIB};
+  $inc = $ENV{OPENSSL_INCLUDE};
+}
+elsif (`pkg-config --modversion libcrypto 2>$nul`) {
+  $lib = `pkg-config --libs libcrypto 2> $nul`;
+  $inc = `pkg-config --cflags libcrypto 2> $nul`;
+}
+elsif ($^O eq 'MSWin32') {
+  $lib = '-llibeay32' if $Config{cc} =~ /cl/;
+  $lib = '-leay32'    if $Config{cc} =~ /gcc/;
+}
+
+$lib =~ s/[\r\n]+/ /g;
+$inc =~ s/[\r\n]+/ /g;
+
 WriteMakefile(
     'NAME'              => 'Crypt::OpenSSL::Bignum',
     'VERSION_FROM'      => 'Bignum.pm',
     'PREREQ_PM'         => {},
     'ABSTRACT_FROM'     => 'Bignum.pm', # retrieve abstract from module
     'AUTHOR'            => 'Ian Robertson <[email protected]>',
-    'LIBS'              => ['-lcrypto'],   # e.g., '-lm'
-    'DEFINE'   => '-DPERL5 -DOPENSSL_NO_KRB5',
+    'LICENSE'           => 'perl',
+    'LIBS'              => [ $lib ],
+    'DEFINE'            => '-DPERL5 -DOPENSSL_NO_KRB5',
     # perl-5.8/gcc-3.2 needs -DPERL5, and redhat9 likes -DOPENSSL_NO_KRB5
-    'INC'               => '',
+    'INC'               => $inc,
     'MIN_PERL_VERSION'  => '5.006002',
     'META_MERGE'        => {
       resources => {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Crypt-OpenSSL-Bignum-0.06/README 
new/Crypt-OpenSSL-Bignum-0.09/README
--- old/Crypt-OpenSSL-Bignum-0.06/README        2015-02-04 11:30:58.000000000 
+0100
+++ new/Crypt-OpenSSL-Bignum-0.09/README        2017-12-01 20:08:59.000000000 
+0100
@@ -6,6 +6,6 @@
 modules, such as key parameters from Crypt::OpenSSL::RSA.  This module
 requires that the OpenSSL libraries and header files be installed.
 
-Copyright (c) 2003 Ian Robertson.  Crypt::OpenSSL::RSA is free
+Copyright (c) 2003 Ian Robertson.  Crypt::OpenSSL::Bignum is free
 software; you may redistribute it and/or modify it under the same
 terms as Perl itself.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Crypt-OpenSSL-Bignum-0.06/hints/MSWin32.pl 
new/Crypt-OpenSSL-Bignum-0.09/hints/MSWin32.pl
--- old/Crypt-OpenSSL-Bignum-0.06/hints/MSWin32.pl      2015-02-04 
08:45:43.000000000 +0100
+++ new/Crypt-OpenSSL-Bignum-0.09/hints/MSWin32.pl      1970-01-01 
01:00:00.000000000 +0100
@@ -1,3 +0,0 @@
-use Config;
-$self->{LIBS} = ['-llibeay32'] if $Config{cc} =~ /cl/;
-$self->{LIBS} = ['-leay32']    if $Config{cc} =~ /gcc/;

++++++ cpanspec.yml ++++++
---
#description_paragraphs: 3
#description: |-
#  override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
#  - source1
#  - source2
#patches:
#  foo.patch: -p1
#  bar.patch:
#preamble: |-
# BuildRequires:  gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s,  *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL 
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module

Reply via email to