perl-Compress-Bzip2/perl-Compress-Bzip2.spec

68 lines
2.3 KiB
RPMSpec
Raw Normal View History

%define PERL_VERSION %(eval `perl -V:version`; echo $version)
Name: perl-Compress-Bzip2
Version: 2.28
Release: 1mamba
Summary: Compress::Bzip2 - Interface to Bzip2 compression library
Group: Development/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Tiziana Ferro <tiziana.ferro@email.it>
Source: https://cpan.metacpan.org/authors/id/R/RU/RURBAN/Compress-Bzip2-%{version}.tar.gz
URL: http://www.cpan.org
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libbzip2-devel
BuildRequires: libperl
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/perl-root
Requires: perl >= %PERL_VERSION
%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
* Mon Sep 14 2020 Automatic Build System <autodist@mambasoft.it> 2.28-1mamba
- automatic update by autodist
* Fri Jan 10 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.26-1mamba
- update to 2.26
* Thu Nov 15 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.09-3mamba
- perl 5.16 mass rebuild
* Tue Nov 04 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.09-2mamba
- automatic rebuild by autodist
* Wed Jun 25 2008 Tiziana Ferro <tiziana.ferro@email.it> 2.011-1mamba
- First build