%define PERL_VERSION %(eval `perl -V:version`; echo $version) Name: perl-Compress-Bzip2 Version: 2.09 Release: 3mamba Summary: Compress::Bzip2 - Interface to Bzip2 compression library Group: Development/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Tiziana Ferro Source: http://search.cpan.org/CPAN/authors/id/A/AR/ARJAY/Compress-Bzip2-%{version}.tar.gz URL: http://www.cpan.org License: GPL BuildRoot: %{_tmppath}/perl-root Requires: perl >= %PERL_VERSION ## AUTOBUILDREQ-BEGIN BuildRequires: perl-devel >= %PERL_VERSION ## AUTOBUILDREQ-END %description The Compress::Bzip2 module provides a Perl interface to the Bzip2 compression library (see "AUTHOR" for details about where to get Bzip2). A relevant subset of the functionality provided by Bzip2 is available in Compress::Bzip2. All string parameters can either be a scalar or a scalar reference. The module can be split into two general areas of functionality, namely in-memory compression/decompression and read/write access to bzip2 files. Each of these areas will be discussed separately below. %prep %setup -q -n Compress-Bzip2-%{version} %build perl Makefile.PL %make %make test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %make pure_install DESTDIR=%{buildroot} %define PERL_SITEARCH %(eval `perl -V:sitearch`; echo $sitearch) cat $RPM_BUILD_ROOT%PERL_SITEARCH/auto/Compress/Bzip2/.packlist | \ sed "s@$RPM_BUILD_ROOT@@g;s@.*/man/.*@&.gz@g" | \ sort -u > .packlist rm -f $RPM_BUILD_ROOT%PERL_SITEARCH/auto/Compress/Bzip2/.packlist %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" rm -f .packlist %files -f .packlist %defattr(-,root,root) %changelog * Thu Nov 15 2012 Silvan Calarco 2.09-3mamba - perl 5.16 mass rebuild * Tue Nov 04 2008 Silvan Calarco 2.09-2mamba - automatic rebuild by autodist * Wed Jun 25 2008 Tiziana Ferro 2.011-1mamba - First build