Hello community,

here is the log from the commit of package perl-strictures for openSUSE:Factory 
checked in at 2014-03-02 07:43:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-strictures (Old)
 and      /work/SRC/openSUSE:Factory/.perl-strictures.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-strictures"

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-strictures/perl-strictures.changes  
2013-11-29 12:04:39.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.perl-strictures.new/perl-strictures.changes     
2014-03-02 07:43:06.000000000 +0100
@@ -1,0 +2,9 @@
+Mon Feb 24 08:38:38 UTC 2014 - [email protected]
+
+- updated to 1.005003
+   - added support for PUREPERL_ONLY (rt#91407)
+   - fixed using strictures->VERSION to query the version (rt#92965)
+   - extra prereqs will be listed as hard prerequisites if a compiler is
+     available
+
+-------------------------------------------------------------------

Old:
----
  strictures-1.005001.tar.gz

New:
----
  strictures-1.005003.tar.gz

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

Other differences:
------------------
++++++ perl-strictures.spec ++++++
--- /var/tmp/diff_new_pack.DS8r1K/_old  2014-03-02 07:43:07.000000000 +0100
+++ /var/tmp/diff_new_pack.DS8r1K/_new  2014-03-02 07:43:07.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-strictures
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           perl-strictures
-Version:        1.005001
+Version:        1.005003
 Release:        0
 %define cpan_name strictures
 Summary:        turn on strict and make all warnings fatal
@@ -29,16 +29,13 @@
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl
 BuildRequires:  perl-macros
-#BuildRequires: perl(bareword::filehandles)
-#BuildRequires: perl(Distar)
-#BuildRequires: perl(indirect)
-#BuildRequires: perl(multidimensional)
-#BuildRequires: perl(strictures) >= 1
-#BuildRequires: perl(Test::Pod)
-#BuildRequires: perl(Test::Pod::Coverage)
-Recommends:     perl(bareword::filehandles)
-Recommends:     perl(indirect)
-Recommends:     perl(multidimensional)
+BuildRequires:  perl(ExtUtils::CBuilder)
+BuildRequires:  perl(bareword::filehandles)
+BuildRequires:  perl(indirect)
+BuildRequires:  perl(multidimensional)
+Requires:       perl(bareword::filehandles)
+Requires:       perl(indirect)
+Requires:       perl(multidimensional)
 %{perl_requires}
 
 %description

++++++ strictures-1.005001.tar.gz -> strictures-1.005003.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/strictures-1.005001/Changes 
new/strictures-1.005003/Changes
--- old/strictures-1.005001/Changes     2013-11-07 18:23:09.000000000 +0100
+++ new/strictures-1.005003/Changes     2014-02-12 23:01:53.000000000 +0100
@@ -1,55 +1,63 @@
 Release history for strictures
 
-1.005001   2013-11-07
+1.005003 - 2014-02-12
+  - added support for PUREPERL_ONLY (rt#91407)
+  - fixed using strictures->VERSION to query the version (rt#92965)
+
+1.005002 - 2013-12-10
+  - extra prereqs will be listed as hard prerequisites if a compiler is
+    available
+
+1.005001 - 2013-11-07
   - fix skip on old perl on test script
 
-1.005000   2013-11-05
+1.005000 - 2013-11-05
   - detect mercurial when checking for development trees
   - avoid using constant.pm to save a bit of memory on older perls
   - update to v2 metadata
 
-1.004004   2012-11-12
+1.004004 - 2012-11-12
   - fix crash in 1.004003 due to qw() list being readonly
 
-1.004003   2012-11-10
+1.004003 - 2012-11-10
   - check only once for presence of extra testing prereqs
   - explicitly specify no dynamic_config in META
 
-1.004002   2012-09-08
+1.004002 - 2012-09-08
   - add better rationale for the extra testing heuristic
 
-1.004001   2012-07-12
+1.004001 - 2012-07-12
   - test-specific strictures now enabled during 'dzil test'
 
-1.004000   2012-07-12
+1.004000 - 2012-07-12
   - switch to testing calling file to avoid firing on dependencies
 
-1.003001   2012-04-08
+1.003001 - 2012-04-08
   - fix test to handle defatalization
 
-1.003000   2012-04-07
+1.003000 - 2012-04-07
   - try and run for any checkout t/ now we don't blow up the process
   - defatalize lack of extra testing modules
   - disable extra tests on perls <= 5.008003, things do not work there as
     expected
 
-1.002002   2011-02-25
+1.002002 - 2011-02-25
   - only try and mkdir the .git if it doesn't already exist so repeated
     test runs don't explode
 
-1.002001   2011-02-25
+1.002001 - 2011-02-25
   - switch .svn to .git in smells-of-vcs test and create it ourselves
     to ease importing of this dist into subversion repositories
 
-1.002000   2011-02-16
+1.002000 - 2011-02-16
   - add multidimensional and bareword::filehandles in author mode
 
-1.1.1   2010-12-05
+1.1.1 - 2010-12-05
   - disable uninitialized warnings before calling ->SUPER::VERSION
 
-1.1.0   2010-11-22
+1.1.0 - 2010-11-22
   - enable extra testing only if .git or .svn present to keep requirement
     for extra modules author-side
 
-1.0.0   2010-07-18
+1.0.0 - 2010-07-18
   - initial release
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/strictures-1.005001/META.json 
new/strictures-1.005003/META.json
--- old/strictures-1.005001/META.json   2013-11-07 18:23:20.000000000 +0100
+++ new/strictures-1.005003/META.json   2014-02-12 23:02:02.000000000 +0100
@@ -3,8 +3,8 @@
    "author" : [
       "mst - Matt S. Trout (cpan:MSTROUT) <[email protected]>"
    ],
-   "dynamic_config" : 0,
-   "generated_by" : "ExtUtils::MakeMaker version 6.8, CPAN::Meta::Converter 
version 2.132830",
+   "dynamic_config" : 1,
+   "generated_by" : "ExtUtils::MakeMaker version 6.86, CPAN::Meta::Converter 
version 2.133380",
    "license" : [
       "perl_5"
    ],
@@ -25,13 +25,17 @@
             "ExtUtils::MakeMaker" : "0"
          }
       },
+      "configure" : {
+         "requires" : {
+            "ExtUtils::CBuilder" : "0",
+            "ExtUtils::MakeMaker" : "0"
+         }
+      },
       "runtime" : {
-         "recommends" : {
+         "requires" : {
             "bareword::filehandles" : "0",
             "indirect" : "0",
-            "multidimensional" : "0"
-         },
-         "requires" : {
+            "multidimensional" : "0",
             "perl" : "5.006"
          }
       }
@@ -48,5 +52,5 @@
          "web" : 
"http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit/strictures.git";
       }
    },
-   "version" : "1.005001"
+   "version" : "1.005003"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/strictures-1.005001/META.yml 
new/strictures-1.005003/META.yml
--- old/strictures-1.005001/META.yml    2013-11-07 18:23:20.000000000 +0100
+++ new/strictures-1.005003/META.yml    2014-02-12 23:02:02.000000000 +0100
@@ -4,8 +4,11 @@
   - 'mst - Matt S. Trout (cpan:MSTROUT) <[email protected]>'
 build_requires:
   ExtUtils::MakeMaker: 0
-dynamic_config: 0
-generated_by: 'ExtUtils::MakeMaker version 6.8, CPAN::Meta::Converter version 
2.132830'
+configure_requires:
+  ExtUtils::CBuilder: 0
+  ExtUtils::MakeMaker: 0
+dynamic_config: 1
+generated_by: 'ExtUtils::MakeMaker version 6.86, CPAN::Meta::Converter version 
2.133380'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -15,13 +18,12 @@
   directory:
     - t
     - inc
-recommends:
+requires:
   bareword::filehandles: 0
   indirect: 0
   multidimensional: 0
-requires:
   perl: 5.006
 resources:
   bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=strictures
   repository: git://git.shadowcat.co.uk/p5sagit/strictures.git
-version: 1.005001
+version: 1.005003
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/strictures-1.005001/Makefile.PL 
new/strictures-1.005003/Makefile.PL
--- old/strictures-1.005001/Makefile.PL 2013-11-06 00:43:35.000000000 +0100
+++ new/strictures-1.005003/Makefile.PL 2014-02-12 19:59:33.000000000 +0100
@@ -4,6 +4,28 @@
 
 (do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
 
+my %extra_prereqs = (
+  indirect => 0,
+  multidimensional => 0,
+  'bareword::filehandles' => 0,
+);
+
+use Text::ParseWords;
+sub parse_args {
+  # copied from EUMM
+  ExtUtils::MakeMaker::parse_args(
+    my $tmp = {},
+    Text::ParseWords::shellwords($ENV{PERL_MM_OPT} || ''),
+    @ARGV,
+  );
+  return $tmp->{ARGS} || {};
+}
+
+my $have_compiler
+  = ! parse_args()->{PUREPERL_ONLY}
+  &&  eval { require ExtUtils::CBuilder; 1 }
+  && ExtUtils::CBuilder->new->have_compiler;
+
 WriteMakefile(
   NAME => 'strictures',
   VERSION_FROM => 'lib/strictures.pm',
@@ -11,7 +33,7 @@
 
   META_MERGE => {
     'meta-spec' => { version => 2 },
-    dynamic_config => 0,
+    dynamic_config => 1,
 
     resources => {
       # r/w: [email protected]:strictures.git
@@ -27,13 +49,18 @@
     },
 
     prereqs => {
-      runtime => {
-        recommends => {
-          indirect => 0,
-          multidimensional => 0,
-          'bareword::filehandles' => 0,
+      configure => {
+        requires => {
+          'ExtUtils::CBuilder' => 0,
         },
       },
+      runtime => {
+        ( $] >= 5.008004 && !$have_compiler
+          ? ( recommends => \%extra_prereqs ) : () ),
+      },
     },
   },
+
+  ($] >= 5.008004 && $have_compiler
+    ? ( PREREQ_PM => \%extra_prereqs ) : () ),
 );
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/strictures-1.005001/lib/strictures.pm 
new/strictures-1.005003/lib/strictures.pm
--- old/strictures-1.005001/lib/strictures.pm   2013-11-07 18:18:27.000000000 
+0100
+++ new/strictures-1.005003/lib/strictures.pm   2014-02-12 23:00:22.000000000 
+0100
@@ -7,18 +7,17 @@
   *_PERL_LT_5_8_4 = ($] < 5.008004) ? sub(){1} : sub(){0};
 }
 
-our $VERSION = '1.005001'; # 1.5.1
+our $VERSION = '1.005003'; # 1.5.3
 
 sub VERSION {
-  for ($_[1]) {
+  my ($class, $version) = @_;
+  for ($version) {
     last unless defined && !ref && int != 1;
     die "Major version specified as $_ - this is strictures version 1";
   }
-  # disable this since Foo->VERSION(undef) correctly returns the version
-  # and that can happen either if our caller passes undef explicitly or
-  # because the for above autovivified $_[1] - I could make it stop but
-  # it's pointless since we don't want to blow up if the caller does
-  # something valid either.
+  # passing undef here may either warn or die depending on the version of perl.
+  # we can't match the caller's warning state in this case, so just disable the
+  # warning.
   no warnings 'uninitialized';
   shift->SUPER::VERSION(@_);
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/strictures-1.005001/t/strictures.t 
new/strictures-1.005003/t/strictures.t
--- old/strictures-1.005001/t/strictures.t      2013-11-06 17:17:49.000000000 
+0100
+++ new/strictures-1.005003/t/strictures.t      2014-02-12 20:05:01.000000000 
+0100
@@ -34,6 +34,10 @@
   is($us[$idx][1], $expect[$idx][1], 'Warnings ok for case '.($idx+1));
 }
 
+my $v;
+eval { $v = strictures->VERSION; 1 } or diag $@;
+is $v, $strictures::VERSION, '->VERSION returns version correctly';
+
 SKIP: {
   skip 'Extra tests disabled on perls <= 5.008003', 1
     if $] < 5.008004;

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to