Update to 0.37

- New upstream release 0.37
  - Fix spurious warning in taint mode (GH#12)
- Update patch for building with old Test::More versions
- No documentation for Package::Stash::Conflicts in this release
- Classify buildreqs by usage
- Use %license where possible
- Don't try to run the extra tests for EL builds as we won't have the
  dependencies
This commit is contained in:
Paul Howarth 2014-09-23 14:48:27 +01:00
parent 349676e3ef
commit f373c63142
3 changed files with 152 additions and 120 deletions

View File

@ -1,6 +1,5 @@
diff -up ./t/addsub.t.orig ./t/addsub.t --- t/addsub.t
--- ./t/addsub.t.orig 2013-09-04 01:29:07.000000000 +0100 +++ t/addsub.t
+++ ./t/addsub.t 2013-09-04 10:03:50.247120380 +0100
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
use strict; use strict;
use warnings; use warnings;
@ -16,81 +15,76 @@ diff -up ./t/addsub.t.orig ./t/addsub.t
'... got the right %DB::sub value for dunk with specified args'; '... got the right %DB::sub value for dunk with specified args';
- -
-done_testing; -done_testing;
diff -up ./t/anon-basic.t.orig ./t/anon-basic.t --- t/anon-basic.t
--- ./t/anon-basic.t.orig 2013-09-04 01:29:07.000000000 +0100 +++ t/anon-basic.t
+++ ./t/anon-basic.t 2013-09-04 10:03:50.248120379 +0100 @@ -16,6 +16,8 @@ BEGIN {
@@ -13,6 +13,8 @@ plan skip_all => "Anonymous stashes in P use Test::Requires 'Package::Anon';
if $] < 5.014 use Symbol;
&& $Package::Stash::IMPLEMENTATION eq 'PP';
+plan tests => 10; +plan tests => 122;
+ +
my $Foo = Package::Anon->new('Foo'); my $Foo = Package::Anon->new('Foo');
$Foo->{SOME_CONSTANT} = \1; $Foo->{SOME_CONSTANT} = \1;
@@ -399,5 +401,3 @@ $Quuux->{quuuux} = -1; @@ -402,5 +404,3 @@ $Quuux->{quuuux} = -1;
is_deeply([Package::Stash->new('Quuux')->list_all_symbols], [], is_deeply([Package::Stash->new('Quuux')->list_all_symbols], [],
"Quuux:: isn't touched"); "Quuux:: isn't touched");
- -
-done_testing; -done_testing;
diff -up ./t/anon.t.orig ./t/anon.t --- t/anon.t
--- ./t/anon.t.orig 2013-09-04 01:29:07.000000000 +0100 +++ t/anon.t
+++ ./t/anon.t 2013-09-04 10:03:50.248120379 +0100 @@ -16,6 +16,8 @@ BEGIN {
@@ -14,6 +14,8 @@ plan skip_all => "Anonymous stashes in P use Test::Requires 'Package::Anon';
if $] < 5.014 use Symbol;
&& $Package::Stash::IMPLEMENTATION eq 'PP';
+plan tests => 7; +plan tests => 7;
+ +
my $anon = Package::Anon->new; my $anon = Package::Anon->new;
my $stash = Package::Stash->new($anon); my $stash = Package::Stash->new($anon);
my $obj = $anon->bless({}); my $obj = $anon->bless({});
@@ -45,5 +47,3 @@ my $obj = $anon->bless({}); @@ -47,5 +49,3 @@ my $obj = $anon->bless({});
qr/Undefined subroutine \&__ANON__::baz called/ qr/Undefined subroutine \&__ANON__::baz called/
); );
} }
- -
-done_testing; -done_testing;
diff -up ./t/bare-anon-basic.t.orig ./t/bare-anon-basic.t --- t/bare-anon-basic.t
--- ./t/bare-anon-basic.t.orig 2013-09-04 01:29:07.000000000 +0100 +++ t/bare-anon-basic.t
+++ ./t/bare-anon-basic.t 2013-09-04 10:03:50.248120379 +0100 @@ -17,6 +17,8 @@ BEGIN {
@@ -14,6 +14,8 @@ plan skip_all => "Anonymous stashes in P
plan skip_all => "This isn't really going to work yet, probably"; use Symbol;
+plan tests => 10; +plan tests => 10;
+ +
my $Foo = {}; my $Foo = {};
$Foo->{SOME_CONSTANT} = \1; $Foo->{SOME_CONSTANT} = \1;
@@ -393,5 +395,3 @@ $Quuux->{quuuux} = -1; @@ -396,5 +398,3 @@ $Quuux->{quuuux} = -1;
is_deeply([Package::Stash->new('Quuux')->list_all_symbols], [], is_deeply([Package::Stash->new('Quuux')->list_all_symbols], [],
"Quuux:: isn't touched"); "Quuux:: isn't touched");
- -
-done_testing; -done_testing;
diff -up ./t/bare-anon.t.orig ./t/bare-anon.t --- t/bare-anon.t
--- ./t/bare-anon.t.orig 2013-09-04 01:29:07.000000000 +0100 +++ t/bare-anon.t
+++ ./t/bare-anon.t 2013-09-04 10:03:50.249120378 +0100 @@ -17,6 +17,8 @@ BEGIN {
@@ -14,6 +14,8 @@ plan skip_all => "Anonymous stashes in P
plan skip_all => "This isn't really going to work yet, probably"; use Symbol;
+plan tests => 10; +plan tests => 10;
+ +
my $anon = {}; my $anon = {};
my $stash = Package::Stash->new($anon); my $stash = Package::Stash->new($anon);
# no way to bless something into a hashref yet # no way to bless something into a hashref yet
@@ -58,5 +60,3 @@ my $stash = Package::Stash->new($anon); @@ -61,5 +63,3 @@ my $stash = Package::Stash->new($anon);
undef undef
); );
} }
- -
-done_testing; -done_testing;
diff -up ./t/basic.t.orig ./t/basic.t --- t/basic.t
--- ./t/basic.t.orig 2013-09-04 01:29:07.000000000 +0100 +++ t/basic.t
+++ ./t/basic.t 2013-09-04 10:03:50.249120378 +0100
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
use strict; use strict;
use warnings; use warnings;
@ -106,9 +100,8 @@ diff -up ./t/basic.t.orig ./t/basic.t
); );
- -
-done_testing; -done_testing;
diff -up ./t/compile-time.t.orig ./t/compile-time.t --- t/compile-time.t
--- ./t/compile-time.t.orig 2013-09-04 01:29:07.000000000 +0100 +++ t/compile-time.t
+++ ./t/compile-time.t 2013-09-04 10:03:50.249120378 +0100
@@ -2,8 +2,6 @@ @@ -2,8 +2,6 @@
use strict; use strict;
use warnings; use warnings;
@ -119,9 +112,8 @@ diff -up ./t/compile-time.t.orig ./t/compile-time.t
use_ok('CompileTime'); use_ok('CompileTime');
- -
-done_testing; -done_testing;
diff -up ./t/edge-cases.t.orig ./t/edge-cases.t --- t/edge-cases.t
--- ./t/edge-cases.t.orig 2013-09-04 01:29:07.000000000 +0100 +++ t/edge-cases.t
+++ ./t/edge-cases.t 2013-09-04 10:03:50.250120376 +0100
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
use strict; use strict;
use warnings; use warnings;
@ -137,9 +129,8 @@ diff -up ./t/edge-cases.t.orig ./t/edge-cases.t
} }
- -
-done_testing; -done_testing;
diff -up ./t/extension.t.orig ./t/extension.t --- t/extension.t
--- ./t/extension.t.orig 2013-09-04 01:29:07.000000000 +0100 +++ t/extension.t
+++ ./t/extension.t 2013-09-04 10:03:50.250120376 +0100
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
use strict; use strict;
use warnings; use warnings;
@ -155,9 +146,8 @@ diff -up ./t/extension.t.orig ./t/extension.t
ok(!defined($Foo::{baz}), '... the %baz slot has still not been created'); ok(!defined($Foo::{baz}), '... the %baz slot has still not been created');
- -
-done_testing; -done_testing;
diff -up ./t/get.t.orig ./t/get.t --- t/get.t
--- ./t/get.t.orig 2013-09-04 01:29:07.000000000 +0100 +++ t/get.t
+++ ./t/get.t 2013-09-04 10:03:50.250120376 +0100
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
use strict; use strict;
use warnings; use warnings;
@ -173,9 +163,8 @@ diff -up ./t/get.t.orig ./t/get.t
} }
- -
-done_testing; -done_testing;
diff -up ./t/impl-selection/basic-pp.t.orig ./t/impl-selection/basic-pp.t --- t/impl-selection/basic-pp.t
--- ./t/impl-selection/basic-pp.t.orig 2013-09-04 01:29:07.000000000 +0100 +++ t/impl-selection/basic-pp.t
+++ ./t/impl-selection/basic-pp.t 2013-09-04 10:03:50.251120375 +0100
@@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
#!/usr/bin/env perl #!/usr/bin/env perl
use strict; use strict;
@ -191,9 +180,8 @@ diff -up ./t/impl-selection/basic-pp.t.orig ./t/impl-selection/basic-pp.t
); );
- -
-done_testing; -done_testing;
diff -up ./t/impl-selection/basic-xs.t.orig ./t/impl-selection/basic-xs.t --- t/impl-selection/basic-xs.t
--- ./t/impl-selection/basic-xs.t.orig 2013-09-04 01:29:07.000000000 +0100 +++ t/impl-selection/basic-xs.t
+++ ./t/impl-selection/basic-xs.t 2013-09-04 10:03:50.251120375 +0100
@@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
#!/usr/bin/env perl #!/usr/bin/env perl
use strict; use strict;
@ -209,9 +197,8 @@ diff -up ./t/impl-selection/basic-xs.t.orig ./t/impl-selection/basic-xs.t
); );
- -
-done_testing; -done_testing;
diff -up ./t/impl-selection/bug-rt-78272.t.orig ./t/impl-selection/bug-rt-78272.t --- t/impl-selection/bug-rt-78272.t
--- ./t/impl-selection/bug-rt-78272.t.orig 2013-09-04 01:29:07.000000000 +0100 +++ t/impl-selection/bug-rt-78272.t
+++ ./t/impl-selection/bug-rt-78272.t 2013-09-04 10:03:50.251120375 +0100
@@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
#!/usr/bin/env perl #!/usr/bin/env perl
use strict; use strict;
@ -240,9 +227,8 @@ diff -up ./t/impl-selection/bug-rt-78272.t.orig ./t/impl-selection/bug-rt-78272.
-); -);
- -
-done_testing; -done_testing;
diff -up ./t/impl-selection/choice.t.orig ./t/impl-selection/choice.t --- t/impl-selection/choice.t
--- ./t/impl-selection/choice.t.orig 2013-09-04 01:29:07.000000000 +0100 +++ t/impl-selection/choice.t
+++ ./t/impl-selection/choice.t 2013-09-04 10:03:50.252120374 +0100
@@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
#!/usr/bin/env perl #!/usr/bin/env perl
use strict; use strict;
@ -258,9 +244,8 @@ diff -up ./t/impl-selection/choice.t.orig ./t/impl-selection/choice.t
can_ok('Package::Stash', 'new'); can_ok('Package::Stash', 'new');
- -
-done_testing; -done_testing;
diff -up ./t/impl-selection/env.t.orig ./t/impl-selection/env.t --- t/impl-selection/env.t
--- ./t/impl-selection/env.t.orig 2013-09-04 01:29:07.000000000 +0100 +++ t/impl-selection/env.t
+++ ./t/impl-selection/env.t 2013-09-04 10:03:50.252120374 +0100
@@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
#!/usr/bin/env perl #!/usr/bin/env perl
use strict; use strict;
@ -276,9 +261,8 @@ diff -up ./t/impl-selection/env.t.orig ./t/impl-selection/env.t
} }
- -
-done_testing; -done_testing;
diff -up ./t/impl-selection/var.t.orig ./t/impl-selection/var.t --- t/impl-selection/var.t
--- ./t/impl-selection/var.t.orig 2013-09-04 01:29:07.000000000 +0100 +++ t/impl-selection/var.t
+++ ./t/impl-selection/var.t 2013-09-04 10:03:50.252120374 +0100
@@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
#!/usr/bin/env perl #!/usr/bin/env perl
use strict; use strict;
@ -294,9 +278,8 @@ diff -up ./t/impl-selection/var.t.orig ./t/impl-selection/var.t
} }
- -
-done_testing; -done_testing;
diff -up ./t/io.t.orig ./t/io.t --- t/io.t
--- ./t/io.t.orig 2013-09-04 01:29:07.000000000 +0100 +++ t/io.t
+++ ./t/io.t 2013-09-04 10:03:50.252120374 +0100
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
use strict; use strict;
use warnings; use warnings;
@ -312,9 +295,8 @@ diff -up ./t/io.t.orig ./t/io.t
} }
- -
-done_testing; -done_testing;
diff -up ./t/isa.t.orig ./t/isa.t --- t/isa.t
--- ./t/isa.t.orig 2013-09-04 01:29:07.000000000 +0100 +++ t/isa.t
+++ ./t/isa.t 2013-09-04 10:03:50.253120373 +0100
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
use strict; use strict;
use warnings; use warnings;
@ -359,9 +341,8 @@ diff -up ./t/isa.t.orig ./t/isa.t
} }
- -
-done_testing; -done_testing;
diff -up ./t/magic.t.orig ./t/magic.t --- t/magic.t
--- ./t/magic.t.orig 2013-09-04 01:29:07.000000000 +0100 +++ t/magic.t
+++ ./t/magic.t 2013-09-04 10:04:56.321041441 +0100
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
use strict; use strict;
use warnings; use warnings;
@ -376,9 +357,8 @@ diff -up ./t/magic.t.orig ./t/magic.t
} }
-done_testing; -done_testing;
diff -up ./t/paamayim_nekdotayim.t.orig ./t/paamayim_nekdotayim.t --- t/paamayim_nekdotayim.t
--- ./t/paamayim_nekdotayim.t.orig 2013-09-04 01:29:07.000000000 +0100 +++ t/paamayim_nekdotayim.t
+++ ./t/paamayim_nekdotayim.t 2013-09-04 10:03:50.253120373 +0100
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
use strict; use strict;
use warnings; use warnings;
@ -394,9 +374,8 @@ diff -up ./t/paamayim_nekdotayim.t.orig ./t/paamayim_nekdotayim.t
); );
- -
-done_testing; -done_testing;
diff -up ./t/scalar-values.t.orig ./t/scalar-values.t --- t/scalar-values.t
--- ./t/scalar-values.t.orig 2013-09-04 01:29:07.000000000 +0100 +++ t/scalar-values.t
+++ ./t/scalar-values.t 2013-09-04 10:03:50.254120371 +0100
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
use strict; use strict;
use warnings; use warnings;
@ -412,9 +391,8 @@ diff -up ./t/scalar-values.t.orig ./t/scalar-values.t
"can add vstring values"); "can add vstring values");
- -
-done_testing; -done_testing;
diff -up ./t/stash-deletion.t.orig ./t/stash-deletion.t --- t/stash-deletion.t
--- ./t/stash-deletion.t.orig 2013-09-04 01:29:07.000000000 +0100 +++ t/stash-deletion.t
+++ ./t/stash-deletion.t 2013-09-04 10:03:50.254120371 +0100
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
use strict; use strict;
use warnings; use warnings;
@ -430,9 +408,8 @@ diff -up ./t/stash-deletion.t.orig ./t/stash-deletion.t
} }
- -
-done_testing; -done_testing;
diff -up ./t/synopsis.t.orig ./t/synopsis.t --- t/synopsis.t
--- ./t/synopsis.t.orig 2013-09-04 01:29:07.000000000 +0100 +++ t/synopsis.t
+++ ./t/synopsis.t 2013-09-04 10:03:50.254120371 +0100
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
use strict; use strict;
use warnings; use warnings;
@ -448,27 +425,41 @@ diff -up ./t/synopsis.t.orig ./t/synopsis.t
is_deeply(*{ $namespace->{foo} }{HASH}, {bar => 1}, "namespace works properly"); is_deeply(*{ $namespace->{foo} }{HASH}, {bar => 1}, "namespace works properly");
- -
-done_testing; -done_testing;
diff -up ./t/warnings.t.orig ./t/warnings.t --- t/warnings-taint.t
--- ./t/warnings.t.orig 2013-09-04 01:29:07.000000000 +0100 +++ t/warnings-taint.t
+++ ./t/warnings.t 2013-09-04 10:05:21.562011163 +0100 @@ -2,7 +2,7 @@
@@ -1,7 +1,7 @@
#!/usr/bin/env perl
use strict; use strict;
use warnings; use warnings;
use lib 't/lib';
-use Test::More; -use Test::More;
+use Test::More tests => 1; +use Test::More tests => 1;
use Package::Stash; use Package::Stash;
@@ -17,5 +17,3 @@ BEGIN { @@ -19,4 +19,3 @@ BEGIN {
is($warnings, '');
-done_testing;
--- t/warnings.t
+++ t/warnings.t
@@ -2,7 +2,7 @@
use strict;
use warnings;
use lib 't/lib';
-use Test::More;
+use Test::More tests => 1;
use Package::Stash;
@@ -18,5 +18,3 @@ BEGIN {
} }
is($warnings, ''); is($warnings, '');
- -
-done_testing; -done_testing;
diff -up ./xt/author/leaks-debug.t.orig ./xt/author/leaks-debug.t --- xt/author/leaks-debug.t
--- ./xt/author/leaks-debug.t.orig 2013-09-04 01:29:07.000000000 +0100 +++ xt/author/leaks-debug.t
+++ ./xt/author/leaks-debug.t 2013-09-04 10:03:50.255120370 +0100
@@ -6,6 +6,8 @@ use Test::More; @@ -6,6 +6,8 @@ use Test::More;
use Test::Fatal; use Test::Fatal;
use Test::LeakTrace; use Test::LeakTrace;
@ -495,9 +486,8 @@ diff -up ./xt/author/leaks-debug.t.orig ./xt/author/leaks-debug.t
} }
- -
-done_testing; -done_testing;
diff -up ./xt/author/leaks.t.orig ./xt/author/leaks.t --- xt/author/leaks.t
--- ./xt/author/leaks.t.orig 2013-09-04 01:29:07.000000000 +0100 +++ xt/author/leaks.t
+++ ./xt/author/leaks.t 2013-09-04 10:03:50.255120370 +0100
@@ -6,6 +6,8 @@ use Test::More; @@ -6,6 +6,8 @@ use Test::More;
use Test::Fatal; use Test::Fatal;
use Test::LeakTrace; use Test::LeakTrace;
@ -524,3 +514,22 @@ diff -up ./xt/author/leaks.t.orig ./xt/author/leaks.t
} }
- -
-done_testing; -done_testing;
--- xt/release/no-tabs.t
+++ xt/release/no-tabs.t
@@ -3,7 +3,7 @@ use warnings;
# this test was generated with Dist::Zilla::Plugin::Test::NoTabs 0.08
-use Test::More 0.88;
+use Test::More;
use Test::NoTabs;
my @files = (
@@ -41,5 +41,6 @@ my @files = (
't/warnings.t'
);
+plan tests => scalar @files;
+
notabs_ok($_) foreach @files;
-done_testing;

View File

@ -2,47 +2,55 @@
%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0) %global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0)
Name: perl-Package-Stash Name: perl-Package-Stash
Version: 0.36 Version: 0.37
Release: 3%{?dist} Release: 1%{?dist}
Summary: Routines for manipulating stashes Summary: Routines for manipulating stashes
Group: Development/Libraries Group: Development/Libraries
License: GPL+ or Artistic License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Package-Stash/ URL: http://search.cpan.org/dist/Package-Stash/
Source0: http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Package-Stash-%{version}.tar.gz Source0: http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Package-Stash-%{version}.tar.gz
Patch1: Package-Stash-0.36-old-Test::More.patch Patch1: Package-Stash-0.37-old-Test::More.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch BuildArch: noarch
BuildRequires: perl(base) # Module Build
BuildRequires: perl(Carp) BuildRequires: perl
BuildRequires: perl(Config) BuildRequires: perl(Config)
BuildRequires: perl(constant)
BuildRequires: perl(Dist::CheckConflicts) >= 0.02
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec) BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp) BuildRequires: perl(Text::ParseWords)
# Module Runtime
BuildRequires: perl(B)
BuildRequires: perl(Carp)
BuildRequires: perl(constant)
BuildRequires: perl(Dist::CheckConflicts) >= 0.02
BuildRequires: perl(Getopt::Long) BuildRequires: perl(Getopt::Long)
BuildRequires: perl(lib)
BuildRequires: perl(Module::Implementation) >= 0.06 BuildRequires: perl(Module::Implementation) >= 0.06
BuildRequires: perl(Package::Stash::XS) >= 0.26 BuildRequires: perl(Package::Stash::XS) >= 0.26
BuildRequires: perl(Scalar::Util) BuildRequires: perl(Scalar::Util)
BuildRequires: perl(strict)
BuildRequires: perl(Symbol)
BuildRequires: perl(warnings)
# Test Suite
BuildRequires: perl(base)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(lib)
BuildRequires: perl(Test::Fatal) BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Requires) BuildRequires: perl(Test::Requires)
# Optional tests: %if ! (0%{?rhel})
%if ! (0%{?rhel} >= 7) # Optional Tests
%if %(perl -e 'print $] >= 5.014 ? 1 : 0;')
BuildRequires: perl(Package::Anon) BuildRequires: perl(Package::Anon)
%endif BuildRequires: perl(Variable::Magic)
# Extra Tests
BuildRequires: perl(Pod::Coverage::TrustPod) BuildRequires: perl(Pod::Coverage::TrustPod)
BuildRequires: perl(Test::EOL) BuildRequires: perl(Test::EOL)
BuildRequires: perl(Test::LeakTrace) BuildRequires: perl(Test::LeakTrace)
BuildRequires: perl(Test::NoTabs) BuildRequires: perl(Test::NoTabs)
BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod) >= 1.41
BuildRequires: perl(Test::Pod::Coverage) BuildRequires: perl(Test::Pod::Coverage) >= 1.08
%endif %endif
BuildRequires: perl(Test::Script) # Runtime
BuildRequires: perl(Text::ParseWords)
BuildRequires: perl(Variable::Magic)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
# For performance and consistency # For performance and consistency
Requires: perl(Package::Stash::XS) >= 0.26 Requires: perl(Package::Stash::XS) >= 0.26
@ -59,7 +67,7 @@ a simple API.
# Compatibility with old Test::More versions # Compatibility with old Test::More versions
%if %{old_test_more} %if %{old_test_more}
%patch1 -p1 %patch1
%endif %endif
%build %build
@ -74,23 +82,38 @@ find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%check %check
make test make test
%if ! (0%{?rhel} >= 7) # Extra Tests: Pod Coverage test fails due to lack of POD for Package::Stash::Conflicts
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))" %if ! (0%{?rhel})
make test TEST_FILES="$(echo $(find xt/ -name '*.t' | grep -v pod-coverage))"
%endif %endif
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
%files %files
%doc Changes LICENSE README %if 0%{?_licensedir:1}
%license LICENSE
%else
%doc LICENSE
%endif
%doc Changes README
%{_bindir}/package-stash-conflicts %{_bindir}/package-stash-conflicts
%{perl_vendorlib}/Package/ %{perl_vendorlib}/Package/
%{_mandir}/man1/package-stash-conflicts.1* %{_mandir}/man1/package-stash-conflicts.1*
%{_mandir}/man3/Package::Stash.3pm* %{_mandir}/man3/Package::Stash.3pm*
%{_mandir}/man3/Package::Stash::Conflicts.3pm*
%{_mandir}/man3/Package::Stash::PP.3pm* %{_mandir}/man3/Package::Stash::PP.3pm*
%changelog %changelog
* Tue Sep 23 2014 Paul Howarth <paul@city-fan.org> - 0.37-1
- Update to 0.37
- Fix spurious warning in taint mode (GH#12)
- Update patch for building with old Test::More versions
- No documentation for Package::Stash::Conflicts in this release
- Classify buildreqs by usage
- Use %%license where possible
- Don't try to run the extra tests for EL builds as we won't have the
dependencies
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.36-3 * Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.36-3
- Perl 5.20 rebuild - Perl 5.20 rebuild

View File

@ -1 +1 @@
066aa5099af88457c4f1eb2448272061 Package-Stash-0.36.tar.gz 7e47a8261312e1cf3d12bd2007916b66 Package-Stash-0.37.tar.gz