c12725
# Run optional tests
c12725
%if ! (0%{?rhel})
c12725
%bcond_without perl_Compress_Bzip2_enables_optional_test
c12725
%else
c12725
%bcond_with perl_Compress_Bzip2_enables_optional_test
c12725
%endif
c12725
c12725
Name:           perl-Compress-Bzip2
c12725
Version:        2.28
c12725
Release:        5%{?dist}
c12725
Summary:        Interface to Bzip2 compression library
c12725
# bzlib-src/win-tst-dlltest.c (unbundled):  Public Domain
c12725
# bzlib-src/LICENSE (unbundled):            BSD
c12725
# bzlib-src/manual.ps (unbundled):          GPL+ with exception and OFL
c12725
# other files:                              GPL+ or Artistic
c12725
License:        GPL+ or Artistic
c12725
URL:            https://metacpan.org/release/Compress-Bzip2
c12725
Source0:        https://cpan.metacpan.org/authors/id/R/RU/RURBAN/Compress-Bzip2-%{version}.tar.gz
c12725
BuildRequires:  bzip2-devel >= 1.0.5
c12725
BuildRequires:  coreutils
c12725
BuildRequires:  findutils
c12725
BuildRequires:  gcc
c12725
BuildRequires:  make
c12725
BuildRequires:  perl-devel
c12725
BuildRequires:  perl-generators
c12725
BuildRequires:  perl-interpreter
c12725
BuildRequires:  perl(:VERSION) >= 5.8.1
c12725
BuildRequires:  perl(Config)
c12725
BuildRequires:  perl(File::Copy)
c12725
BuildRequires:  perl(File::Spec)
c12725
BuildRequires:  perl(File::Spec::Functions)
c12725
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
c12725
BuildRequires:  perl(strict)
c12725
# VMS::Filespec not needed
c12725
# Run-time:
c12725
BuildRequires:  perl(AutoLoader)
c12725
BuildRequires:  perl(Carp)
c12725
BuildRequires:  perl(constant) >= 1.04
c12725
BuildRequires:  perl(Exporter)
c12725
BuildRequires:  perl(Fcntl)
c12725
BuildRequires:  perl(Getopt::Std)
c12725
BuildRequires:  perl(warnings)
c12725
BuildRequires:  perl(XSLoader)
c12725
# Tests:
c12725
BuildRequires:  perl(Cwd)
c12725
# Memory::Usage not used
c12725
BuildRequires:  perl(Test::More)
c12725
# Test::Kwalitee not used
c12725
# Optional tests:
c12725
%if !%{defined perl_bootstrap} && %{with perl_Compress_Bzip2_enables_optional_test}
c12725
BuildRequires:  perl(Test::LeakTrace)
c12725
%endif
c12725
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
c12725
Requires:       perl(constant) >= 1.04
c12725
c12725
%{?perl_default_filter}
c12725
# Remove under-specified dependencies
c12725
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(constant\\)$
c12725
c12725
%description
c12725
The Compress::Bzip2 module provides a Perl interface to the Bzip2 compression
c12725
library. A relevant subset of the functionality provided by Bzip2 is available
c12725
in Compress::Bzip2. Compress::Bzip2 is not well integrated into PerlIO, use
c12725
the preferred IO::Compress::Bzip2 instead.
c12725
c12725
%prep
c12725
%setup -q -n Compress-Bzip2-%{version}
c12725
# Remove bundled bzip2 library
c12725
find bzlib-src -mindepth 1 -type f \! -name 'sample*' -delete
c12725
perl -i -ne 'print $_ unless m{^bzlib-src/}' MANIFEST
c12725
find bzlib-src -type f >>MANIFEST
c12725
c12725
%build
c12725
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 \
c12725
    OPTIMIZE="$RPM_OPT_FLAGS"
c12725
%make_build
c12725
c12725
%install
c12725
%make_install
c12725
find %{buildroot} -type f -name '*.bs' -empty -delete
c12725
%{_fixperms} %{buildroot}
c12725
c12725
%check
c12725
make test
c12725
c12725
%files
c12725
%license COPYING
c12725
%doc ANNOUNCE Changes NEWS README.md
c12725
%{perl_vendorarch}/Compress/
c12725
%{perl_vendorarch}/auto/Compress/
c12725
%{_mandir}/man3/*.3pm*
c12725
c12725
%changelog
c12725
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.28-5
c12725
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
c12725
  Related: rhbz#1991688
c12725
c12725
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.28-4
c12725
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
c12725
c12725
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.28-3
c12725
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
c12725
c12725
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.28-2
c12725
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c12725
c12725
* Mon Jul 20 2020 Petr Pisar <ppisar@redhat.com> - 2.28-1
c12725
- 2.28 bump
c12725
c12725
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.27-4
c12725
- Perl 5.32 re-rebuild of bootstrapped packages
c12725
c12725
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.27-3
c12725
- Perl 5.32 rebuild
c12725
c12725
* Wed May 27 2020 Petr Pisar <ppisar@redhat.com> - 2.27-2
c12725
- A dummy release to overcome a Koji failure
c12725
c12725
* Wed May 27 2020 Petr Pisar <ppisar@redhat.com> - 2.27-1
c12725
- 2.27 bump
c12725
c12725
* Tue Feb 04 2020 Petr Pisar <ppisar@redhat.com> - 2.26-16
c12725
- NO_PERLLOCAL=1 needs a recent ExtUtils::MakeMaker
c12725
c12725
* Tue Feb 04 2020 Tom Stellard <tstellar@redhat.com> - 2.26-15
c12725
- Use make_build macro
c12725
- https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make
c12725
c12725
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.26-14
c12725
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c12725
c12725
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.26-13
c12725
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c12725
c12725
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.26-12
c12725
- Perl 5.30 re-rebuild of bootstrapped packages
c12725
c12725
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.26-11
c12725
- Perl 5.30 rebuild
c12725
c12725
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.26-10
c12725
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c12725
c12725
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.26-9
c12725
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c12725
c12725
* Sun Jul 01 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.26-8
c12725
- Perl 5.28 re-rebuild of bootstrapped packages
c12725
c12725
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.26-7
c12725
- Perl 5.28 rebuild
c12725
c12725
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.26-6
c12725
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c12725
c12725
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.26-5
c12725
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
c12725
c12725
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.26-4
c12725
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c12725
c12725
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.26-3
c12725
- Perl 5.26 re-rebuild of bootstrapped packages
c12725
c12725
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.26-2
c12725
- Perl 5.26 rebuild
c12725
c12725
* Tue Apr 11 2017 Petr Pisar <ppisar@redhat.com> - 2.26-1
c12725
- 2.26 bump
c12725
c12725
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.25-2
c12725
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c12725
c12725
* Mon Nov 14 2016 Petr Pisar <ppisar@redhat.com> - 2.25-1
c12725
- 2.25 bump
c12725
c12725
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.24-4
c12725
- Perl 5.24 re-rebuild of bootstrapped packages
c12725
c12725
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.24-3
c12725
- Perl 5.24 rebuild
c12725
c12725
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.24-2
c12725
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c12725
c12725
* Fri Dec 11 2015 Petr Pisar <ppisar@redhat.com> - 2.24-1
c12725
- 2.24 bump
c12725
c12725
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22-4
c12725
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c12725
c12725
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.22-3
c12725
- Perl 5.22 re-rebuild of bootstrapped packages
c12725
c12725
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.22-2
c12725
- Perl 5.22 rebuild
c12725
c12725
* Thu Feb 19 2015 Petr Pisar <ppisar@redhat.com> - 2.22-1
c12725
- 2.22 bump
c12725
c12725
* Fri Jan 30 2015 Petr Pisar <ppisar@redhat.com> - 2.20-1
c12725
- 2.20 bump
c12725
c12725
* Wed Oct 29 2014 Petr Pisar <ppisar@redhat.com> - 2.19-2
c12725
- Do not build-require version module
c12725
c12725
* Mon Oct 27 2014 Petr Pisar <ppisar@redhat.com> - 2.19-1
c12725
- 2.19 bump
c12725
c12725
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.18-3
c12725
- Perl 5.20 rebuild
c12725
c12725
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.18-2
c12725
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c12725
c12725
* Thu Aug 07 2014 Petr Pisar <ppisar@redhat.com> - 2.18-1
c12725
- 2.18 bump
c12725
c12725
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-2
c12725
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c12725
c12725
* Mon Sep 02 2013 Petr Pisar <ppisar@redhat.com> - 2.17-1
c12725
- 2.17 bump
c12725
- License changed to (GPL+ or Artistic)
c12725
c12725
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.16-3
c12725
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c12725
c12725
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 2.16-2
c12725
- Perl 5.18 rebuild
c12725
c12725
* Thu Jun 20 2013 Petr Pisar <ppisar@redhat.com> - 2.16-1
c12725
- 2.16 bump
c12725
c12725
* Mon Apr 08 2013 Petr Pisar <ppisar@redhat.com> - 2.15-1
c12725
- 2.15 bump
c12725
c12725
* Thu Apr 04 2013 Petr Pisar <ppisar@redhat.com> - 2.13-1
c12725
- 2.13 bump
c12725
c12725
* Wed Mar 27 2013 Petr Pisar <ppisar@redhat.com> - 2.10-1
c12725
- 2.10 bump
c12725
c12725
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.09-17
c12725
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c12725
c12725
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.09-16
c12725
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c12725
c12725
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 2.09-15
c12725
- Perl 5.16 rebuild
c12725
c12725
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.09-14
c12725
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c12725
c12725
* Thu Jun 16 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.09-13
c12725
- Perl mass rebuild
c12725
c12725
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.09-12
c12725
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c12725
c12725
* Wed Dec 15 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.09-11
c12725
- 661697 rebuild for fixing problems with vendorach/lib
c12725
c12725
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.09-10
c12725
- Mass rebuild with perl-5.12.0
c12725
c12725
* Fri Jan 15 2010 Stepan Kasal <skasal@redhat.com> - 2.09-9
c12725
- rebuild against perl 5.10.1
c12725
c12725
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.09-8
c12725
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c12725
c12725
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.09-7
c12725
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c12725
c12725
* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.09-6.2
c12725
Rebuild for new perl
c12725
c12725
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.09-5.2
c12725
- Autorebuild for GCC 4.3
c12725
c12725
* Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 2.09-4.2
c12725
- add BR: perl(Test::More)
c12725
c12725
* Mon Oct 15 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 2.09-4.1
c12725
- correct license tag
c12725
- add BR: perl(ExtUtils::MakeMaker)
c12725
c12725
* Thu Sep  7 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.09-4
c12725
- Rebuild for FC6.
c12725
c12725
* Mon Feb 20 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.09-3
c12725
- Rebuild for FC5 (perl 5.8.8).
c12725
c12725
* Mon Jan  9 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.09-2
c12725
- Applied two of the Ville's suggestions (#177166): trimmed down
c12725
  the description to the first paragraph and added the file ANNOUNCE
c12725
  as documentation.
c12725
c12725
* Thu Aug 11 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.09-1
c12725
- Update to 2.09.
c12725
c12725
* Mon May 02 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.07-1
c12725
- Update to 2.07.
c12725
c12725
* Mon Apr 25 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.04-1
c12725
- Update to 2.04.
c12725
c12725
* Sun Apr 24 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.03-1
c12725
- Update to 2.03.
c12725
c12725
* Sun Apr 24 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.00-1
c12725
- Update to 2.00.
c12725
c12725
* Thu Apr 21 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.03-1
c12725
- First build.