|
|
|
@ -1,22 +1,30 @@
|
|
|
|
|
# Run time expensive tests
|
|
|
|
|
%bcond_without long_tests
|
|
|
|
|
# Run optional test
|
|
|
|
|
%if ! (0%{?rhel})
|
|
|
|
|
%bcond_without perl_IO_Compress_enables_optional_test
|
|
|
|
|
%else
|
|
|
|
|
%bcond_with perl_IO_Compress_enables_optional_test
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%{?perl_default_filter}
|
|
|
|
|
|
|
|
|
|
Name: perl-IO-Compress
|
|
|
|
|
Version: 2.074
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 2.093
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Read and write compressed data
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
URL: http://search.cpan.org/dist/IO-Compress/
|
|
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/IO-Compress-%{version}.tar.gz
|
|
|
|
|
URL: https://metacpan.org/release/IO-Compress
|
|
|
|
|
Source0: https://cpan.metacpan.org/modules/by-module/IO/IO-Compress-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
# Module Build
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
BuildRequires: findutils
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 5.16
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
|
|
BuildRequires: perl(File::Copy)
|
|
|
|
|
BuildRequires: perl(File::Spec::Functions)
|
|
|
|
|
# Module Runtime
|
|
|
|
@ -24,7 +32,6 @@ BuildRequires: perl(bytes)
|
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
|
BuildRequires: perl(Compress::Raw::Bzip2) >= %{version}
|
|
|
|
|
BuildRequires: perl(Compress::Raw::Zlib) >= %{version}
|
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
|
BuildRequires: perl(constant)
|
|
|
|
|
BuildRequires: perl(Encode)
|
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
@ -42,15 +49,20 @@ BuildRequires: perl(utf8)
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
# Test Suite
|
|
|
|
|
BuildRequires: perl(File::Path)
|
|
|
|
|
BuildRequires: perl(File::Temp)
|
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
|
BuildRequires: perl(threads::shared)
|
|
|
|
|
%if %{with perl_IO_Compress_enables_optional_test}
|
|
|
|
|
# Optional Tests
|
|
|
|
|
BuildRequires: perl(bytes)
|
|
|
|
|
BuildRequires: perl(Data::Dumper)
|
|
|
|
|
BuildRequires: perl(File::Temp)
|
|
|
|
|
BuildRequires: perl(overload)
|
|
|
|
|
# Dual-lived module needs building early in the boot process
|
|
|
|
|
%if !%{defined perl_bootstrap}
|
|
|
|
|
BuildRequires: perl(Test::NoWarnings)
|
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: perl(threads::shared)
|
|
|
|
|
%endif
|
|
|
|
|
# Runtime
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
Requires: perl(File::Glob)
|
|
|
|
@ -87,16 +99,15 @@ chmod -c -x lib/IO/Uncompress/{Adapter/Identity,RawInflate}.pm
|
|
|
|
|
find examples -type f -exec chmod -c -x {} \;
|
|
|
|
|
|
|
|
|
|
# Fix shellbangs in examples
|
|
|
|
|
perl -pi -e 's|^#!/usr/local/bin/perl\b|#!%{__perl}|' examples/io/anycat \
|
|
|
|
|
perl -MConfig -pi -e 's|^#!/usr/local/bin/perl\b|$Config{startperl}|' examples/io/anycat \
|
|
|
|
|
examples/io/bzip2/* examples/io/gzip/* examples/compress-zlib/*
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL
|
|
|
|
|
perl Makefile.PL NO_PACKLIST=1
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make pure_install DESTDIR=%{buildroot} INSTALLDIRS=perl
|
|
|
|
|
find %{buildroot} -type f -name .packlist -delete
|
|
|
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
@ -106,6 +117,7 @@ make test COMPRESS_ZLIB_RUN_%{?with_long_tests:ALL}%{!?with_long_tests:MOST}=1
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc Changes README examples/*
|
|
|
|
|
%{_bindir}/streamzip
|
|
|
|
|
%{_bindir}/zipdetails
|
|
|
|
|
%{perl_privlib}/Compress/
|
|
|
|
|
%{perl_privlib}/File/
|
|
|
|
@ -124,6 +136,7 @@ make test COMPRESS_ZLIB_RUN_%{?with_long_tests:ALL}%{!?with_long_tests:MOST}=1
|
|
|
|
|
%{perl_privlib}/IO/Compress/Zip.pm
|
|
|
|
|
%{perl_privlib}/IO/Compress/Zlib/
|
|
|
|
|
%{perl_privlib}/IO/Uncompress/
|
|
|
|
|
%{_mandir}/man1/streamzip.1*
|
|
|
|
|
%{_mandir}/man1/zipdetails.1*
|
|
|
|
|
%{_mandir}/man3/Compress::Zlib.3*
|
|
|
|
|
%{_mandir}/man3/File::GlobMapper.3*
|
|
|
|
@ -131,8 +144,80 @@ make test COMPRESS_ZLIB_RUN_%{?with_long_tests:ALL}%{!?with_long_tests:MOST}=1
|
|
|
|
|
%{_mandir}/man3/IO::Uncompress::*.3*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Mar 29 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.074-2
|
|
|
|
|
- Rebuild with enable hardening (bug #1636329)
|
|
|
|
|
* Sun Dec 8 2019 Paul Howarth <paul@city-fan.org> - 2.093-1
|
|
|
|
|
- 2.093 bump
|
|
|
|
|
|
|
|
|
|
* Thu Dec 05 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.092-1
|
|
|
|
|
- 2.092 bump
|
|
|
|
|
|
|
|
|
|
* Sun Nov 24 2019 Paul Howarth <paul@city-fan.org> - 2.091-1
|
|
|
|
|
- 2.091 bump
|
|
|
|
|
|
|
|
|
|
* Sun Nov 10 2019 Paul Howarth <paul@city-fan.org> - 2.090-1
|
|
|
|
|
- 2.090 bump
|
|
|
|
|
|
|
|
|
|
* Sun Nov 3 2019 Paul Howarth <paul@city-fan.org> - 2.089-1
|
|
|
|
|
- 2.089 bump
|
|
|
|
|
|
|
|
|
|
* Sun Nov 3 2019 Paul Howarth <paul@city-fan.org> - 2.088-1
|
|
|
|
|
- 2.088 bump
|
|
|
|
|
|
|
|
|
|
* Mon Aug 12 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.087-1
|
|
|
|
|
- 2.087 bump
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.086-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.086-3
|
|
|
|
|
- Perl 5.30 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.086-2
|
|
|
|
|
- Perl 5.30 rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Apr 01 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.086-1
|
|
|
|
|
- 2.086 bump
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.084-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 7 2019 Paul Howarth <paul@city-fan.org> - 2.084-1
|
|
|
|
|
- 2.084 bump
|
|
|
|
|
|
|
|
|
|
* Wed Jan 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.083-1
|
|
|
|
|
- 2.083 bump
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.081-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jun 30 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.081-4
|
|
|
|
|
- Perl 5.28 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Sat Jun 30 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.081-3
|
|
|
|
|
- Perl 5.28 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.081-2
|
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Apr 09 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.081-1
|
|
|
|
|
- 2.081 bump
|
|
|
|
|
|
|
|
|
|
* Wed Apr 4 2018 Paul Howarth <paul@city-fan.org> - 2.080-1
|
|
|
|
|
- 2.080 bump
|
|
|
|
|
|
|
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.074-397
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Dec 18 2017 Petr Pisar <ppisar@redhat.com> - 2.074-396
|
|
|
|
|
- Rewrite shell bangs using running perl
|
|
|
|
|
|
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.074-395
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.074-394
|
|
|
|
|
- Perl 5.26 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.074-393
|
|
|
|
|
- Perl 5.26 rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Feb 20 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.074-1
|
|
|
|
|
- 2.074 bump
|