- update perl-namespace-clean-use_lib.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-namespace-clean?expand=0&rev=19
This commit is contained in:
parent
6c320e5e33
commit
e43bd0d517
@ -1,20 +1,7 @@
|
|||||||
Index: namespace-clean-0.20/Makefile.PL
|
Index: namespace-clean-0.20/Makefile.PL
|
||||||
===================================================================
|
================================================================================
|
||||||
--- namespace-clean-0.20.orig/Makefile.PL
|
--- namespace-clean-0.22/t/00-basic.t
|
||||||
+++ namespace-clean-0.20/Makefile.PL
|
+++ namespace-clean-0.22/t/00-basic.t
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
|
|
||||||
use strict;
|
|
||||||
use warnings;
|
|
||||||
-
|
|
||||||
+use lib '__vendorperl__';
|
|
||||||
|
|
||||||
|
|
||||||
use ExtUtils::MakeMaker 6.31;
|
|
||||||
Index: namespace-clean-0.20/t/00-basic.t
|
|
||||||
===================================================================
|
|
||||||
--- namespace-clean-0.20.orig/t/00-basic.t
|
|
||||||
+++ namespace-clean-0.20/t/00-basic.t
|
|
||||||
@@ -1,7 +1,7 @@
|
@@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env perl
|
#!/usr/bin/env perl
|
||||||
use warnings;
|
use warnings;
|
||||||
@ -24,10 +11,8 @@ Index: namespace-clean-0.20/t/00-basic.t
|
|||||||
use FindBin;
|
use FindBin;
|
||||||
use lib "$FindBin::Bin/lib";
|
use lib "$FindBin::Bin/lib";
|
||||||
use Test::More tests => 4;
|
use Test::More tests => 4;
|
||||||
Index: namespace-clean-0.20/t/01-function-wipeout.t
|
--- namespace-clean-0.22/t/01-function-wipeout.t
|
||||||
===================================================================
|
+++ namespace-clean-0.22/t/01-function-wipeout.t
|
||||||
--- namespace-clean-0.20.orig/t/01-function-wipeout.t
|
|
||||||
+++ namespace-clean-0.20/t/01-function-wipeout.t
|
|
||||||
@@ -1,7 +1,7 @@
|
@@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env perl
|
#!/usr/bin/env perl
|
||||||
use warnings;
|
use warnings;
|
||||||
@ -37,10 +22,8 @@ Index: namespace-clean-0.20/t/01-function-wipeout.t
|
|||||||
use FindBin;
|
use FindBin;
|
||||||
use lib "$FindBin::Bin/lib";
|
use lib "$FindBin::Bin/lib";
|
||||||
use Test::More tests => 9;
|
use Test::More tests => 9;
|
||||||
Index: namespace-clean-0.20/t/02-inheritance.t
|
--- namespace-clean-0.22/t/02-inheritance.t
|
||||||
===================================================================
|
+++ namespace-clean-0.22/t/02-inheritance.t
|
||||||
--- namespace-clean-0.20.orig/t/02-inheritance.t
|
|
||||||
+++ namespace-clean-0.20/t/02-inheritance.t
|
|
||||||
@@ -1,7 +1,7 @@
|
@@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env perl
|
#!/usr/bin/env perl
|
||||||
use warnings;
|
use warnings;
|
||||||
@ -50,10 +33,8 @@ Index: namespace-clean-0.20/t/02-inheritance.t
|
|||||||
use FindBin;
|
use FindBin;
|
||||||
use lib "$FindBin::Bin/lib";
|
use lib "$FindBin::Bin/lib";
|
||||||
use Test::More tests => 10;
|
use Test::More tests => 10;
|
||||||
Index: namespace-clean-0.20/t/03-unimport.t
|
--- namespace-clean-0.22/t/03-unimport.t
|
||||||
===================================================================
|
+++ namespace-clean-0.22/t/03-unimport.t
|
||||||
--- namespace-clean-0.20.orig/t/03-unimport.t
|
|
||||||
+++ namespace-clean-0.20/t/03-unimport.t
|
|
||||||
@@ -1,7 +1,7 @@
|
@@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env perl
|
#!/usr/bin/env perl
|
||||||
use warnings;
|
use warnings;
|
||||||
@ -63,10 +44,8 @@ Index: namespace-clean-0.20/t/03-unimport.t
|
|||||||
use FindBin;
|
use FindBin;
|
||||||
use lib "$FindBin::Bin/lib";
|
use lib "$FindBin::Bin/lib";
|
||||||
use Test::More tests => 6;
|
use Test::More tests => 6;
|
||||||
Index: namespace-clean-0.20/t/04-except.t
|
--- namespace-clean-0.22/t/04-except.t
|
||||||
===================================================================
|
+++ namespace-clean-0.22/t/04-except.t
|
||||||
--- namespace-clean-0.20.orig/t/04-except.t
|
|
||||||
+++ namespace-clean-0.20/t/04-except.t
|
|
||||||
@@ -1,7 +1,7 @@
|
@@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env perl
|
#!/usr/bin/env perl
|
||||||
use warnings;
|
use warnings;
|
||||||
@ -76,23 +55,8 @@ Index: namespace-clean-0.20/t/04-except.t
|
|||||||
use FindBin;
|
use FindBin;
|
||||||
use lib "$FindBin::Bin/lib";
|
use lib "$FindBin::Bin/lib";
|
||||||
use Test::More tests => 6;
|
use Test::More tests => 6;
|
||||||
Index: namespace-clean-0.20/t/05-explicit-cleanee.t
|
--- namespace-clean-0.22/t/06-other-types.t
|
||||||
===================================================================
|
+++ namespace-clean-0.22/t/06-other-types.t
|
||||||
--- namespace-clean-0.20.orig/t/05-explicit-cleanee.t
|
|
||||||
+++ namespace-clean-0.20/t/05-explicit-cleanee.t
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
#!/usr/bin/env perl
|
|
||||||
use warnings;
|
|
||||||
use strict;
|
|
||||||
-
|
|
||||||
+use lib '__vendorperl__';
|
|
||||||
use FindBin;
|
|
||||||
use lib "$FindBin::Bin/lib";
|
|
||||||
use Test::More tests => 19;
|
|
||||||
Index: namespace-clean-0.20/t/06-other-types.t
|
|
||||||
===================================================================
|
|
||||||
--- namespace-clean-0.20.orig/t/06-other-types.t
|
|
||||||
+++ namespace-clean-0.20/t/06-other-types.t
|
|
||||||
@@ -1,7 +1,7 @@
|
@@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env perl
|
#!/usr/bin/env perl
|
||||||
use warnings;
|
use warnings;
|
||||||
@ -102,10 +66,8 @@ Index: namespace-clean-0.20/t/06-other-types.t
|
|||||||
use FindBin;
|
use FindBin;
|
||||||
use lib "$FindBin::Bin/lib";
|
use lib "$FindBin::Bin/lib";
|
||||||
use Test::More tests => 17;
|
use Test::More tests => 17;
|
||||||
Index: namespace-clean-0.20/t/08-const-sub.t
|
--- namespace-clean-0.22/t/08-const-sub.t
|
||||||
===================================================================
|
+++ namespace-clean-0.22/t/08-const-sub.t
|
||||||
--- namespace-clean-0.20.orig/t/08-const-sub.t
|
|
||||||
+++ namespace-clean-0.20/t/08-const-sub.t
|
|
||||||
@@ -1,6 +1,6 @@
|
@@ -1,6 +1,6 @@
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
@ -114,79 +76,22 @@ Index: namespace-clean-0.20/t/08-const-sub.t
|
|||||||
use Test::More 0.88;
|
use Test::More 0.88;
|
||||||
|
|
||||||
use constant CONST => 123;
|
use constant CONST => 123;
|
||||||
Index: namespace-clean-0.20/t/author-07-debugger.t
|
--- namespace-clean-0.22/t/09-fiddle-hinthash.t
|
||||||
===================================================================
|
+++ namespace-clean-0.22/t/09-fiddle-hinthash.t
|
||||||
--- namespace-clean-0.20.orig/t/author-07-debugger.t
|
@@ -1,6 +1,7 @@
|
||||||
+++ namespace-clean-0.20/t/author-07-debugger.t
|
use strict;
|
||||||
@@ -6,6 +6,7 @@ BEGIN {
|
use warnings;
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
+use lib '__vendorperl__';
|
+use lib '__vendorperl__';
|
||||||
use Test::More;
|
use Test::More 0.88;
|
||||||
|
|
||||||
BEGIN {
|
|
||||||
Index: namespace-clean-0.20/t/release-eol.t
|
|
||||||
===================================================================
|
|
||||||
--- namespace-clean-0.20.orig/t/release-eol.t
|
|
||||||
+++ namespace-clean-0.20/t/release-eol.t
|
|
||||||
@@ -1,6 +1,7 @@
|
|
||||||
|
|
||||||
BEGIN {
|
|
||||||
unless ($ENV{RELEASE_TESTING}) {
|
|
||||||
+ use lib '__vendorperl__';
|
|
||||||
require Test::More;
|
|
||||||
Test::More::plan(skip_all => 'these tests are for release candidate testing');
|
|
||||||
}
|
|
||||||
@@ -8,6 +9,7 @@ BEGIN {
|
|
||||||
|
|
||||||
|
{
|
||||||
|
--- namespace-clean-0.22/t/10-pure-perl.t
|
||||||
|
+++ namespace-clean-0.22/t/10-pure-perl.t
|
||||||
|
@@ -1,5 +1,6 @@
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
+use lib '__vendorperl__';
|
+use lib '__vendorperl__';
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
|
||||||
eval 'use Test::EOL';
|
plan skip_all => "PP tests already executed"
|
||||||
Index: namespace-clean-0.20/t/release-no-tabs.t
|
|
||||||
===================================================================
|
|
||||||
--- namespace-clean-0.20.orig/t/release-no-tabs.t
|
|
||||||
+++ namespace-clean-0.20/t/release-no-tabs.t
|
|
||||||
@@ -1,6 +1,7 @@
|
|
||||||
|
|
||||||
BEGIN {
|
|
||||||
unless ($ENV{RELEASE_TESTING}) {
|
|
||||||
+ use lib '__vendorperl__';
|
|
||||||
require Test::More;
|
|
||||||
Test::More::plan(skip_all => 'these tests are for release candidate testing');
|
|
||||||
}
|
|
||||||
@@ -8,6 +9,7 @@ BEGIN {
|
|
||||||
|
|
||||||
use strict;
|
|
||||||
use warnings;
|
|
||||||
+use lib '__vendorperl__';
|
|
||||||
use Test::More;
|
|
||||||
|
|
||||||
eval 'use Test::NoTabs';
|
|
||||||
Index: namespace-clean-0.20/t/release-pod-coverage.t
|
|
||||||
===================================================================
|
|
||||||
--- namespace-clean-0.20.orig/t/release-pod-coverage.t
|
|
||||||
+++ namespace-clean-0.20/t/release-pod-coverage.t
|
|
||||||
@@ -8,6 +8,7 @@ BEGIN {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
+use lib '__vendorperl__';
|
|
||||||
use Test::More;
|
|
||||||
|
|
||||||
eval "use Test::Pod::Coverage 1.08";
|
|
||||||
Index: namespace-clean-0.20/t/release-pod-syntax.t
|
|
||||||
===================================================================
|
|
||||||
--- namespace-clean-0.20.orig/t/release-pod-syntax.t
|
|
||||||
+++ namespace-clean-0.20/t/release-pod-syntax.t
|
|
||||||
@@ -7,6 +7,7 @@ BEGIN {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
+use lib '__vendorperl__';
|
|
||||||
use Test::More;
|
|
||||||
|
|
||||||
eval "use Test::Pod 1.41";
|
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 1 01:27:28 CET 2012 - ro@suse.de
|
||||||
|
|
||||||
|
- update perl-namespace-clean-use_lib.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Feb 11 07:00:52 UTC 2012 - coolo@suse.com
|
Sat Feb 11 07:00:52 UTC 2012 - coolo@suse.com
|
||||||
|
|
||||||
|
@ -60,6 +60,9 @@ Keep imports and functions out of your namespace
|
|||||||
%if 0%{?suse_version} <= 1110
|
%if 0%{?suse_version} <= 1110
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
sed -i "s|__vendorperl__|%{perl_vendorlib}|g" Makefile.PL t/*.t
|
sed -i "s|__vendorperl__|%{perl_vendorlib}|g" Makefile.PL t/*.t
|
||||||
|
# fail due to missing Sub/Name.pm
|
||||||
|
rm -f t/07-debugger.t
|
||||||
|
rm -f t/10-pure-perl.t
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
Loading…
Reference in New Issue
Block a user