From e7a99807d5d9263f44b3f6025b25d3e3f3be094e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Wed, 9 Sep 2015 16:43:52 +0200
Subject: 0.22 bump


diff --git a/.gitignore b/.gitignore
index 6fe82f2..890f7fd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /Compress-LZ4-0.20.tar.gz
+/Compress-LZ4-0.22.tar.gz
diff --git a/compress_lz4_unbundle.patch b/compress_lz4_unbundle.patch
deleted file mode 100644
index 3743301..0000000
--- a/compress_lz4_unbundle.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-diff -Naur old/LZ4.xs new/LZ4.xs
---- old/LZ4.xs 2014-03-22 19:19:23.000000000 +1100
-+++ new/LZ4.xs 2014-10-07 06:45:36.104454692 +1100
-@@ -7,8 +7,8 @@
- #define NEED_sv_2pvbyte
- #include "ppport.h"
- 
--#include "lz4.h"
--#include "lz4hc.h"
-+#include <lz4.h>
-+#include <lz4hc.h>
- 
- MODULE = Compress::LZ4    PACKAGE = Compress::LZ4
- 
-diff -Naur old/Makefile.PL new/Makefile.PL
---- old/Makefile.PL    2013-11-19 11:26:33.000000000 +1100
-+++ new/Makefile.PL    2014-10-07 06:45:36.104454692 +1100
-@@ -20,6 +20,7 @@
-     },
- 
-     OBJECT => '$(O_FILES)',
-+    LIBS   => '-llz4',
- 
-     dist   => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
-     clean  => { FILES    => 'Compress-LZ4-*' },
-diff -Naur old/MANIFEST new/MANIFEST
---- old/MANIFEST       2014-07-08 07:07:04.000000000 +1000
-+++ new/MANIFEST       2014-10-07 06:47:17.546056156 +1100
-@@ -1,11 +1,7 @@
- Changes
- ex/benchmark.pl
- lib/Compress/LZ4.pm
--lz4.h
- LZ4.xs
--lz4c.c
--lz4hc.c
--lz4hc.h
- Makefile.PL
- MANIFEST                      This list of files
- ppport.h
diff --git a/perl-Compress-LZ4.spec b/perl-Compress-LZ4.spec
index fe70cac..b8a0db4 100644
--- a/perl-Compress-LZ4.spec
+++ b/perl-Compress-LZ4.spec
@@ -1,43 +1,58 @@
 Name:           perl-Compress-LZ4
-Version:        0.20
-Release:        3%{?dist}
+Version:        0.22
+Release:        1%{?dist}
 Summary:        Perl interface to the LZ4 compression library
+# other files:  GPL+ or Artistic
+## Not in binary package
+# src:          BSD
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Compress-LZ4/
 Source0:        
http://www.cpan.org/modules/by-module/Compress/Compress-LZ4-%{version}.tar.gz
-Patch1:         compress_lz4_unbundle.patch
+# Do not use bundled lz4 sources
+Patch0:         Compress-LZ4-0.22-Build-against-system-lz4.patch
+BuildRequires:  coreutils
+BuildRequires:  findutils
 BuildRequires:  lz4-devel
 BuildRequires:  perl
 BuildRequires:  perl(Config)
-BuildRequires:  perl(Exporter) >= 5.57
 BuildRequires:  perl(ExtUtils::MakeMaker)
-BuildRequires:  perl(overload)
 BuildRequires:  perl(strict)
-BuildRequires:  perl(Test::More) >= 0.88
 BuildRequires:  perl(warnings)
+BuildRequires:  sed
+# Run-time:
+BuildRequires:  perl(Exporter) >= 5.57
 BuildRequires:  perl(XSLoader)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
+# Tests:
+BuildRequires:  perl(Config)
+BuildRequires:  perl(overload)
+BuildRequires:  perl(Test::More) >= 0.82
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires:       perl(Exporter) >= 5.57
+
+# Filter under-specified dependencies
+%global __requires_exclude 
%{?__requires_exclude:%{__requires_exclude}|}^perl\\(Exporter\\)$
 
 %description
 The Compress::LZ4 module provides an interface to the LZ4 compression library
 
 %prep
 %setup -q -n Compress-LZ4-%{version}
-%patch1 -p1
-rm -Rf lz4*
+%patch0 -p1
+# Remove bundled lz4
+rm -Rf src
+sed -i -e '/^src\//d' MANIFEST
+# Correct permissions
 chmod -c -x ex/*
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
 make %{?_smp_mflags}
 
 %install
 make pure_install DESTDIR=$RPM_BUILD_ROOT
-
 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
 find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
-
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
@@ -50,6 +65,9 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Wed Sep 09 2015 Petr Pisar <ppi...@redhat.com> - 0.22-1
+- 0.22 bump
+
 * Thu Jun 18 2015 Fedora Release Engineering <rel-...@lists.fedoraproject.org> 
- 0.20-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
 
diff --git a/sources b/sources
index b579bc8..3bc6594 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-aac875302611c0806893514cb496d33b  Compress-LZ4-0.20.tar.gz
+ae475d738a9964814bb4a16b6eb4c371  Compress-LZ4-0.22.tar.gz
-- 
cgit v0.10.2


        
http://pkgs.fedoraproject.org/cgit/perl-Compress-LZ4.git/commit/?h=master&id=e7a99807d5d9263f44b3f6025b25d3e3f3be094e
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-de...@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to