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