|
|
@ -8,15 +8,15 @@
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
# Dependency version if different to this package version
|
|
|
|
# Dependency version if different to this package version
|
|
|
|
%global depver 2.101
|
|
|
|
#global depver 2.201
|
|
|
|
|
|
|
|
|
|
|
|
%{?perl_default_filter}
|
|
|
|
%{?perl_default_filter}
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-IO-Compress
|
|
|
|
Name: perl-IO-Compress
|
|
|
|
Version: 2.102
|
|
|
|
Version: 2.212
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Release: 512%{?dist}
|
|
|
|
Summary: Read and write compressed data
|
|
|
|
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
|
|
|
|
URL: https://metacpan.org/release/IO-Compress
|
|
|
|
Source0: https://cpan.metacpan.org/modules/by-module/IO/IO-Compress-%{version}.tar.gz
|
|
|
|
Source0: https://cpan.metacpan.org/modules/by-module/IO/IO-Compress-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
@ -44,10 +44,10 @@ BuildRequires: perl(File::Spec)
|
|
|
|
BuildRequires: perl(IO::File)
|
|
|
|
BuildRequires: perl(IO::File)
|
|
|
|
BuildRequires: perl(IO::Handle)
|
|
|
|
BuildRequires: perl(IO::Handle)
|
|
|
|
BuildRequires: perl(List::Util)
|
|
|
|
BuildRequires: perl(List::Util)
|
|
|
|
BuildRequires: perl(POSIX)
|
|
|
|
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
BuildRequires: perl(Symbol)
|
|
|
|
BuildRequires: perl(Symbol)
|
|
|
|
|
|
|
|
BuildRequires: perl(Time::Local)
|
|
|
|
BuildRequires: perl(utf8)
|
|
|
|
BuildRequires: perl(utf8)
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
# Test Suite
|
|
|
|
# Test Suite
|
|
|
@ -69,7 +69,6 @@ BuildRequires: perl(Test::NoWarnings)
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
# Runtime
|
|
|
|
# Runtime
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
|
|
|
Requires: perl(File::Glob)
|
|
|
|
Requires: perl(File::Glob)
|
|
|
|
|
|
|
|
|
|
|
|
# This is wrapper for different Compress modules
|
|
|
|
# This is wrapper for different Compress modules
|
|
|
@ -134,19 +133,10 @@ perl -MConfig -pi -e 's|^#!/usr/local/bin/perl\b|$Config{startperl}|' examples/i
|
|
|
|
|
|
|
|
|
|
|
|
# Help file to recognise the Perl scripts and normalize shebangs
|
|
|
|
# Help file to recognise the Perl scripts and normalize shebangs
|
|
|
|
for F in `find t -name *.t` `find t -name *.pl`; do
|
|
|
|
for F in `find t -name *.t` `find t -name *.pl`; do
|
|
|
|
if head -1 "$F" | grep -q -e '^#!.*perl' ; then
|
|
|
|
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
|
|
|
|
perl -MConfig -pi -e 's|^#!.*perl\b|$Config{startperl}|' "$F"
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1' "$F"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
chmod +x "$F"
|
|
|
|
chmod +x "$F"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
# Remove release tests
|
|
|
|
|
|
|
|
rm t/999pod.t t/999meta-*.t
|
|
|
|
|
|
|
|
perl -i -ne 'print $_ unless m{^t/999pod\.t}' MANIFEST
|
|
|
|
|
|
|
|
perl -i -ne 'print $_ unless m{^t/999meta-.*\.t}' MANIFEST
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
perl Makefile.PL NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
|
perl Makefile.PL NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
|
%{make_build}
|
|
|
|
%{make_build}
|
|
|
@ -155,10 +145,13 @@ perl Makefile.PL NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
|
%{make_install} INSTALLDIRS=perl
|
|
|
|
%{make_install} INSTALLDIRS=perl
|
|
|
|
|
|
|
|
|
|
|
|
# Install tests
|
|
|
|
# Install tests
|
|
|
|
mkdir -p %{buildroot}/%{_libexecdir}/%{name}
|
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
cp -a examples t %{buildroot}/%{_libexecdir}/%{name}
|
|
|
|
cp -a examples t %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
perl -i -pe "s{\"./bin/\"}{\"%{_bindir}\"}" %{buildroot}/%{_libexecdir}/%{name}/t/011-streamzip.t
|
|
|
|
# Remove release tests
|
|
|
|
cat > %{buildroot}/%{_libexecdir}/%{name}/test << 'EOF'
|
|
|
|
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
|
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
set -e
|
|
|
|
# Lots of tests write into temporary files/directories. The easiest solution
|
|
|
|
# Lots of tests write into temporary files/directories. The easiest solution
|
|
|
@ -167,17 +160,19 @@ DIR=$(mktemp -d)
|
|
|
|
pushd "$DIR"
|
|
|
|
pushd "$DIR"
|
|
|
|
cp -a %{_libexecdir}/%{name}/* ./
|
|
|
|
cp -a %{_libexecdir}/%{name}/* ./
|
|
|
|
unset PERL_CORE
|
|
|
|
unset PERL_CORE
|
|
|
|
|
|
|
|
export TEST_SKIP_VERSION_CHECK=1
|
|
|
|
prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
|
|
|
prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
rm -rf "$DIR"
|
|
|
|
rm -rf "$DIR"
|
|
|
|
EOF
|
|
|
|
EOF
|
|
|
|
chmod +x %{buildroot}/%{_libexecdir}/%{name}/test
|
|
|
|
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
|
|
|
|
|
|
|
|
|
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
unset PERL_CORE
|
|
|
|
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 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
|
|
|
|
# Build using "--without long_tests" to avoid very long tests
|
|
|
|
# (full suite can take nearly an hour on an i7 920)
|
|
|
|
# (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
|
|
|
|
make test COMPRESS_ZLIB_RUN_%{?with_long_tests:ALL}%{!?with_long_tests:MOST}=1
|
|
|
@ -214,12 +209,81 @@ make test COMPRESS_ZLIB_RUN_%{?with_long_tests:ALL}%{!?with_long_tests:MOST}=1
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.102-4
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2.212-512
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
Related: rhbz#1991688
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 2.212-511
|
|
|
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.102-3
|
|
|
|
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 2.204-499
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
- 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
|
|
|
|
* Mon Mar 01 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.102-2
|
|
|
|
- Package tests
|
|
|
|
- Package tests
|
|
|
|