2010-09-21 10:16:48 +00:00
|
|
|
%bcond_without long_tests
|
2010-05-11 06:23:14 +00:00
|
|
|
%{?perl_default_filter}
|
|
|
|
|
|
|
|
Name: perl-IO-Compress
|
2012-04-29 18:18:57 +00:00
|
|
|
Version: 2.052
|
2012-07-10 13:38:53 +00:00
|
|
|
Release: 4%{?dist}
|
2011-01-13 10:20:17 +00:00
|
|
|
Summary: Read and write compressed data
|
2010-05-11 06:23:14 +00:00
|
|
|
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
|
|
|
|
BuildArch: noarch
|
2011-05-03 14:35:14 +00:00
|
|
|
Requires: perl(Exporter)
|
2012-01-29 21:53:55 +00:00
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(Config)
|
2011-05-03 14:35:14 +00:00
|
|
|
BuildRequires: perl(constant)
|
2012-01-29 21:53:55 +00:00
|
|
|
BuildRequires: perl(Compress::Raw::Bzip2) >= %{version}
|
|
|
|
BuildRequires: perl(Compress::Raw::Zlib) >= %{version}
|
|
|
|
BuildRequires: perl(Encode)
|
|
|
|
BuildRequires: perl(Exporter)
|
2010-05-11 06:23:14 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
2012-01-29 21:53:55 +00:00
|
|
|
BuildRequires: perl(Fcntl)
|
2011-05-03 14:35:14 +00:00
|
|
|
BuildRequires: perl(File::Copy)
|
2012-01-29 21:53:55 +00:00
|
|
|
BuildRequires: perl(File::Glob)
|
|
|
|
BuildRequires: perl(File::Spec)
|
2011-05-03 14:35:14 +00:00
|
|
|
BuildRequires: perl(IO::File)
|
|
|
|
BuildRequires: perl(IO::Handle)
|
|
|
|
BuildRequires: perl(IO::Seekable)
|
2012-01-29 21:53:55 +00:00
|
|
|
BuildRequires: perl(List::Util)
|
|
|
|
BuildRequires: perl(POSIX)
|
2011-05-03 14:35:14 +00:00
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
BuildRequires: perl(Symbol)
|
2012-01-29 21:53:55 +00:00
|
|
|
BuildRequires: perl(Test::Builder)
|
2012-06-01 06:57:46 +00:00
|
|
|
%if !%{defined perl_bootstrap}
|
2012-01-29 21:53:55 +00:00
|
|
|
BuildRequires: perl(Test::NoWarnings)
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
2012-06-01 06:57:46 +00:00
|
|
|
%endif
|
2012-01-29 21:53:55 +00:00
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
2010-05-11 06:23:14 +00:00
|
|
|
# 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}
|
2011-01-13 10:20:17 +00:00
|
|
|
|
|
|
|
# Remove spurious exec permissions
|
2010-05-11 06:23:14 +00:00
|
|
|
chmod -x lib/IO/Uncompress/{Adapter/Identity,RawInflate}.pm
|
2012-04-29 18:18:57 +00:00
|
|
|
find examples -type f -exec chmod -c -x {} \;
|
|
|
|
|
2011-01-13 10:20:17 +00:00
|
|
|
# Fix shellbangs in examples
|
2012-01-29 21:53:55 +00:00
|
|
|
perl -pi -e 's|^#!/usr/local/bin/perl\b|#!%{__perl}|' examples/io/anycat \
|
2010-09-21 10:16:48 +00:00
|
|
|
examples/io/bzip2/* examples/io/gzip/* examples/compress-zlib/*
|
2010-05-11 06:23:14 +00:00
|
|
|
|
|
|
|
%build
|
2011-01-13 10:20:17 +00:00
|
|
|
%{__perl} Makefile.PL
|
2010-05-11 06:23:14 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2011-05-03 14:35:14 +00:00
|
|
|
make pure_install DESTDIR=%{buildroot}
|
2012-04-29 18:18:57 +00:00
|
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
2011-05-03 14:35:14 +00:00
|
|
|
%{_fixperms} %{buildroot}
|
2010-05-11 06:23:14 +00:00
|
|
|
|
|
|
|
%check
|
2010-09-21 10:16:48 +00:00
|
|
|
# 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
|
|
|
|
|
|
|
%files
|
2010-09-20 16:19:56 +00:00
|
|
|
%doc Changes README examples/*
|
2011-12-04 12:53:16 +00:00
|
|
|
%{_bindir}/zipdetails
|
2011-01-13 10:20:17 +00:00
|
|
|
%{perl_privlib}/Compress/
|
|
|
|
%{perl_privlib}/File/
|
2011-12-04 12:53:16 +00:00
|
|
|
%dir %{perl_privlib}/IO/
|
|
|
|
%dir %{perl_privlib}/IO/Compress/
|
|
|
|
%doc %{perl_privlib}/IO/Compress/FAQ.pod
|
|
|
|
%{perl_privlib}/IO/Compress/Adapter/
|
|
|
|
%{perl_privlib}/IO/Compress/Base/
|
|
|
|
%{perl_privlib}/IO/Compress/Base.pm
|
|
|
|
%{perl_privlib}/IO/Compress/Bzip2.pm
|
|
|
|
%{perl_privlib}/IO/Compress/Deflate.pm
|
|
|
|
%{perl_privlib}/IO/Compress/Gzip/
|
|
|
|
%{perl_privlib}/IO/Compress/Gzip.pm
|
|
|
|
%{perl_privlib}/IO/Compress/RawDeflate.pm
|
|
|
|
%{perl_privlib}/IO/Compress/Zip/
|
|
|
|
%{perl_privlib}/IO/Compress/Zip.pm
|
|
|
|
%{perl_privlib}/IO/Compress/Zlib/
|
|
|
|
%{perl_privlib}/IO/Uncompress/
|
|
|
|
%{_mandir}/man1/zipdetails.1*
|
2011-01-13 10:20:17 +00:00
|
|
|
%{_mandir}/man3/Compress::Zlib.3pm*
|
|
|
|
%{_mandir}/man3/File::GlobMapper.3pm*
|
|
|
|
%{_mandir}/man3/IO::Compress::*.3pm*
|
|
|
|
%{_mandir}/man3/IO::Uncompress::*.3pm*
|
2010-05-11 06:23:14 +00:00
|
|
|
|
|
|
|
%changelog
|
2012-07-10 13:38:53 +00:00
|
|
|
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 2.052-4
|
|
|
|
- Perl 5.16 re-rebuild of bootstrapped packages
|
|
|
|
|
2012-06-06 21:44:13 +00:00
|
|
|
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 2.052-3
|
|
|
|
- Perl 5.16 rebuild
|
|
|
|
|
2012-06-01 06:57:46 +00:00
|
|
|
* Fri Jun 01 2012 Petr Pisar <ppisar@redhat.com> - 2.052-2
|
|
|
|
- Omit optional Test::Pod and Test::NoWarnings tests on bootstrap
|
|
|
|
|
2012-04-29 18:18:57 +00:00
|
|
|
* Sun Apr 29 2012 Paul Howarth <paul@city-fan.org> - 2.052-1
|
|
|
|
- Update to 2.052
|
|
|
|
- IO::Compress::Zip: force a ZIP64 archive when it contains ≥ 0xFFFF entries
|
|
|
|
- Fix typo in POD (CPAN RT#76130)
|
|
|
|
- Don't need to remove empty directories from buildroot
|
|
|
|
|
2012-02-18 22:41:06 +00:00
|
|
|
* Sat Feb 18 2012 Paul Howarth <paul@city-fan.org> - 2.049-1
|
|
|
|
- Update to 2.049
|
|
|
|
- IO::Compress::Zip:
|
|
|
|
- Error in t/cz-03zlib-v1.t that caused warnings with 5.15 (Perl RT#110736)
|
|
|
|
|
2012-01-29 21:53:55 +00:00
|
|
|
* Sun Jan 29 2012 Paul Howarth <paul@city-fan.org> - 2.048-1
|
|
|
|
- Update to 2.048
|
|
|
|
- Set minimum Perl version to 5.6
|
|
|
|
- Set minimum zlib version to 1.2.0
|
|
|
|
- IO::Compress::Zip:
|
|
|
|
- In one-shot zip, set the Text Flag if "-T" thinks the file is a text file
|
|
|
|
- In one-shot mode, wrote mod time and access time in wrong order in the
|
|
|
|
"UT" extended field
|
|
|
|
- IO::Compress test suite fails with Compress::Raw::Zlib 2.047 and zlib < 1.2.4
|
|
|
|
(CPAN RT#74503)
|
|
|
|
- Resync Compress::Raw::* dependency versions
|
|
|
|
- Add buildreqs for core perl modules, which might be dual-lived
|
|
|
|
- Don't use macros for commands
|
|
|
|
|
2012-01-10 17:57:35 +00:00
|
|
|
* Tue Jan 10 2012 Paul Howarth <paul@city-fan.org> - 2.046-2
|
|
|
|
- Fedora 17 mass rebuild
|
|
|
|
|
2011-12-19 10:41:32 +00:00
|
|
|
* Mon Dec 19 2011 Paul Howarth <paul@city-fan.org> - 2.046-1
|
|
|
|
- Update to 2.046
|
|
|
|
- Minor update to bin/zipdetails
|
|
|
|
- Typo in name of IO::Compress::FAQ.pod
|
|
|
|
- IO::Uncompress::Unzip:
|
|
|
|
- Example for walking a zip file used eof to control the outer loop; this
|
|
|
|
is wrong
|
|
|
|
- IO::Compress::Zip:
|
|
|
|
- Change default for CanonicalName to false (CPAN RT#72974)
|
|
|
|
- Freeze Compress::Raw::* dependency versions until next synchronized release
|
|
|
|
|
2011-12-05 09:19:34 +00:00
|
|
|
* Sun Dec 4 2011 Paul Howarth <paul@city-fan.org> - 2.045-1
|
|
|
|
- Update to 2.045
|
|
|
|
- Restructured IO::Compress::FAQ.pod
|
|
|
|
|
2011-12-04 12:53:16 +00:00
|
|
|
* Sun Dec 4 2011 Paul Howarth <paul@city-fan.org> - 2.044-1
|
|
|
|
- Update to 2.044
|
|
|
|
- Moved FAQ.pod under the lib directory so it can get installed
|
|
|
|
- Added bin/zipdetails
|
|
|
|
- In IO::Compress::Zip, in one-shot mode, enable Zip64 mode if the input
|
|
|
|
file/buffer ≥ 0xFFFFFFFF bytes
|
|
|
|
- Update IO::Compress::FAQ
|
|
|
|
|
2011-11-21 10:25:10 +00:00
|
|
|
* Mon Nov 21 2011 Paul Howarth <paul@city-fan.org> - 2.043-1
|
|
|
|
- Update to 2.043
|
|
|
|
- IO::Compress::Base:
|
|
|
|
- Fixed issue that with handling of Zip files with two (or more) entries
|
|
|
|
that were STORED; symptom is the first is uncompressed ok but the next
|
|
|
|
will terminate early if the size of the file is greater than BlockSize
|
|
|
|
(CPAN RT#72548)
|
|
|
|
|
2011-11-18 09:55:34 +00:00
|
|
|
* Fri Nov 18 2011 Paul Howarth <paul@city-fan.org> - 2.042-1
|
|
|
|
- Update to 2.042
|
|
|
|
- IO::Compress::Zip:
|
|
|
|
- Added exUnixN option to allow creation of the "ux" extra field, which
|
|
|
|
allows 32-bit UID/GID to be stored
|
|
|
|
- In one-shot mode use exUnixN rather than exUnix2 for the UID/GID
|
|
|
|
- IO::Compress::Zlib::Extra::parseExtraField:
|
|
|
|
- Fixed bad test for length of ID field (CPAN RT#72329, CPAN RT#72505)
|
|
|
|
|
2011-10-29 09:11:54 +00:00
|
|
|
* Sat Oct 29 2011 Paul Howarth <paul@city-fan.org> - 2.040-1
|
|
|
|
- Update to 2.040
|
|
|
|
- IO::Compress::Zip:
|
|
|
|
- Added CanonicalName option (note this option is set to true by default)
|
|
|
|
- Added FilterName option
|
|
|
|
- ExtAttr now populates MSDOS attributes
|
|
|
|
- IO::Uncompress::Base:
|
|
|
|
- Fixed issue where setting $\ would corrupt the uncompressed data
|
|
|
|
- t/050interop-*.t:
|
|
|
|
- Handle case when external command contains a whitespace (CPAN RT#71335)
|
|
|
|
- t/105oneshot-zip-only.t:
|
|
|
|
- CanonicalName test failure on Windows (CPAN RT#68926)
|
|
|
|
|
2011-06-22 10:18:32 +00:00
|
|
|
* Wed Jun 22 2011 Paul Howarth <paul@city-fan.org> - 2.037-2
|
|
|
|
- Perl mass rebuild
|
|
|
|
|
2011-06-22 08:58:34 +00:00
|
|
|
* Wed Jun 22 2011 Paul Howarth <paul@city-fan.org> - 2.037-1
|
|
|
|
- Update to 2.037 (support streamed stored content in IO::Uncompress::Unzip)
|
|
|
|
|
2011-06-20 15:04:15 +00:00
|
|
|
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.036-2
|
|
|
|
- Perl mass rebuild
|
|
|
|
|
2011-06-20 12:25:15 +00:00
|
|
|
* Mon Jun 20 2011 Petr Sabata <contyk@redhat.com> - 2.036-1
|
|
|
|
- 2.036 bump (Zip/Unzip enhancements)
|
|
|
|
|
2011-05-07 15:40:16 +00:00
|
|
|
* Sat May 7 2011 Paul Howarth <paul@city-fan.org> - 2.035-1
|
|
|
|
- Update to 2.035 (fix test failure on Windows - CPAN RT#67931)
|
|
|
|
|
2011-05-03 14:35:14 +00:00
|
|
|
* Tue May 3 2011 Petr Sabata <psabata@redhat.com> - 2.034-1
|
|
|
|
- 2.034 bump
|
|
|
|
- Buildroot and defattr cleanup
|
|
|
|
- Correcting BRs/Rs
|
|
|
|
|
2011-02-09 01:24:37 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.033-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-01-13 10:20:17 +00:00
|
|
|
* Thu Jan 13 2011 Paul Howarth <paul@city-fan.org> - 2.033-1
|
|
|
|
- Update to 2.033 (fixed typos and spelling errors - Perl RT#81816)
|
|
|
|
- Use more explicit %%files list
|
|
|
|
- Simplify inclusion of IO::Compress::FAQ
|
|
|
|
- Drop redundant explicit requires of Compress::Raw::{Bzip2,Zlib}
|
|
|
|
- Drop installdirs patch, not needed with perl 5.12
|
|
|
|
- Default installdirs are perl, so no need to specify it explicitly
|
|
|
|
- Make %%summary less generic
|
|
|
|
|
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
|
|
|
|
|
2010-12-17 08:53:33 +00:00
|
|
|
* Fri Dec 17 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.030-4
|
|
|
|
- 661697 rebuild for fixing problems with vendorach/lib
|
|
|
|
|
2010-09-21 10:16:48 +00:00
|
|
|
* 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
|
|
|
|
|
2010-09-20 16:19:56 +00:00
|
|
|
* Thu Sep 16 2010 Ville Skyttä <ville.skytta@iki.fi> - 2.030-2
|
2010-09-21 10:16:48 +00:00
|
|
|
- Install IO::Compress::FAQ into usual POD and man dirs (#634722)
|
2010-09-20 16:19:56 +00:00
|
|
|
|
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
|
|
|
|
|