diff --git a/perl-Mixin-Linewise-use_lib.patch b/perl-Mixin-Linewise-use_lib.patch new file mode 100644 index 0000000..afdcee0 --- /dev/null +++ b/perl-Mixin-Linewise-use_lib.patch @@ -0,0 +1,22 @@ +Index: Mixin-Linewise-0.003/Makefile.PL +=================================================================== +--- Mixin-Linewise-0.003.orig/Makefile.PL ++++ Mixin-Linewise-0.003/Makefile.PL +@@ -1,5 +1,5 @@ + use inc::Module::Install; +- ++use lib '__vendorperl__'; + all_from('lib/Mixin/Linewise.pm'); + requires('Carp' => 0.000); # sure, it's core, but let's be thorough + requires('IO::String' => 0.000); # minimum unknown +Index: Mixin-Linewise-0.003/t/basic.t +=================================================================== +--- Mixin-Linewise-0.003.orig/t/basic.t ++++ Mixin-Linewise-0.003/t/basic.t +@@ -1,5 +1,6 @@ + use strict; + use warnings; ++use lib '__vendorperl__'; + use Test::More; + + use lib 't/lib'; diff --git a/perl-Mixin-Linewise.changes b/perl-Mixin-Linewise.changes index 2c31bb6..0732b35 100644 --- a/perl-Mixin-Linewise.changes +++ b/perl-Mixin-Linewise.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Jun 4 23:56:48 UTC 2011 - lars@linux-schulserver.de + +- fix build on distributions with old Test::More module + ( perl-Mixin-Linewise-use_lib.patch ) + ------------------------------------------------------------------- Mon Jan 17 16:27:03 UTC 2011 - coolo@novell.com diff --git a/perl-Mixin-Linewise.spec b/perl-Mixin-Linewise.spec index a372848..ac61834 100644 --- a/perl-Mixin-Linewise.spec +++ b/perl-Mixin-Linewise.spec @@ -22,14 +22,16 @@ Version: 0.003 Release: 1 License: GPL+ or Artistic %define cpan_name Mixin-Linewise -Summary: write your linewise code for handles; this does the rest +Summary: Write your linewise code for handles; this does the rest Url: http://search.cpan.org/dist/Mixin-Linewise/ Group: Development/Libraries/Perl #Source: http://www.cpan.org/authors/id/R/RJ/RJBS/Mixin-Linewise-%{version}.tar.gz Source: %{cpan_name}-%{version}.tar.bz2 +Patch1: perl-Mixin-Linewise-use_lib.patch BuildRequires: perl(Carp) BuildRequires: perl(IO::File) BuildRequires: perl(IO::String) +BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(Sub::Exporter) >= 0.9 BuildRequires: perl BuildRequires: perl-macros @@ -50,6 +52,10 @@ are added for you. %prep %setup -q -n %{cpan_name}-%{version} +%if 0%{?suse_version} <= 1110 +%patch1 -p1 +sed -i "s|__vendorperl__|%{perl_vendorlib}|g" Makefile.PL t/*.t +%endif %build %{__perl} Makefile.PL INSTALLDIRS=vendor