[perl] fix Compress-Raw-Bzip2 packaging
Iain Arnell
iarnell at fedoraproject.org
Fri Jul 29 13:50:29 UTC 2011
commit 93b5b8981dbb542b1619c4d1abc42ec73242245e
Author: Iain Arnell <iarnell at gmail.com>
Date: Fri Jul 29 09:48:20 2011 +0200
fix Compress-Raw-Bzip2 packaging
and ensure that we never bundle bzip2 or zlib
perl.spec | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/perl.spec b/perl.spec
index 84242f3..b07d9d7 100644
--- a/perl.spec
+++ b/perl.spec
@@ -66,7 +66,7 @@ Patch8: perl-5.14.1-offtest.patch
# Update some of the bundled modules
# see http://fedoraproject.org/wiki/Perl/perl.spec for instructions
-BuildRequires: db4-devel, gdbm-devel, groff, tcsh, zlib-devel, systemtap-sdt-devel
+BuildRequires: db4-devel, gdbm-devel, groff, tcsh, zlib-devel, bzip2-devel, systemtap-sdt-devel
# For tests
BuildRequires: procps, rsyslog
@@ -1082,6 +1082,11 @@ sed -i 's|BUILD_ZLIB = True|BUILD_ZLIB = False|
s|LIB = ./zlib-src|LIB = %{_libdir}|' \
cpan/Compress-Raw-Zlib/config.in
+# Ensure that we never accidentally bundle zlib or bzip2
+rm -rf cpan/Compress-Raw-Zlib/zlib-src
+rm -rf cpan/Compress-Raw-Bzip2/bzip2-src
+sed -i '/\(bzip2\|zlib\)-src/d' MANIFEST
+
%build
echo "RPM Build arch: %{_arch}"
@@ -1150,6 +1155,10 @@ echo "RPM Build arch: %{_arch}"
# -Duseshrplib creates libperl.so, -Ubincompat5005 help create DSO -> libperl.so
+BUILD_BZIP2=0
+BZIP2_LIB=%{_libdir}
+export BUILD_BZIP2 BZIP2_LIB
+
%ifarch sparc64 %{arm}
make
%else
@@ -1394,7 +1403,6 @@ sed \
%exclude %{archlib}/auto/Compress/Raw/
%exclude %{archlib}/auto/Compress/Raw/Zlib/
%exclude %{_mandir}/man3/Compress::Raw::Zlib*
-%exclude %{_mandir}/man3/Compress::Raw::Bzip2*
# Digest::SHA
%exclude %{_bindir}/shasum
@@ -1730,11 +1738,16 @@ sed \
%files Compress-Raw-Bzip2
%dir %{archlib}/Compress
+%dir %{archlib}/Compress/Raw
%{archlib}/Compress/Raw/Bzip2.pm
+%dir %{archlib}/auto/Compress/
+%dir %{archlib}/auto/Compress/Raw/
+%{archlib}/auto/Compress/Raw/Bzip2/
%{_mandir}/man3/Compress::Raw::Bzip2*
%files Compress-Raw-Zlib
%dir %{archlib}/Compress
+%dir %{archlib}/Compress/Raw
%{archlib}/Compress/Raw/Zlib.pm
%dir %{archlib}/auto/Compress/
%dir %{archlib}/auto/Compress/Raw/
More information about the scm-commits
mailing list