forked from pool/perl-Mixin-Linewise
- fix build on distributions with old Test::More module
( perl-Mixin-Linewise-use_lib.patch ) OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Mixin-Linewise?expand=0&rev=3
This commit is contained in:
parent
077e739622
commit
9d0e6feba7
22
perl-Mixin-Linewise-use_lib.patch
Normal file
22
perl-Mixin-Linewise-use_lib.patch
Normal file
@ -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';
|
@ -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
|
Mon Jan 17 16:27:03 UTC 2011 - coolo@novell.com
|
||||||
|
|
||||||
|
@ -22,14 +22,16 @@ Version: 0.003
|
|||||||
Release: 1
|
Release: 1
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
%define cpan_name Mixin-Linewise
|
%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/
|
Url: http://search.cpan.org/dist/Mixin-Linewise/
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
#Source: http://www.cpan.org/authors/id/R/RJ/RJBS/Mixin-Linewise-%{version}.tar.gz
|
#Source: http://www.cpan.org/authors/id/R/RJ/RJBS/Mixin-Linewise-%{version}.tar.gz
|
||||||
Source: %{cpan_name}-%{version}.tar.bz2
|
Source: %{cpan_name}-%{version}.tar.bz2
|
||||||
|
Patch1: perl-Mixin-Linewise-use_lib.patch
|
||||||
BuildRequires: perl(Carp)
|
BuildRequires: perl(Carp)
|
||||||
BuildRequires: perl(IO::File)
|
BuildRequires: perl(IO::File)
|
||||||
BuildRequires: perl(IO::String)
|
BuildRequires: perl(IO::String)
|
||||||
|
BuildRequires: perl(Test::More) >= 0.88
|
||||||
BuildRequires: perl(Sub::Exporter) >= 0.9
|
BuildRequires: perl(Sub::Exporter) >= 0.9
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
@ -50,6 +52,10 @@ are added for you.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%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
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
|
Loading…
x
Reference in New Issue
Block a user