- 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:
Lars Vogdt 2011-06-04 23:57:13 +00:00 committed by Git OBS Bridge
parent 077e739622
commit 9d0e6feba7
3 changed files with 35 additions and 1 deletions

View 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';

View File

@ -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

View File

@ -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