Hello community,

here is the log from the commit of package perl-File-Remove for openSUSE:Factory
checked in at Wed Jun 8 16:33:14 CEST 2011.



--------
--- perl-File-Remove/perl-File-Remove.changes   2011-03-24 20:31:57.000000000 
+0100
+++ /mounts/work_src_done/STABLE/perl-File-Remove/perl-File-Remove.changes      
2011-06-05 05:31:08.000000000 +0200
@@ -1,0 +2,7 @@
+Sun Jun  5 03:29:10 UTC 2011 - l...@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
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


New:
----
  perl-File-Remove-old_File-Spec.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-File-Remove.spec ++++++
--- /var/tmp/diff_new_pack.MR5bP2/_old  2011-06-08 16:31:53.000000000 +0200
+++ /var/tmp/diff_new_pack.MR5bP2/_new  2011-06-08 16:31:53.000000000 +0200
@@ -19,7 +19,7 @@
 
 Name:           perl-File-Remove
 Version:        1.49
-Release:        3
+Release:        5
 License:        GPL+ or Artistic
 %define cpan_name File-Remove
 Summary:        Remove files and directories
@@ -27,8 +27,13 @@
 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 @@
 
 %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

++++++ perl-File-Remove-old_File-Spec.patch ++++++
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   ();

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to