Compare commits
1 Commits
c8-stream-
...
c10
| Author | SHA1 | Date | |
|---|---|---|---|
| fdf471b5b9 |
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
SOURCES/IO-Compress-2.093.tar.gz
|
||||
IO-Compress-2.212.tar.gz
|
||||
|
||||
@ -1 +0,0 @@
|
||||
d0fa0c576a52028fb5c86455cc5d7897f5d194f9 SOURCES/IO-Compress-2.093.tar.gz
|
||||
@ -7,13 +7,16 @@
|
||||
%bcond_with perl_IO_Compress_enables_optional_test
|
||||
%endif
|
||||
|
||||
# Dependency version if different to this package version
|
||||
#global depver 2.201
|
||||
|
||||
%{?perl_default_filter}
|
||||
|
||||
Name: perl-IO-Compress
|
||||
Version: 2.093
|
||||
Release: 1%{?dist}
|
||||
Version: 2.212
|
||||
Release: 512%{?dist}
|
||||
Summary: Read and write compressed data
|
||||
License: GPL+ or Artistic
|
||||
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
||||
URL: https://metacpan.org/release/IO-Compress
|
||||
Source0: https://cpan.metacpan.org/modules/by-module/IO/IO-Compress-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
@ -30,8 +33,8 @@ BuildRequires: perl(File::Spec::Functions)
|
||||
# Module Runtime
|
||||
BuildRequires: perl(bytes)
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(Compress::Raw::Bzip2) >= %{version}
|
||||
BuildRequires: perl(Compress::Raw::Zlib) >= %{version}
|
||||
BuildRequires: perl(Compress::Raw::Bzip2) >= %{?depver}%{!?depver:%{version}}
|
||||
BuildRequires: perl(Compress::Raw::Zlib) >= %{?depver}%{!?depver:%{version}}
|
||||
BuildRequires: perl(constant)
|
||||
BuildRequires: perl(Encode)
|
||||
BuildRequires: perl(Exporter)
|
||||
@ -41,16 +44,19 @@ BuildRequires: perl(File::Spec)
|
||||
BuildRequires: perl(IO::File)
|
||||
BuildRequires: perl(IO::Handle)
|
||||
BuildRequires: perl(List::Util)
|
||||
BuildRequires: perl(POSIX)
|
||||
BuildRequires: perl(Scalar::Util)
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(Symbol)
|
||||
BuildRequires: perl(Time::Local)
|
||||
BuildRequires: perl(utf8)
|
||||
BuildRequires: perl(warnings)
|
||||
# Test Suite
|
||||
BuildRequires: perl(File::Path)
|
||||
BuildRequires: perl(lib)
|
||||
BuildRequires: perl(threads::shared)
|
||||
%if !%{defined perl_bootstrap}
|
||||
BuildRequires: perl(Test::More)
|
||||
%endif
|
||||
%if %{with perl_IO_Compress_enables_optional_test}
|
||||
# Optional Tests
|
||||
BuildRequires: perl(bytes)
|
||||
@ -60,11 +66,9 @@ 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
|
||||
%endif
|
||||
# Runtime
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(File::Glob)
|
||||
|
||||
# This is wrapper for different Compress modules
|
||||
@ -77,6 +81,16 @@ Provides: perl-IO-Compress-Bzip2 = %{version}-%{release}
|
||||
Obsoletes: perl-IO-Compress-Zlib < %{version}-%{release}
|
||||
Provides: perl-IO-Compress-Zlib = %{version}-%{release}
|
||||
|
||||
# Filter modules bundled for tests
|
||||
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(CompTestUtils\\)
|
||||
%global __requires_exclude %{__requires_exclude}|^perl\\(.*\.pl)\s*$
|
||||
%if %{defined perl_bootstrap}
|
||||
%global __requires_exclude %{__requires_exclude}|^perl\\(Test::Builder)\s*$
|
||||
%global __requires_exclude %{__requires_exclude}|^perl\\(Test::More)\s*$
|
||||
%global __requires_exclude %{__requires_exclude}|^perl\\(Test::Simple)\s*$
|
||||
%endif
|
||||
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
|
||||
|
||||
%description
|
||||
This distribution provides a Perl interface to allow reading and writing of
|
||||
compressed data created with the zlib and bzip2 libraries.
|
||||
@ -91,6 +105,15 @@ included with the IO-Compress distribution:
|
||||
* IO-Compress-Bzip2
|
||||
* IO-Compress-Base
|
||||
|
||||
%package tests
|
||||
Summary: Tests for %{name}
|
||||
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
Requires: perl-Test-Harness
|
||||
|
||||
%description tests
|
||||
Tests from %{name}-%{version}. Execute them
|
||||
with "%{_libexecdir}/%{name}/test".
|
||||
|
||||
%prep
|
||||
%setup -q -n IO-Compress-%{version}
|
||||
|
||||
@ -98,19 +121,58 @@ included with the IO-Compress distribution:
|
||||
chmod -c -x lib/IO/Uncompress/{Adapter/Identity,RawInflate}.pm
|
||||
find examples -type f -exec chmod -c -x {} \;
|
||||
|
||||
%if ! %{defined perl_bootstrap}
|
||||
# Remove bundled Test::* modules
|
||||
rm -rf t/Test
|
||||
perl -i -ne 'print $_ unless m{^t/Test/}' MANIFEST
|
||||
%endif
|
||||
|
||||
# Fix shellbangs in examples
|
||||
perl -MConfig -pi -e 's|^#!/usr/local/bin/perl\b|$Config{startperl}|' examples/io/anycat \
|
||||
examples/io/bzip2/* examples/io/gzip/* examples/compress-zlib/*
|
||||
|
||||
# Help file to recognise the Perl scripts and normalize shebangs
|
||||
for F in `find t -name *.t` `find t -name *.pl`; do
|
||||
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
|
||||
chmod +x "$F"
|
||||
done
|
||||
|
||||
%build
|
||||
perl Makefile.PL NO_PACKLIST=1
|
||||
make %{?_smp_mflags}
|
||||
perl Makefile.PL NO_PACKLIST=1 NO_PERLLOCAL=1
|
||||
%{make_build}
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=%{buildroot} INSTALLDIRS=perl
|
||||
%{make_install} INSTALLDIRS=perl
|
||||
|
||||
# Install tests
|
||||
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
||||
cp -a examples t %{buildroot}%{_libexecdir}/%{name}
|
||||
# Remove release tests
|
||||
rm %{buildroot}%{_libexecdir}/%{name}/t/999pod.t
|
||||
rm %{buildroot}%{_libexecdir}/%{name}/t/999meta-*.t
|
||||
perl -i -pe "s{\"./bin/\"}{\"%{_bindir}\"}" %{buildroot}%{_libexecdir}/%{name}/t/011-streamzip.t
|
||||
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
||||
#!/bin/sh
|
||||
set -e
|
||||
# Lots of tests write into temporary files/directories. The easiest solution
|
||||
# is to copy the tests into a writable directory and execute them from there.
|
||||
DIR=$(mktemp -d)
|
||||
pushd "$DIR"
|
||||
cp -a %{_libexecdir}/%{name}/* ./
|
||||
unset PERL_CORE
|
||||
export TEST_SKIP_VERSION_CHECK=1
|
||||
prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
||||
popd
|
||||
rm -rf "$DIR"
|
||||
EOF
|
||||
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
||||
|
||||
%{_fixperms} -c %{buildroot}
|
||||
|
||||
%check
|
||||
unset PERL_CORE
|
||||
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
|
||||
export TEST_SKIP_VERSION_CHECK=1
|
||||
# Build using "--without long_tests" to avoid very long tests
|
||||
# (full suite can take nearly an hour on an i7 920)
|
||||
make test COMPRESS_ZLIB_RUN_%{?with_long_tests:ALL}%{!?with_long_tests:MOST}=1
|
||||
@ -143,7 +205,120 @@ make test COMPRESS_ZLIB_RUN_%{?with_long_tests:ALL}%{!?with_long_tests:MOST}=1
|
||||
%{_mandir}/man3/IO::Compress::*.3*
|
||||
%{_mandir}/man3/IO::Uncompress::*.3*
|
||||
|
||||
%files tests
|
||||
%{_libexecdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2.212-512
|
||||
- Bump release for October 2024 mass rebuild:
|
||||
Resolves: RHEL-64018
|
||||
|
||||
* Fri Aug 09 2024 Jitka Plesnikova <jplesnik@redhat.com> - 2.212-511
|
||||
- Perl 5.40 re-rebuild of bootstrapped packages
|
||||
|
||||
* Thu Jul 18 2024 Jitka Plesnikova <jplesnik@redhat.com> - 2.212-510
|
||||
- Increase release to favour standalone package
|
||||
|
||||
* Tue Jul 16 2024 Jitka Plesnikova <jplesnik@redhat.com> - 2.212-1
|
||||
- 2.212 bump
|
||||
|
||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.206-4
|
||||
- Bump release for June 2024 mass rebuild
|
||||
|
||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.206-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.206-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Wed Jul 26 2023 Jitka Plesnikova <jplesnik@redhat.com> - 2.206-1
|
||||
- 2.206 bump (rhbz#2225676)
|
||||
|
||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.205-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Mon Jul 17 2023 Jitka Plesnikova <jplesnik@redhat.com> - 2.205-1
|
||||
- 2.205 bump (rhbz#2223222)
|
||||
|
||||
* Wed Jul 12 2023 Jitka Plesnikova <jplesnik@redhat.com> - 2.204-500
|
||||
- Perl 5.38 re-rebuild of bootstrapped packages
|
||||
|
||||
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 2.204-499
|
||||
- Increase release to favour standalone package
|
||||
|
||||
* Thu Feb 09 2023 Jitka Plesnikova <jplesnik@redhat.com> - 2.204-1
|
||||
- 2.204 bump
|
||||
|
||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.201-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.201-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Thu Jul 14 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2.201-2
|
||||
- Disable version check in tests
|
||||
|
||||
* Sat Jun 25 2022 Paul Howarth <paul@city-fan.org> - 2.201-1
|
||||
- 2.201 bump
|
||||
|
||||
* Fri Jun 03 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2.106-489
|
||||
- Perl 5.36 re-rebuild of bootstrapped packages
|
||||
|
||||
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2.106-488
|
||||
- Increase release to favour standalone package
|
||||
|
||||
* Mon Apr 25 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2.103-1
|
||||
- 2.106 bump
|
||||
|
||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.102-480
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.102-479
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Mon May 24 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.102-478
|
||||
- Perl 5.34 re-rebuild of bootstrapped packages
|
||||
|
||||
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.102-477
|
||||
- Increase release to favour standalone package
|
||||
|
||||
* Mon Mar 01 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.102-2
|
||||
- Package tests
|
||||
|
||||
* Sun Feb 28 2021 Paul Howarth <paul@city-fan.org> - 2.102-1
|
||||
- 2.102 bump
|
||||
|
||||
* Sat Feb 20 2021 Paul Howarth <paul@city-fan.org> - 2.101-1
|
||||
- 2.101 bump
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.100-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Thu Jan 7 2021 Paul Howarth <paul@city-fan.org> - 2.100-1
|
||||
- 2.100 bump
|
||||
- Use %%{make_build} and %%{make_install}
|
||||
|
||||
* Sat Aug 1 2020 Paul Howarth <paul@city-fan.org> - 2.096-1
|
||||
- 2.096 bump
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.095-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Tue Jul 21 2020 Petr Pisar <ppisar@redhat.com> - 2.095-1
|
||||
- 2.095 bump
|
||||
|
||||
* Tue Jul 14 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.094-1
|
||||
- 2.094 bump
|
||||
|
||||
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.093-457
|
||||
- Perl 5.32 re-rebuild of bootstrapped packages
|
||||
|
||||
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.093-456
|
||||
- Increase release to favour standalone package
|
||||
|
||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.093-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Sun Dec 8 2019 Paul Howarth <paul@city-fan.org> - 2.093-1
|
||||
- 2.093 bump
|
||||
|
||||
Loading…
Reference in New Issue
Block a user