|
|
|
@ -7,24 +7,26 @@
|
|
|
|
|
|
|
|
|
|
Name: perl-Compress-Raw-Bzip2
|
|
|
|
|
Summary: Low-level interface to bzip2 compression library
|
|
|
|
|
Version: 2.081
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Version: 2.101
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
# Other files: GPL+ or Artistic
|
|
|
|
|
## unbundled
|
|
|
|
|
# bzip2-src: BSD
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
URL: http://search.cpan.org/dist/Compress-Raw-Bzip2/
|
|
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/Compress-Raw-Bzip2-%{version}.tar.gz
|
|
|
|
|
URL: https://metacpan.org/release/Compress-Raw-Bzip2
|
|
|
|
|
Source0: https://cpan.metacpan.org/modules/by-module/Compress/Compress-Raw-Bzip2-%{version}.tar.gz
|
|
|
|
|
# Module Build
|
|
|
|
|
BuildRequires: bzip2-devel
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
BuildRequires: findutils
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
|
BuildRequires: perl(ExtUtils::Constant)
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 5.16
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
|
|
BuildRequires: perl(File::Copy)
|
|
|
|
|
BuildRequires: perl(File::Spec::Functions)
|
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
@ -39,14 +41,18 @@ BuildRequires: perl(XSLoader)
|
|
|
|
|
# Test Suite
|
|
|
|
|
BuildRequires: perl(File::Path)
|
|
|
|
|
BuildRequires: perl(threads::shared)
|
|
|
|
|
# Dual-lived module needs rebuilding early in the boot process
|
|
|
|
|
%if !%{defined perl_bootstrap}
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with perl_Compress_Raw_Bzip2_enables_optional_test}
|
|
|
|
|
# Optional Tests
|
|
|
|
|
BuildRequires: perl(File::Temp)
|
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
|
BuildRequires: perl(overload)
|
|
|
|
|
# Dual-lived module needs rebuilding early in the boot process
|
|
|
|
|
%if !%{defined perl_bootstrap}
|
|
|
|
|
# Release tests are deleted
|
|
|
|
|
BuildRequires: perl(Test::NoWarnings)
|
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
|
%endif
|
|
|
|
@ -58,27 +64,89 @@ Requires: perl(XSLoader)
|
|
|
|
|
# Don't "provide" private Perl libs
|
|
|
|
|
%{?perl_default_filter}
|
|
|
|
|
|
|
|
|
|
# Filter modules bundled for tests
|
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(CompTestUtils\\)
|
|
|
|
|
%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 module provides a Perl interface to the bzip2 compression library.
|
|
|
|
|
It is used by IO::Compress::Bzip2.
|
|
|
|
|
|
|
|
|
|
%package tests
|
|
|
|
|
Summary: Tests for %{name}
|
|
|
|
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
Requires: perl-Test-Harness
|
|
|
|
|
%if %{with perl_Compress_Raw_Bzip2_enables_optional_test}
|
|
|
|
|
# Optional Tests
|
|
|
|
|
Requires: perl(File::Temp)
|
|
|
|
|
Requires: perl(overload)
|
|
|
|
|
# Dual-lived module needs rebuilding early in the boot process
|
|
|
|
|
%if !%{defined perl_bootstrap}
|
|
|
|
|
Requires: perl(Test::NoWarnings)
|
|
|
|
|
%endif
|
|
|
|
|
Requires: perl(Scalar::Util)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
|
Tests from %{name}-%{version}. Execute them
|
|
|
|
|
with "%{_libexecdir}/%{name}/test".
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Compress-Raw-Bzip2-%{version}
|
|
|
|
|
# Remove bundled bzip2 sources
|
|
|
|
|
rm -r bzip2-src
|
|
|
|
|
perl -i -ne 'print unless /^bzip2-src\//' MANIFEST
|
|
|
|
|
|
|
|
|
|
%if ! %{defined perl_bootstrap}
|
|
|
|
|
# Remove bundled Test::* modules
|
|
|
|
|
rm -rf t/Test
|
|
|
|
|
perl -i -ne 'print $_ unless m{^t/Test/}' MANIFEST
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Help file to recognise the Perl scripts
|
|
|
|
|
for F in t/*.t; do
|
|
|
|
|
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1' "$F"
|
|
|
|
|
chmod +x "$F"
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# Remove release tests
|
|
|
|
|
rm t/99pod.t t/meta-*.t
|
|
|
|
|
perl -i -ne 'print $_ unless m{^t/99pod\.t}' MANIFEST
|
|
|
|
|
perl -i -ne 'print $_ unless m{^t/meta-.*\.t}' MANIFEST
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
BUILD_BZIP2=0
|
|
|
|
|
BZIP2_LIB=%{_libdir}
|
|
|
|
|
export BUILD_BZIP2 BZIP2_LIB
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
|
|
%{make_build}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
|
find %{buildroot} -type f -name .packlist -delete
|
|
|
|
|
%{make_install}
|
|
|
|
|
find %{buildroot} -type f -name '*.bs' -empty -delete
|
|
|
|
|
|
|
|
|
|
# Install tests
|
|
|
|
|
mkdir -p %{buildroot}/%{_libexecdir}/%{name}
|
|
|
|
|
cp -a t %{buildroot}/%{_libexecdir}/%{name}
|
|
|
|
|
perl -i -pe "s{DIR => '.'}{DIR => '/tmp'}" %{buildroot}/%{_libexecdir}/%{name}/t/compress/CompTestUtils.pm
|
|
|
|
|
cat > %{buildroot}/%{_libexecdir}/%{name}/test << 'EOF'
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
unset PERL_CORE
|
|
|
|
|
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
|
|
|
|
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}')
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
@ -87,9 +155,106 @@ make test
|
|
|
|
|
%{perl_vendorarch}/Compress/
|
|
|
|
|
%{_mandir}/man3/Compress::Raw::Bzip2.3*
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Apr 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 2.081-1
|
|
|
|
|
- Rebuilt for MSVSphere 8.9
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.101-5
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.101-4
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Mon Feb 22 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.101-3
|
|
|
|
|
- Fix dependencies for ELN
|
|
|
|
|
|
|
|
|
|
* Mon Feb 22 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.101-2
|
|
|
|
|
- Package tests
|
|
|
|
|
|
|
|
|
|
* 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 07 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.100-1
|
|
|
|
|
- 2.100 bump
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|
* Mon Jul 13 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
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 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
|
|
|
|
|
|
|
|
|
|
* 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 07 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.084-1
|
|
|
|
|
- 2.084 bump
|
|
|
|
|
|
|
|
|
|
* Wed Jan 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.083-1
|
|
|
|
|
- 2.083 bump
|
|
|
|
|
|
|
|
|
|
* Mon Jul 30 2018 Petr Pisar <ppisar@redhat.com> - 2.081-5
|
|
|
|
|
- Prune bundled bzip2 sources
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.081-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jun 30 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.081-3
|
|
|
|
|
- Perl 5.28 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Tue Jun 26 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
|
|
|
|
|