|
|
bcc8e8e |
%bcond_without long_tests
|
|
|
93153e3 |
%{?perl_default_filter}
|
|
|
93153e3 |
|
|
|
93153e3 |
Name: perl-IO-Compress
|
|
|
d4a3aaa |
Version: 2.037
|
|
|
cbdc31f |
Release: 2%{?dist}
|
|
|
6460ec9 |
Summary: Read and write compressed data
|
|
|
93153e3 |
License: GPL+ or Artistic
|
|
|
93153e3 |
Group: Development/Libraries
|
|
|
93153e3 |
URL: http://search.cpan.org/dist/IO-Compress/
|
|
|
93153e3 |
Source0: http://www.cpan.org/authors/id/P/PM/PMQS/IO-Compress-%{version}.tar.gz
|
|
|
93153e3 |
BuildArch: noarch
|
|
|
78f2ca0 |
Requires: perl(Exporter)
|
|
|
78f2ca0 |
BuildRequires: perl(bytes)
|
|
|
78f2ca0 |
BuildRequires: perl(constant)
|
|
|
93153e3 |
BuildRequires: perl(Compress::Raw::Bzip2) >= %{version}
|
|
|
93153e3 |
BuildRequires: perl(Compress::Raw::Zlib) >= %{version}
|
|
|
93153e3 |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
78f2ca0 |
BuildRequires: perl(File::Copy)
|
|
|
78f2ca0 |
BuildRequires: perl(File::GlobMapper)
|
|
|
78f2ca0 |
BuildRequires: perl(IO::File)
|
|
|
78f2ca0 |
BuildRequires: perl(IO::Handle)
|
|
|
78f2ca0 |
BuildRequires: perl(IO::Seekable)
|
|
|
78f2ca0 |
BuildRequires: perl(Scalar::Util)
|
|
|
78f2ca0 |
BuildRequires: perl(Symbol)
|
|
|
78f2ca0 |
BuildRequires: perl(Test::Pod) >= 1.00, perl(Test::NoWarnings)
|
|
|
78f2ca0 |
BuildRequires: perl(Test::Builder), perl(Test::More), perl(Config)
|
|
|
93153e3 |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
93153e3 |
# this is wrapper for different Compress modules
|
|
|
93153e3 |
Provides: perl-Compress-Zlib = %{version}-%{release}
|
|
|
93153e3 |
Obsoletes: perl-Compress-Zlib < %{version}-%{release}
|
|
|
93153e3 |
Provides: perl-IO-Compress-Base = %{version}-%{release}
|
|
|
93153e3 |
Obsoletes: perl-IO-Compress-Base < %{version}-%{release}
|
|
|
93153e3 |
Provides: perl-IO-Compress-Bzip2 = %{version}-%{release}
|
|
|
93153e3 |
Obsoletes: perl-IO-Compress-Bzip2 < %{version}-%{release}
|
|
|
93153e3 |
Obsoletes: perl-IO-Compress-Zlib < %{version}-%{release}
|
|
|
93153e3 |
Provides: perl-IO-Compress-Zlib = %{version}-%{release}
|
|
|
93153e3 |
|
|
|
93153e3 |
%description
|
|
|
93153e3 |
This distribution provides a Perl interface to allow reading and writing of
|
|
|
93153e3 |
compressed data created with the zlib and bzip2 libraries.
|
|
|
93153e3 |
|
|
|
c5d1fef |
IO-Compress supports reading and writing of bzip2, RFC 1950, RFC 1951,
|
|
|
c5d1fef |
RFC 1952 (i.e. gzip) and zip files/buffers.
|
|
|
93153e3 |
|
|
|
93153e3 |
The following modules used to be distributed separately, but are now
|
|
|
c5d1fef |
included with the IO-Compress distribution:
|
|
|
93153e3 |
|
|
|
93153e3 |
* Compress-Zlib
|
|
|
93153e3 |
* IO-Compress-Zlib
|
|
|
93153e3 |
* IO-Compress-Bzip2
|
|
|
93153e3 |
* IO-Compress-Base
|
|
|
93153e3 |
|
|
|
93153e3 |
%prep
|
|
|
93153e3 |
%setup -q -n IO-Compress-%{version}
|
|
|
6460ec9 |
|
|
|
6460ec9 |
# Remove spurious exec permissions
|
|
|
93153e3 |
chmod -x lib/IO/Uncompress/{Adapter/Identity,RawInflate}.pm
|
|
|
c5d1fef |
find examples -type f -exec chmod -x {} +
|
|
|
6460ec9 |
# Fix shellbangs in examples
|
|
|
93153e3 |
%{__perl} -pi -e 's|^#!/usr/local/bin/perl\b|#!%{__perl}|' examples/io/anycat \
|
|
|
bcc8e8e |
examples/io/bzip2/* examples/io/gzip/* examples/compress-zlib/*
|
|
|
6460ec9 |
# Include IO::Compress::FAQ (#634722, CPAN RT#61402)
|
|
|
6460ec9 |
ln pod/FAQ.pod lib/IO/Compress/
|
|
|
93153e3 |
|
|
|
93153e3 |
%build
|
|
|
6460ec9 |
%{__perl} Makefile.PL
|
|
|
93153e3 |
make %{?_smp_mflags}
|
|
|
93153e3 |
|
|
|
93153e3 |
%install
|
|
|
78f2ca0 |
make pure_install DESTDIR=%{buildroot}
|
|
|
78f2ca0 |
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|
|
78f2ca0 |
find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
|
|
|
78f2ca0 |
%{_fixperms} %{buildroot}
|
|
|
93153e3 |
|
|
|
93153e3 |
%check
|
|
|
bcc8e8e |
# Build using "--without long_tests" to avoid very long tests
|
|
|
bcc8e8e |
# (full suite can take nearly an hour on an i7)
|
|
|
bcc8e8e |
make test %{?with_long_tests:COMPRESS_ZLIB_RUN_ALL=1}
|
|
|
93153e3 |
|
|
|
93153e3 |
%files
|
|
|
0b4ad00 |
%doc Changes README examples/*
|
|
|
6460ec9 |
%{perl_privlib}/Compress/
|
|
|
6460ec9 |
%{perl_privlib}/File/
|
|
|
6460ec9 |
%{perl_privlib}/IO/
|
|
|
6460ec9 |
%{_mandir}/man3/Compress::Zlib.3pm*
|
|
|
6460ec9 |
%{_mandir}/man3/File::GlobMapper.3pm*
|
|
|
6460ec9 |
%{_mandir}/man3/IO::Compress::*.3pm*
|
|
|
6460ec9 |
%{_mandir}/man3/IO::Uncompress::*.3pm*
|
|
|
93153e3 |
|
|
|
93153e3 |
%changelog
|
|
|
cbdc31f |
* Wed Jun 22 2011 Paul Howarth <paul@city-fan.org> - 2.037-2
|
|
|
cbdc31f |
- Perl mass rebuild
|
|
|
cbdc31f |
|
|
|
d4a3aaa |
* Wed Jun 22 2011 Paul Howarth <paul@city-fan.org> - 2.037-1
|
|
|
d4a3aaa |
- Update to 2.037 (support streamed stored content in IO::Uncompress::Unzip)
|
|
|
d4a3aaa |
|
|
|
97413c0 |
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.036-2
|
|
|
97413c0 |
- Perl mass rebuild
|
|
|
97413c0 |
|
|
Petr Sabata |
7c4d2c0 |
* Mon Jun 20 2011 Petr Sabata <contyk@redhat.com> - 2.036-1
|
|
Petr Sabata |
7c4d2c0 |
- 2.036 bump (Zip/Unzip enhancements)
|
|
Petr Sabata |
7c4d2c0 |
|
|
|
4b7aee7 |
* Sat May 7 2011 Paul Howarth <paul@city-fan.org> - 2.035-1
|
|
|
4b7aee7 |
- Update to 2.035 (fix test failure on Windows - CPAN RT#67931)
|
|
|
4b7aee7 |
|
|
|
78f2ca0 |
* Tue May 3 2011 Petr Sabata <psabata@redhat.com> - 2.034-1
|
|
|
78f2ca0 |
- 2.034 bump
|
|
|
78f2ca0 |
- Buildroot and defattr cleanup
|
|
|
78f2ca0 |
- Correcting BRs/Rs
|
|
|
78f2ca0 |
|
|
|
1e63fe1 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.033-2
|
|
|
1e63fe1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
1e63fe1 |
|
|
|
6460ec9 |
* Thu Jan 13 2011 Paul Howarth <paul@city-fan.org> - 2.033-1
|
|
|
6460ec9 |
- Update to 2.033 (fixed typos and spelling errors - Perl RT#81816)
|
|
|
6460ec9 |
- Use more explicit %%files list
|
|
|
6460ec9 |
- Simplify inclusion of IO::Compress::FAQ
|
|
|
6460ec9 |
- Drop redundant explicit requires of Compress::Raw::{Bzip2,Zlib}
|
|
|
6460ec9 |
- Drop installdirs patch, not needed with perl 5.12
|
|
|
6460ec9 |
- Default installdirs are perl, so no need to specify it explicitly
|
|
|
6460ec9 |
- Make %%summary less generic
|
|
|
6460ec9 |
|
|
|
c5d1fef |
* Fri Jan 07 2011 Petr Pisar <ppisar@redhat.com> - 2.032-1
|
|
|
c5d1fef |
- 2.032 bump
|
|
|
c5d1fef |
- Small improvements in spec file
|
|
|
c5d1fef |
|
|
|
af7371b |
* Fri Dec 17 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.030-4
|
|
|
af7371b |
- 661697 rebuild for fixing problems with vendorach/lib
|
|
|
af7371b |
|
|
|
bcc8e8e |
* Tue Sep 21 2010 Paul Howarth <paul@city-fan.org> 2.030-3
|
|
|
bcc8e8e |
- Turn long-running tests back on and support build --without long_tests
|
|
|
bcc8e8e |
to skip them
|
|
|
bcc8e8e |
|
|
|
0b4ad00 |
* Thu Sep 16 2010 Ville Skyttä <ville.skytta@iki.fi> - 2.030-2
|
|
|
bcc8e8e |
- Install IO::Compress::FAQ into usual POD and man dirs (#634722)
|
|
|
0b4ad00 |
|
|
|
fc723a2 |
* Mon Jul 26 2010 Petr Sabata <psabata@redhat.com> 2.030-1
|
|
|
fc723a2 |
- 2.030 version bump
|
|
|
fc723a2 |
|
|
|
93153e3 |
* Thu May 06 2010 Marcela Mašláňová <mmaslano@redhat.com> 2.027-1
|
|
|
93153e3 |
- update
|
|
|
93153e3 |
|
|
|
93153e3 |
* Mon Apr 12 2010 Marcela Mašláňová <mmaslano@redhat.com> 2.024-3
|
|
|
93153e3 |
- few fixes in specfile 573932
|
|
|
93153e3 |
|
|
|
93153e3 |
* Tue Mar 16 2010 Marcela Mašláňová <mmaslano@redhat.com> 2.024-2
|
|
|
93153e3 |
- Specfile autogenerated by cpanspec 1.78.
|
|
|
93153e3 |
- thanks with fixes of specfile to Paul Howarth
|
|
|
93153e3 |
|