[perl-rpm-build-perl] Adapt tests to perl 5.16

Petr Pisar ppisar at fedoraproject.org
Tue Jun 12 13:59:01 UTC 2012


commit ae9446548c99ce81e5cf6d8232530f119befb1d6
Author: Petr Písař <ppisar at redhat.com>
Date:   Tue Jun 12 15:58:06 2012 +0200

    Adapt tests to perl 5.16

 perl-rpm-build-perl.spec                       |    4 ++
 rpm-build-perl-0.80-Adapt-to-perl-5.16.0.patch |   36 ++++++++++++++++++++++++
 2 files changed, 40 insertions(+), 0 deletions(-)
---
diff --git a/perl-rpm-build-perl.spec b/perl-rpm-build-perl.spec
index 0767633..6951859 100644
--- a/perl-rpm-build-perl.spec
+++ b/perl-rpm-build-perl.spec
@@ -8,6 +8,8 @@ Group:      Development/Libraries
 Summary:    Perl compiler back-end to extract Perl dependencies 
 Url:        http://search.cpan.org/dist/rpm-build-perl
 Source:     http://search.cpan.org/CPAN/authors/id/A/AT/ATOURBIN/rpm-build-perl-%{version}.tar.gz 
+# Adapt to perl 5.16, CPAN RT #77778
+Patch0:     rpm-build-perl-0.80-Adapt-to-perl-5.16.0.patch
 BuildArch:  noarch
 BuildRequires:  perl(ExtUtils::MakeMaker) 
 # Run-time
@@ -47,6 +49,7 @@ The provides/requires scripts packaged along with perl-rpm-build-perl.
 
 %prep
 %setup -q -n rpm-build-perl-%{version}
+%patch0 -p1
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
@@ -74,6 +77,7 @@ make test
 * Mon Jun 11 2012 Petr Pisar <ppisar at redhat.com> - 0.80-2
 - Perl 5.16 rebuild
 - Specify all dependencies
+- Adapt tests to perl 5.16 (RT #77778)
 
 * Fri Jan 27 2012 Petr Pisar <ppisar at redhat.com> - 0.80-1
 - 0.80 bump
diff --git a/rpm-build-perl-0.80-Adapt-to-perl-5.16.0.patch b/rpm-build-perl-0.80-Adapt-to-perl-5.16.0.patch
new file mode 100644
index 0000000..d6e3cdf
--- /dev/null
+++ b/rpm-build-perl-0.80-Adapt-to-perl-5.16.0.patch
@@ -0,0 +1,36 @@
+From 25abe615df4801a174ea74a6ea82ab70be62370f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
+Date: Tue, 12 Jun 2012 15:54:32 +0200
+Subject: [PATCH] Adapt to perl 5.16.0
+
+---
+ t/02-perlreq.t  |    2 +-
+ t/03-perlprov.t |    2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/t/02-perlreq.t b/t/02-perlreq.t
+index 2705eae..e197dbd 100644
+--- a/t/02-perlreq.t
++++ b/t/02-perlreq.t
+@@ -36,5 +36,5 @@ sub Requires ($$) {
+ # Valid for perl-5.8.0 - perl-5.14.2.
+ Requires "AutoLoader.pm"	=> "";
+ Requires "Exporter.pm"		=> "perl(Exporter/Heavy.pm)";
+-Requires "IO/File.pm"		=> "perl(File/Spec.pm) perl(IO/Seekable.pm) perl(SelectSaver.pm) perl(Symbol.pm)";
++Requires "IO/File.pm"		=> "perl(IO/Seekable.pm) perl(SelectSaver.pm) perl(Symbol.pm)";
+ 
+diff --git a/t/03-perlprov.t b/t/03-perlprov.t
+index 2acbac5..154f0ca 100644
+--- a/t/03-perlprov.t
++++ b/t/03-perlprov.t
+@@ -49,6 +49,6 @@ Provides "Cwd.pm"		=> "perl(Cwd.pm) = ";
+ Provides "Data/Dumper.pm"	=> "perl(Data/Dumper.pm) = 2.";
+ Provides "IO/File.pm"		=> "perl(IO/File.pm) = 1.";
+ Provides "File/Glob.pm"		=> "perl(File/Glob.pm) = ";
+-Provides "Socket.pm"		=> "perl(Socket.pm) = 1.";
++Provides "Socket.pm"		=> "perl(Socket.pm) = 2.";
+ Provides "POSIX.pm"		=> "perl(POSIX.pm) = 1.";
+ 
+-- 
+1.7.7.6
+


More information about the scm-commits mailing list