[perl-Compress-LZ4] Initial import (#1133198).
David Dick
ddick at fedoraproject.org
Tue Oct 7 18:49:35 UTC 2014
commit 1eb9db5585bb2464ae3e6800e9aea15c4f837fc3
Author: David Dick <ddick at cpan.org>
Date: Wed Oct 8 05:49:18 2014 +1100
Initial import (#1133198).
.gitignore | 1 +
compress_lz4_unbundle.patch | 40 +++++++++++++++++++++++++++++++
perl-Compress-LZ4.spec | 54 +++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 96 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6fe82f2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Compress-LZ4-0.20.tar.gz
diff --git a/compress_lz4_unbundle.patch b/compress_lz4_unbundle.patch
new file mode 100644
index 0000000..3743301
--- /dev/null
+++ b/compress_lz4_unbundle.patch
@@ -0,0 +1,40 @@
+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
new file mode 100644
index 0000000..f60a40f
--- /dev/null
+++ b/perl-Compress-LZ4.spec
@@ -0,0 +1,54 @@
+Name: perl-Compress-LZ4
+Version: 0.20
+Release: 1%{?dist}
+Summary: Perl interface to the LZ4 compression library
+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
+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: perl(XSLoader)
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%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*
+chmod -c -x ex/*
+
+%build
+%{__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
+make test
+
+%files
+%doc Changes README ex
+%{perl_vendorarch}/auto/*
+%{perl_vendorarch}/Compress*
+%{_mandir}/man3/*
+
+%changelog
+* Sat Aug 23 2014 David Dick <ddick at cpan.org> - 0.20-1
+- Initial release
diff --git a/sources b/sources
index e69de29..b579bc8 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+aac875302611c0806893514cb496d33b Compress-LZ4-0.20.tar.gz
More information about the scm-commits
mailing list