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