[packages/perl-Data-Locations] - update test syntax for perl 5.22 - rel 11
baggins
baggins at pld-linux.org
Sat Jan 2 11:17:45 CET 2016
commit 1d56d661b03c275e72b64972b98193d5ef6b109d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Jan 2 11:17:26 2016 +0100
- update test syntax for perl 5.22
- rel 11
perl-5.22.patch | 11 +++++++++++
perl-Data-Locations.spec | 4 +++-
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/perl-Data-Locations.spec b/perl-Data-Locations.spec
index 68ec286..65b23db 100644
--- a/perl-Data-Locations.spec
+++ b/perl-Data-Locations.spec
@@ -9,13 +9,14 @@ Summary: Data::Locations - magic insertion points in your data
Summary(pl.UTF-8): Data::Locations - magiczne punkty wstawiania w danych
Name: perl-Data-Locations
Version: 5.5
-Release: 10
+Release: 11
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
# note: "5.2-fixed" doesn't work with perl 5.8.2, plain 5.2 does
Source0: http://www.cpan.org/modules/by-module/Data/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: f7d24507b1ac29dbfe414a03aff7c6bc
+Patch0: perl-5.22.patch
URL: http://search.cpan.org/dist/Data-Locations/
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
@@ -29,6 +30,7 @@ Data::Locations - magiczne punkty wstawiania w danych.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
%build
%{__perl} Makefile.PL \
diff --git a/perl-5.22.patch b/perl-5.22.patch
new file mode 100644
index 0000000..aa9d51d
--- /dev/null
+++ b/perl-5.22.patch
@@ -0,0 +1,11 @@
+--- Data-Locations-5.5/t/01________new.t.orig 2009-10-07 23:45:04.000000000 +0200
++++ Data-Locations-5.5/t/01________new.t 2016-01-02 11:16:25.691916371 +0100
+@@ -84,7 +84,7 @@
+ if (ref($loc) eq 'Data::Locations')
+ {print "ok $n\n";} else {print "not ok $n\n";}
+ $n++;
+- if (defined %{*{$loc}})
++ if (%{*{$loc}})
+ {print "ok $n\n";} else {print "not ok $n\n";}
+ $n++;
+ if (exists ${*{$loc}}{'name'})
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Data-Locations.git/commitdiff/1d56d661b03c275e72b64972b98193d5ef6b109d
More information about the pld-cvs-commit
mailing list