bcc8e8e
%bcond_without long_tests
93153e3
%{?perl_default_filter}
93153e3
93153e3
Name:           perl-IO-Compress
0cb6be5
Version:        2.060
ace1e9f
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/
4030db4
Source0:        http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/IO-Compress-%{version}.tar.gz
93153e3
BuildArch:      noarch
1038f72
BuildRequires:  perl(Carp)
1038f72
BuildRequires:  perl(Compress::Raw::Bzip2) >= %{version}
1038f72
BuildRequires:  perl(Compress::Raw::Zlib) >= %{version}
4030db4
BuildRequires:  perl(constant)
1038f72
BuildRequires:  perl(Encode)
1038f72
BuildRequires:  perl(Exporter)
93153e3
BuildRequires:  perl(ExtUtils::MakeMaker)
Petr Šabata cd8c420
BuildRequires:  perl(File::Path)
1038f72
BuildRequires:  perl(File::Spec)
Petr Šabata cd8c420
BuildRequires:  perl(File::Temp)
78f2ca0
BuildRequires:  perl(IO::File)
78f2ca0
BuildRequires:  perl(IO::Handle)
78f2ca0
BuildRequires:  perl(IO::Seekable)
4030db4
BuildRequires:  perl(lib)
1038f72
BuildRequires:  perl(List::Util)
78f2ca0
BuildRequires:  perl(Scalar::Util)
4030db4
# Dual-lived module needs building early in the boot process
d331a3c
%if !%{defined perl_bootstrap}
1038f72
BuildRequires:  perl(Test::NoWarnings)
1038f72
BuildRequires:  perl(Test::Pod) >= 1.00
d331a3c
%endif
1038f72
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
93153e3
# this is wrapper for different Compress modules
93153e3
Obsoletes:      perl-Compress-Zlib < %{version}-%{release}
4030db4
Provides:       perl-Compress-Zlib = %{version}-%{release}
93153e3
Obsoletes:      perl-IO-Compress-Base < %{version}-%{release}
4030db4
Provides:       perl-IO-Compress-Base = %{version}-%{release}
93153e3
Obsoletes:      perl-IO-Compress-Bzip2 < %{version}-%{release}
4030db4
Provides:       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
* 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
682f571
chmod -c -x lib/IO/Uncompress/{Adapter/Identity,RawInflate}.pm
d18ae80
find examples -type f -exec chmod -c -x {} \;
d18ae80
6460ec9
# Fix shellbangs in examples
1038f72
perl -pi -e 's|^#!/usr/local/bin/perl\b|#!%{__perl}|' examples/io/anycat \
bcc8e8e
        examples/io/bzip2/* examples/io/gzip/* examples/compress-zlib/*
93153e3
93153e3
%build
4030db4
perl Makefile.PL
93153e3
make %{?_smp_mflags}
93153e3
93153e3
%install
682f571
make pure_install DESTDIR=%{buildroot} INSTALLDIRS=perl
d18ae80
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
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/*
b99f77c
%{_bindir}/zipdetails
6460ec9
%{perl_privlib}/Compress/
6460ec9
%{perl_privlib}/File/
b99f77c
%dir %{perl_privlib}/IO/
b99f77c
%dir %{perl_privlib}/IO/Compress/
b99f77c
%doc %{perl_privlib}/IO/Compress/FAQ.pod
b99f77c
%{perl_privlib}/IO/Compress/Adapter/
b99f77c
%{perl_privlib}/IO/Compress/Base/
b99f77c
%{perl_privlib}/IO/Compress/Base.pm
b99f77c
%{perl_privlib}/IO/Compress/Bzip2.pm
b99f77c
%{perl_privlib}/IO/Compress/Deflate.pm
b99f77c
%{perl_privlib}/IO/Compress/Gzip/
b99f77c
%{perl_privlib}/IO/Compress/Gzip.pm
b99f77c
%{perl_privlib}/IO/Compress/RawDeflate.pm
b99f77c
%{perl_privlib}/IO/Compress/Zip/
b99f77c
%{perl_privlib}/IO/Compress/Zip.pm
b99f77c
%{perl_privlib}/IO/Compress/Zlib/
b99f77c
%{perl_privlib}/IO/Uncompress/
b99f77c
%{_mandir}/man1/zipdetails.1*
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
ace1e9f
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.060-2
ace1e9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ace1e9f
0cb6be5
* Tue Jan  8 2013 Paul Howarth <paul@city-fan.org> - 2.060-1
0cb6be5
- Update to 2.060
0cb6be5
  - Updated POD
0cb6be5
    - CPAN RT#82138: Example code not clear - gunzip() takes filenames!
0cb6be5
  - IO::Compress::Base
0cb6be5
    - Remove the flush call when opening a filehandle
0cb6be5
ef929bf
* Sun Dec 16 2012 Paul Howarth <paul@city-fan.org> - 2.059-1
ef929bf
- Update to 2.059
ef929bf
  - IO::Compress::Base
0cb6be5
    - Added "Encode" option (fixes the encoding half of CPAN RT#42656)
ef929bf
Petr Šabata cd8c420
* Mon Nov 26 2012 Petr Šabata <contyk@redhat.com> - 2.058-2
Petr Šabata cd8c420
- Add missing File::* buildtime dependencies
Petr Šabata cd8c420
682f571
* Tue Nov 13 2012 Paul Howarth <paul@city-fan.org> - 2.058-1
682f571
- Update to 2.058
682f571
  - IO::Compress::Zip
682f571
    - Allow member name and Zip Comment to be "0"
682f571
  - IO::Compress::Base::Common
682f571
    - Remove "-r" test - the file open will catch this
682f571
    - IO::Compress::Base::Common returned that it could not read readable files
682f571
      in NFS (CPAN RT#80855)
682f571
  - Install to 'site' instead of 'perl' when perl version is 5.11+
682f571
    (CPAN RT#79820)
682f571
  - General performance improvements
682f571
  - Fix failing 01misc.t subtest introduced in 2.057 (CPAN RT#81119)
682f571
- Explicitly install to 'perl' directories
682f571
4030db4
* Mon Aug  6 2012 Paul Howarth <paul@city-fan.org> - 2.055-1
4030db4
- Update to 2.055
4030db4
  - FAQ: added a few paragraphs on how to deal with pbzip2 files
4030db4
    (CPAN RT#77743)
4030db4
  - Compress::Zip: speed up compress, uncompress, memGzip and memGunzip
4030db4
    (CPAN RT#77350)
4030db4
- BR: perl(lib)
4030db4
- Drop BR: perl(Test::Builder) and perl(Test::More) as they're bundled
4030db4
- Drop BR: perl(Config), perl(Fcntl), perl(File::Copy), perl(File::Glob),
4030db4
  perl(POSIX) and perl(Symbol) as they're not dual-lived
4030db4
- Drop redundant explicit require for perl(Exporter)
4030db4
- Don't use macros for commands
4030db4
71e2bb5
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.052-5
71e2bb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
71e2bb5
d987b5d
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 2.052-4
d987b5d
- Perl 5.16 re-rebuild of bootstrapped packages
d987b5d
5664e15
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 2.052-3
5664e15
- Perl 5.16 rebuild
5664e15
d331a3c
* Fri Jun 01 2012 Petr Pisar <ppisar@redhat.com> - 2.052-2
d331a3c
- Omit optional Test::Pod and Test::NoWarnings tests on bootstrap
d331a3c
d18ae80
* Sun Apr 29 2012 Paul Howarth <paul@city-fan.org> - 2.052-1
d18ae80
- Update to 2.052
d18ae80
  - IO::Compress::Zip: force a ZIP64 archive when it contains ≥ 0xFFFF entries
d18ae80
  - Fix typo in POD (CPAN RT#76130)
d18ae80
- Don't need to remove empty directories from buildroot
d18ae80
0c79f17
* Sat Feb 18 2012 Paul Howarth <paul@city-fan.org> - 2.049-1
0c79f17
- Update to 2.049
0c79f17
  - IO::Compress::Zip:
0c79f17
    - Error in t/cz-03zlib-v1.t that caused warnings with 5.15 (Perl RT#110736)
0c79f17
1038f72
* Sun Jan 29 2012 Paul Howarth <paul@city-fan.org> - 2.048-1
1038f72
- Update to 2.048
1038f72
  - Set minimum Perl version to 5.6
1038f72
  - Set minimum zlib version to 1.2.0
1038f72
  - IO::Compress::Zip:
1038f72
    - In one-shot zip, set the Text Flag if "-T" thinks the file is a text file
1038f72
    - In one-shot mode, wrote mod time and access time in wrong order in the
1038f72
      "UT" extended field
1038f72
  - IO::Compress test suite fails with Compress::Raw::Zlib 2.047 and zlib < 1.2.4
1038f72
    (CPAN RT#74503)
1038f72
- Resync Compress::Raw::* dependency versions
1038f72
- Add buildreqs for core perl modules, which might be dual-lived
1038f72
- Don't use macros for commands
1038f72
a14660a
* Tue Jan 10 2012 Paul Howarth <paul@city-fan.org> - 2.046-2
a14660a
- Fedora 17 mass rebuild
a14660a
dda82fb
* Mon Dec 19 2011 Paul Howarth <paul@city-fan.org> - 2.046-1
dda82fb
- Update to 2.046
dda82fb
  - Minor update to bin/zipdetails
dda82fb
  - Typo in name of IO::Compress::FAQ.pod
dda82fb
  - IO::Uncompress::Unzip:
dda82fb
    - Example for walking a zip file used eof to control the outer loop; this
dda82fb
      is wrong
dda82fb
  - IO::Compress::Zip:
dda82fb
    - Change default for CanonicalName to false (CPAN RT#72974)
dda82fb
- Freeze Compress::Raw::* dependency versions until next synchronized release
dda82fb
03dee1f
* Sun Dec  4 2011 Paul Howarth <paul@city-fan.org> - 2.045-1
03dee1f
- Update to 2.045
03dee1f
  - Restructured IO::Compress::FAQ.pod
03dee1f
b99f77c
* Sun Dec  4 2011 Paul Howarth <paul@city-fan.org> - 2.044-1
b99f77c
- Update to 2.044
b99f77c
  - Moved FAQ.pod under the lib directory so it can get installed
b99f77c
  - Added bin/zipdetails
b99f77c
  - In IO::Compress::Zip, in one-shot mode, enable Zip64 mode if the input
b99f77c
    file/buffer ≥ 0xFFFFFFFF bytes
b99f77c
  - Update IO::Compress::FAQ
b99f77c
00cd501
* Mon Nov 21 2011 Paul Howarth <paul@city-fan.org> - 2.043-1
00cd501
- Update to 2.043
00cd501
  - IO::Compress::Base:
00cd501
    - Fixed issue that with handling of Zip files with two (or more) entries
00cd501
      that were STORED; symptom is the first is uncompressed ok but the next
00cd501
      will terminate early if the size of the file is greater than BlockSize
00cd501
      (CPAN RT#72548)
00cd501
3a9ffa1
* Fri Nov 18 2011 Paul Howarth <paul@city-fan.org> - 2.042-1
3a9ffa1
- Update to 2.042
3a9ffa1
  - IO::Compress::Zip:
3a9ffa1
    - Added exUnixN option to allow creation of the "ux" extra field, which
3a9ffa1
      allows 32-bit UID/GID to be stored
3a9ffa1
    - In one-shot mode use exUnixN rather than exUnix2 for the UID/GID
3a9ffa1
  - IO::Compress::Zlib::Extra::parseExtraField:
3a9ffa1
    - Fixed bad test for length of ID field (CPAN RT#72329, CPAN RT#72505)
3a9ffa1
d937e1f
* Sat Oct 29 2011 Paul Howarth <paul@city-fan.org> - 2.040-1
d937e1f
- Update to 2.040
d937e1f
  - IO::Compress::Zip:
d937e1f
    - Added CanonicalName option (note this option is set to true by default)
d937e1f
    - Added FilterName option
d937e1f
    - ExtAttr now populates MSDOS attributes
d937e1f
  - IO::Uncompress::Base:
d937e1f
    - Fixed issue where setting $\ would corrupt the uncompressed data
d937e1f
  - t/050interop-*.t:
d937e1f
    - Handle case when external command contains a whitespace (CPAN RT#71335)
d937e1f
  - t/105oneshot-zip-only.t:
d937e1f
    - CanonicalName test failure on Windows (CPAN RT#68926)
d937e1f
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