[perl-Git-PurePerl] apply patch for RT#86018
Iain Arnell
iarnell at fedoraproject.org
Sat Aug 10 15:08:38 UTC 2013
commit f755b7bd4b6ec44258024d8690e65f42a6bb5e46
Author: Iain Arnell <iarnell at gmail.com>
Date: Sat Aug 10 09:08:26 2013 -0600
apply patch for RT#86018
Git-PurePerl-rt86018.patch | 28 ++++++++++++++++++++++++++++
perl-Git-PurePerl.spec | 8 +++++++-
2 files changed, 35 insertions(+), 1 deletions(-)
---
diff --git a/Git-PurePerl-rt86018.patch b/Git-PurePerl-rt86018.patch
new file mode 100644
index 0000000..4bc8c9c
--- /dev/null
+++ b/Git-PurePerl-rt86018.patch
@@ -0,0 +1,28 @@
+Description: qw() in list context is an error now
+Origin: vendor
+Bug-Debian: http://bugs.debian.org/711443
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2013-06-09
+
+--- a/t/00_setup.t
++++ b/t/00_setup.t
+@@ -4,7 +4,7 @@
+ use Test::More;
+ use Archive::Extract;
+
+-foreach my $name qw(test-project test-project-packs test-project-packs2 test-encoding) {
++foreach my $name (qw(test-project test-project-packs test-project-packs2 test-encoding)) {
+ next if -d $name;
+ my $ae = Archive::Extract->new( archive => "$name.tgz" );
+ $ae->extract;
+--- a/t/simple.t
++++ b/t/simple.t
+@@ -7,7 +7,7 @@
+
+ my $checkout_directory = dir('t/checkout');
+
+-foreach my $directory qw(test-project test-project-packs test-project-packs2)
++foreach my $directory (qw(test-project test-project-packs test-project-packs2))
+ {
+ my $git = Git::PurePerl->new( directory => $directory );
+ like( $git->master_sha1, qr/^[a-z0-9]{40}$/ );
diff --git a/perl-Git-PurePerl.spec b/perl-Git-PurePerl.spec
index 640b2e6..34e6e3d 100644
--- a/perl-Git-PurePerl.spec
+++ b/perl-Git-PurePerl.spec
@@ -1,11 +1,13 @@
Name: perl-Git-PurePerl
Version: 0.48
-Release: 6%{?dist}
+Release: 7%{?dist}
Summary: Pure Perl interface to Git repositories
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Git-PurePerl/
Source0: http://search.cpan.org/CPAN/authors/id/B/BR/BROQ/Git-PurePerl-%{version}.tar.gz
+# see https://rt.cpan.org/Public/Bug/Display.html?id=86018
+Patch0: Git-PurePerl-rt86018.patch
BuildArch: noarch
BuildRequires: perl(Archive::Extract)
BuildRequires: perl(Archive::Tar)
@@ -34,6 +36,7 @@ This module is a Pure Perl interface to Git repositories.
%prep
%setup -q -n Git-PurePerl-%{version}
+%patch0 -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
@@ -58,6 +61,9 @@ make test
%{_mandir}/man3/*
%changelog
+* Sat Aug 10 2013 Iain Arnell <iarnell at gmail.com> 0.48-7
+- apply patch for RT#86018
+
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.48-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
More information about the perl-devel
mailing list