perl-IO-Compress/perl-IO-Compress.spec

114 lines
3.9 KiB
RPMSpec
Raw Normal View History

%bcond_without long_tests
2010-05-11 06:23:14 +00:00
%{?perl_default_filter}
Name: perl-IO-Compress
2011-01-07 14:55:29 +00:00
Version: 2.032
Release: 1%{?dist}
2010-05-11 06:23:14 +00:00
Summary: IO::Compress Perl module
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/IO-Compress/
Source0: http://www.cpan.org/authors/id/P/PM/PMQS/IO-Compress-%{version}.tar.gz
Patch0: IO-Compress-2.024-Makefile.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(Test::Pod), perl(Test::NoWarnings)
BuildRequires: perl(Compress::Raw::Bzip2) >= %{version}
BuildRequires: perl(Compress::Raw::Zlib) >= %{version}
BuildRequires: perl(ExtUtils::MakeMaker)
Requires: perl(Compress::Raw::Bzip2) >= %{version}
Requires: perl(Compress::Raw::Zlib) >= %{version}
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
# this is wrapper for different Compress modules
Provides: perl-Compress-Zlib = %{version}-%{release}
Obsoletes: perl-Compress-Zlib < %{version}-%{release}
Provides: perl-IO-Compress-Base = %{version}-%{release}
Obsoletes: perl-IO-Compress-Base < %{version}-%{release}
Provides: perl-IO-Compress-Bzip2 = %{version}-%{release}
Obsoletes: perl-IO-Compress-Bzip2 < %{version}-%{release}
Obsoletes: perl-IO-Compress-Zlib < %{version}-%{release}
Provides: perl-IO-Compress-Zlib = %{version}-%{release}
%description
This distribution provides a Perl interface to allow reading and writing of
compressed data created with the zlib and bzip2 libraries.
2011-01-07 14:55:29 +00:00
IO-Compress supports reading and writing of bzip2, RFC 1950, RFC 1951,
RFC 1952 (i.e. gzip) and zip files/buffers.
2010-05-11 06:23:14 +00:00
The following modules used to be distributed separately, but are now
2011-01-07 14:55:29 +00:00
included with the IO-Compress distribution:
2010-05-11 06:23:14 +00:00
* Compress-Zlib
* IO-Compress-Zlib
* IO-Compress-Bzip2
* IO-Compress-Base
%prep
%setup -q -n IO-Compress-%{version}
%patch0 -p1 -b .old
chmod -x lib/IO/Uncompress/{Adapter/Identity,RawInflate}.pm
2011-01-07 14:55:29 +00:00
find examples -type f -exec chmod -x {} +
2010-05-11 06:23:14 +00:00
%{__perl} -pi -e 's|^#!/usr/local/bin/perl\b|#!%{__perl}|' examples/io/anycat \
examples/io/bzip2/* examples/io/gzip/* examples/compress-zlib/*
# https://rt.cpan.org/Public/Bug/Display.html?id=61402
mv pod/FAQ.pod lib/IO/Compress ; %{__perl} -pi -e 's|pod/FAQ\.pod||' MANIFEST
2010-05-11 06:23:14 +00:00
%build
%{__perl} Makefile.PL INSTALLDIRS=perl
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
# Build using "--without long_tests" to avoid very long tests
# (full suite can take nearly an hour on an i7)
make test %{?with_long_tests:COMPRESS_ZLIB_RUN_ALL=1}
2010-05-11 06:23:14 +00:00
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes README examples/*
2010-05-11 06:23:14 +00:00
%{perl_privlib}/*
%{_mandir}/man3/*
%changelog
2011-01-07 14:55:29 +00:00
* Fri Jan 07 2011 Petr Pisar <ppisar@redhat.com> - 2.032-1
- 2.032 bump
- Small improvements in spec file
* Fri Dec 17 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.030-4
- 661697 rebuild for fixing problems with vendorach/lib
* Tue Sep 21 2010 Paul Howarth <paul@city-fan.org> 2.030-3
- Turn long-running tests back on and support build --without long_tests
to skip them
* Thu Sep 16 2010 Ville Skyttä <ville.skytta@iki.fi> - 2.030-2
- Install IO::Compress::FAQ into usual POD and man dirs (#634722)
2010-07-26 12:26:43 +00:00
* Mon Jul 26 2010 Petr Sabata <psabata@redhat.com> 2.030-1
- 2.030 version bump
2010-05-11 06:23:14 +00:00
* Thu May 06 2010 Marcela Mašláňová <mmaslano@redhat.com> 2.027-1
- update
* Mon Apr 12 2010 Marcela Mašláňová <mmaslano@redhat.com> 2.024-3
- few fixes in specfile 573932
* Tue Mar 16 2010 Marcela Mašláňová <mmaslano@redhat.com> 2.024-2
- Specfile autogenerated by cpanspec 1.78.
- thanks with fixes of specfile to Paul Howarth