From 0fd60c634a42a06d8ca51f30a6372e793094ea26 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <[email protected]>
Date: Tue, 7 Feb 2017 15:28:36 +0100
Subject: Remove bundled zlib sources
---
perl-Compress-Raw-Zlib.spec | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/perl-Compress-Raw-Zlib.spec b/perl-Compress-Raw-Zlib.spec
index 43c4e90..4109d09 100644
--- a/perl-Compress-Raw-Zlib.spec
+++ b/perl-Compress-Raw-Zlib.spec
@@ -2,8 +2,10 @@ Name: perl-Compress-Raw-Zlib
Version: 2.071
Release: 2%{?dist}
Summary: Low-level interface to the zlib compression library
-# Zlib.xs: (GPL+ or Artistic) and zlib
-# Others: GPL+ or Artistic
+# Zlib.xs: (GPL+ or Artistic) and zlib
+# Others: GPL+ or Artistic
+## Not used to produce binary packages
+# zlib-src: zlib
License: (GPL+ or Artistic) and zlib
Group: Development/Libraries
URL: http://search.cpan.org/dist/Compress-Raw-Zlib/
@@ -25,6 +27,7 @@ BuildRequires: perl(ExtUtils::MakeMaker) >= 5.16
BuildRequires: perl(File::Copy)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(vars)
+BuildRequires: sed
BuildRequires: zlib-devel >= 1.2.1
# Module Runtime
BuildRequires: perl(bytes)
@@ -59,6 +62,9 @@ compression library, which is used by IO::Compress::Zlib.
%prep
%setup -q -n Compress-Raw-Zlib-%{version}
%patch0 -p1
+# Remove bundled zlib
+rm -rf zlib-src
+sed -i -e '/^zlib-src\//d' MANIFEST
%build
OLD_ZLIB=False
--
cgit v1.1
https://src.fedoraproject.org/cgit/perl-Compress-Raw-Zlib.git/commit/?h=master&id=0fd60c634a42a06d8ca51f30a6372e793094ea26
_______________________________________________
perl-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]