[packages/perl-Cache-Mmap] - fix syntax for prtl 5.18 - rel 5

baggins baggins at pld-linux.org
Thu Jun 13 16:57:17 CEST 2013


commit 53ed9c2a935ddf63f14eeb48106ba081a77521d8
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Jun 13 16:57:00 2013 +0200

    - fix syntax for prtl 5.18
    - rel 5

 perl-5.18.patch      | 11 +++++++++++
 perl-Cache-Mmap.spec |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/perl-Cache-Mmap.spec b/perl-Cache-Mmap.spec
index 778e0fe..08fc282 100644
--- a/perl-Cache-Mmap.spec
+++ b/perl-Cache-Mmap.spec
@@ -9,12 +9,13 @@ Summary:	Cache::Mmap - shared data cache using memory mapped files
 Summary(pl.UTF-8):	Cache::Mmap - współdzielony bufor danych, używający mapowanych w pamięci plików
 Name:		perl-Cache-Mmap
 Version:	0.081
-Release:	4
+Release:	5
 Epoch:		1
 License:	GPL or Artistic
 Group:		Development/Languages/Perl
 Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
 # Source0-md5:	3170cbdf4232f5b2c578d5cd81527693
+Patch0:		perl-5.18.patch
 URL:		http://search.cpan.org/dist/Cache-Mmap/
 BuildRequires:	perl-devel >= 1:5.8.0
 %if %{with tests}
@@ -40,6 +41,7 @@ miarę potrzeby.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
 
 %build
 %{__perl} Makefile.PL \
diff --git a/perl-5.18.patch b/perl-5.18.patch
new file mode 100644
index 0000000..dbfc8e7
--- /dev/null
+++ b/perl-5.18.patch
@@ -0,0 +1,11 @@
+--- Cache-Mmap-0.081/Mmap.pm~	2004-03-15 17:34:18.000000000 +0100
++++ Cache-Mmap-0.081/Mmap.pm	2013-06-13 16:55:48.624501816 +0200
+@@ -17,7 +17,7 @@
+ 
+ package Cache::Mmap;
+ 
+-use constant has_utf8 => defined($^V) && $^V ge "\5\6\0";
++use constant has_utf8 => 1; # defined($^V) && $^V ge "\5\6\0";
+ 
+ use Carp qw(croak);
+ use DynaLoader();
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Cache-Mmap.git/commitdiff/53ed9c2a935ddf63f14eeb48106ba081a77521d8



More information about the pld-cvs-commit mailing list