forked from pool/perl-File-Remove
- fix build for SLE 11 by patching the lib and test files
( perl-File-Remove-old_File-Spec.patch ) and requiring perl-PathTools OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-Remove?expand=0&rev=22
This commit is contained in:
committed by
Git OBS Bridge
parent
81bbd5eedc
commit
69de57bcff
85
perl-File-Remove-old_File-Spec.patch
Normal file
85
perl-File-Remove-old_File-Spec.patch
Normal file
@@ -0,0 +1,85 @@
|
||||
Index: File-Remove-1.49/lib/File/Remove.pm
|
||||
===================================================================
|
||||
--- File-Remove-1.49.orig/lib/File/Remove.pm
|
||||
+++ File-Remove-1.49/lib/File/Remove.pm
|
||||
@@ -14,7 +14,7 @@ BEGIN {
|
||||
|
||||
# If we ever need a Mac::Glue object we will want to cache it.
|
||||
my $glue;
|
||||
-
|
||||
+use lib '__vendorperl__';
|
||||
use File::Path ();
|
||||
use File::Glob ();
|
||||
use File::Spec 3.2701 ();
|
||||
Index: File-Remove-1.49/t/03_deep_readonly.t
|
||||
===================================================================
|
||||
--- File-Remove-1.49.orig/t/03_deep_readonly.t
|
||||
+++ File-Remove-1.49/t/03_deep_readonly.t
|
||||
@@ -8,6 +8,7 @@ BEGIN {
|
||||
$^W = 1;
|
||||
}
|
||||
|
||||
+use lib '__vendorperl__';
|
||||
use Test::More tests => 12;
|
||||
use File::Spec::Functions ':ALL';
|
||||
use File::Copy ();
|
||||
Index: File-Remove-1.49/t/04_can_delete.t
|
||||
===================================================================
|
||||
--- File-Remove-1.49.orig/t/04_can_delete.t
|
||||
+++ File-Remove-1.49/t/04_can_delete.t
|
||||
@@ -8,6 +8,7 @@ BEGIN {
|
||||
$^W = 1;
|
||||
}
|
||||
|
||||
+use lib '__vendorperl__';
|
||||
use Test::More tests => 12;
|
||||
use File::Spec::Functions ':ALL';
|
||||
use File::Copy ();
|
||||
Index: File-Remove-1.49/t/05_links.t
|
||||
===================================================================
|
||||
--- File-Remove-1.49.orig/t/05_links.t
|
||||
+++ File-Remove-1.49/t/05_links.t
|
||||
@@ -6,6 +6,7 @@ BEGIN {
|
||||
$^W = 1;
|
||||
}
|
||||
|
||||
+use lib '__vendorperl__';
|
||||
use Test::More;
|
||||
use File::Spec::Functions ':ALL';
|
||||
use File::Remove ();
|
||||
Index: File-Remove-1.49/t/06_curly.t
|
||||
===================================================================
|
||||
--- File-Remove-1.49.orig/t/06_curly.t
|
||||
+++ File-Remove-1.49/t/06_curly.t
|
||||
@@ -10,6 +10,7 @@ BEGIN {
|
||||
$^W = 1;
|
||||
}
|
||||
|
||||
+use lib '__vendorperl__';
|
||||
use Test::More tests => 6;
|
||||
use File::Spec::Functions ':ALL';
|
||||
use File::Remove ();
|
||||
Index: File-Remove-1.49/t/07_cwd.t
|
||||
===================================================================
|
||||
--- File-Remove-1.49.orig/t/07_cwd.t
|
||||
+++ File-Remove-1.49/t/07_cwd.t
|
||||
@@ -6,6 +6,7 @@ BEGIN {
|
||||
$^W = 1;
|
||||
}
|
||||
|
||||
+use lib '__vendorperl__';
|
||||
use Test::More tests => 13;
|
||||
use File::Spec::Functions ':ALL';
|
||||
use File::Remove ();
|
||||
Index: File-Remove-1.49/t/08_spaces.t
|
||||
===================================================================
|
||||
--- File-Remove-1.49.orig/t/08_spaces.t
|
||||
+++ File-Remove-1.49/t/08_spaces.t
|
||||
@@ -9,6 +9,7 @@ BEGIN {
|
||||
$^W = 1;
|
||||
}
|
||||
|
||||
+use lib '__vendorperl__';
|
||||
use Test::More qw(no_plan);
|
||||
use File::Spec::Functions ':ALL';
|
||||
use File::Copy ();
|
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 5 03:29:10 UTC 2011 - lars@linux-schulserver.de
|
||||
|
||||
- fix build for SLE 11 by patching the lib and test files
|
||||
( perl-File-Remove-old_File-Spec.patch ) and requiring
|
||||
perl-PathTools
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 24 19:31:20 UTC 2011 - coolo@novell.com
|
||||
|
||||
|
@@ -27,8 +27,13 @@ Url: http://search.cpan.org/dist/File-Remove/
|
||||
Group: Development/Libraries/Perl
|
||||
#Source: http://www.cpan.org/authors/id/A/AD/ADAMK/File-Remove-%{version}.tar.gz
|
||||
Source: %{cpan_name}-%{version}.tar.gz
|
||||
Patch1: perl-File-Remove-old_File-Spec.patch
|
||||
BuildRequires: perl(Cwd) >= 3.27.01
|
||||
BuildRequires: perl(File::Spec) >= 3.27.01
|
||||
%if 0%{?suse_version} <= 1110
|
||||
BuildRequires: perl-PathTools
|
||||
Requires: perl-PathTools
|
||||
%endif
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
Requires: perl(Cwd) >= 3.27.01
|
||||
@@ -48,6 +53,10 @@ addition of an optional, infrequently used "other platforms" hashref.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%if 0%{?suse_version} <= 1110
|
||||
%patch1 -p1
|
||||
sed -i "s|__vendorperl__|%{perl_vendorlib}|g" lib/File/Remove.pm t/*.t
|
||||
%endif
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
|
Reference in New Issue
Block a user