forked from pool/perl-IO-Compress
78 lines
1.9 KiB
RPMSpec
78 lines
1.9 KiB
RPMSpec
![]() |
|
||
|
Name: perl-IO-Compress
|
||
|
Version: 2.027
|
||
|
Release: 0%{?dist}
|
||
|
License: GPL+ or Artistic
|
||
|
Group: Development/Libraries
|
||
|
Summary: Compress-Zlib, IO-Compress-{Zlib,Bzip2,Base}
|
||
|
Source: http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/IO-Compress-%{version}.tar.gz
|
||
|
Url: http://search.cpan.org/dist/IO-Compress
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||
|
Requires: perl = %(eval "`%{__perl} -V:version`"; echo $version)
|
||
|
BuildArch: noarch
|
||
|
BuildRequires: perl(Compress::Raw::Bzip2) >= 2.027
|
||
|
BuildRequires: perl(Compress::Raw::Zlib) >= 2.027
|
||
|
BuildRequires: perl(Scalar::Util)
|
||
|
|
||
|
|
||
|
%description
|
||
|
This distribution provides a Perl interface to allow reading and writing of
|
||
|
compressed data created with the zlib and bzip2 libraries.
|
||
|
|
||
|
IO-Compress supports reading and writing of bzip2, RFC 1950, RFC
|
||
|
1951, RFC 1952 (i.e. gzip) and zip files/buffers.
|
||
|
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n IO-Compress-%{version}
|
||
|
|
||
|
%build
|
||
|
if [ -f Build.PL ]; then
|
||
|
%{__perl} Build.PL --installdirs vendor
|
||
|
else
|
||
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||
|
fi
|
||
|
if [ -f Build.PL ]; then
|
||
|
./Build build flags=%{?_smp_mflags}
|
||
|
else
|
||
|
make %{?_smp_mflags}
|
||
|
fi
|
||
|
|
||
|
%install
|
||
|
rm -rf %{buildroot}
|
||
|
|
||
|
if [ -f Build.PL ]; then
|
||
|
./Build pure_install --destdir %{buildroot}
|
||
|
else
|
||
|
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
||
|
fi
|
||
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
||
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
|
||
|
|
||
|
mkdir -p %{buildroot}/%{_mandir}/man3/ %{buildroot}/usr/bin
|
||
|
touch %{buildroot}/%{_mandir}/man3/IO-Compress.3pm.gz
|
||
|
|
||
|
%{_fixperms} %{buildroot}/*
|
||
|
|
||
|
%check
|
||
|
if [ -f Build.PL ]; then
|
||
|
./Build test
|
||
|
else
|
||
|
make test
|
||
|
fi
|
||
|
|
||
|
%clean
|
||
|
rm -rf %{buildroot}
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root,-)
|
||
|
%doc README Changes
|
||
|
%{perl_vendorlib}/*
|
||
|
%{_mandir}/man*/*.*
|
||
|
|
||
|
%changelog
|
||
|
* Sat Jun 26 2010 %{packager} 2.027-0
|
||
|
- initial SUSE packaging
|
||
|
- generated with cpan2dist (CPANPLUS::Dist::SUSE version 0.0.8)
|
||
|
|