|
|
|
@ -7,13 +7,13 @@
|
|
|
|
|
|
|
|
|
|
Name: perl-Compress-Bzip2
|
|
|
|
|
Version: 2.28
|
|
|
|
|
Release: 21%{?dist}
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Summary: Interface to Bzip2 compression library
|
|
|
|
|
# bzlib-src/win-tst-dlltest.c (unbundled): Public Domain
|
|
|
|
|
# bzlib-src/LICENSE (unbundled): BSD-4-Clause
|
|
|
|
|
# bzlib-src/LICENSE (unbundled): BSD
|
|
|
|
|
# bzlib-src/manual.ps (unbundled): GPL+ with exception and OFL
|
|
|
|
|
# other files: GPL-1.0-or-later OR Artistic-1.0-Perl
|
|
|
|
|
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
|
|
|
|
# other files: GPL+ or Artistic
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
URL: https://metacpan.org/release/Compress-Bzip2
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RU/RURBAN/Compress-Bzip2-%{version}.tar.gz
|
|
|
|
|
BuildRequires: bzip2-devel >= 1.0.5
|
|
|
|
@ -50,6 +50,7 @@ BuildRequires: perl(Test::More)
|
|
|
|
|
%if !%{defined perl_bootstrap} && %{with perl_Compress_Bzip2_enables_optional_test}
|
|
|
|
|
BuildRequires: perl(Test::LeakTrace)
|
|
|
|
|
%endif
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
Requires: perl(constant) >= 1.04
|
|
|
|
|
|
|
|
|
|
%{?perl_default_filter}
|
|
|
|
@ -62,30 +63,12 @@ library. A relevant subset of the functionality provided by Bzip2 is available
|
|
|
|
|
in Compress::Bzip2. Compress::Bzip2 is not well integrated into PerlIO, use
|
|
|
|
|
the preferred IO::Compress::Bzip2 instead.
|
|
|
|
|
|
|
|
|
|
%package tests
|
|
|
|
|
Summary: Tests for %{name}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
Requires: bash
|
|
|
|
|
Requires: bzip2
|
|
|
|
|
Requires: coreutils
|
|
|
|
|
Requires: perl-Test-Harness
|
|
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
|
Tests from %{name}. Execute them
|
|
|
|
|
with "%{_libexecdir}/%{name}/test".
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Compress-Bzip2-%{version}
|
|
|
|
|
# Remove bundled bzip2 library
|
|
|
|
|
find bzlib-src -mindepth 1 -type f \! -name 'sample*' -delete
|
|
|
|
|
perl -i -ne 'print $_ unless m{^bzlib-src/}' MANIFEST
|
|
|
|
|
find bzlib-src -type f >>MANIFEST
|
|
|
|
|
# Help generators to recognize Perl scripts
|
|
|
|
|
for F in t/*.t; do
|
|
|
|
|
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F"
|
|
|
|
|
chmod +x "$F"
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 \
|
|
|
|
@ -94,31 +77,7 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 \
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
# Install tests
|
|
|
|
|
mkdir -p %{buildroot}/%{_libexecdir}/%{name}
|
|
|
|
|
cp -a t %{buildroot}/%{_libexecdir}/%{name}
|
|
|
|
|
# Remove author tests
|
|
|
|
|
rm -f %{buildroot}/%{_libexecdir}/%{name}/t/900*
|
|
|
|
|
# Remove memory usage test
|
|
|
|
|
rm -f %{buildroot}/%{_libexecdir}/%{name}/t/090-memory-usage.pl
|
|
|
|
|
mkdir -p %{buildroot}/%{_libexecdir}/%{name}/bzlib-src
|
|
|
|
|
for F in sample0.bz2 sample0.ref sample1.bz2 sample1.ref sample2.bz2 sample2.ref sample3.bz2 sample3.ref; do
|
|
|
|
|
cp "bzlib-src/$F" %{buildroot}/%{_libexecdir}/%{name}/bzlib-src/
|
|
|
|
|
done
|
|
|
|
|
cp -a config.in %{buildroot}/%{_libexecdir}/%{name}/
|
|
|
|
|
cat > %{buildroot}/%{_libexecdir}/%{name}/test << 'EOF'
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
set -e
|
|
|
|
|
# Some 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}/* ./
|
|
|
|
|
prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
|
|
|
|
popd
|
|
|
|
|
rm -rf "$DIR"
|
|
|
|
|
EOF
|
|
|
|
|
chmod +x %{buildroot}/%{_libexecdir}/%{name}/test
|
|
|
|
|
find %{buildroot} -type f -name '*.bs' -empty -delete
|
|
|
|
|
%{_fixperms} %{buildroot}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
@ -131,66 +90,13 @@ make test
|
|
|
|
|
%{perl_vendorarch}/auto/Compress/
|
|
|
|
|
%{_mandir}/man3/*.3pm*
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2.28-21
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
* Fri Aug 09 2024 Jitka Plesnikova <jplesnik@redhat.com> - 2.28-20
|
|
|
|
|
- Perl 5.40 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Thu Aug 08 2024 Troy Dawson <tdawson@redhat.com> - 2.28-19
|
|
|
|
|
- Bump release for Aug 2024 java mass rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.28-18
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.28-17
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.28-16
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.28-15
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 12 2023 Jitka Plesnikova <jplesnik@redhat.com> - 2.28-14
|
|
|
|
|
- Perl 5.38 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 2.28-13
|
|
|
|
|
- Perl 5.38 rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.28-12
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Nov 25 2022 Michal Josef Špaček <mspacek@redhat.com> - 2.28-11
|
|
|
|
|
- Cleanup build in spec file
|
|
|
|
|
- Package tests
|
|
|
|
|
- Update license to SPDX format
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.28-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 03 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2.28-9
|
|
|
|
|
- Perl 5.36 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2.28-8
|
|
|
|
|
- Perl 5.36 rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.28-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.28-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon May 24 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.28-5
|
|
|
|
|
- Perl 5.34 re-rebuild of bootstrapped packages
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.28-5
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.28-4
|
|
|
|
|
- Perl 5.34 rebuild
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.28-4
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.28-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|