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