c4be28
# Run optional test
c4be28
%if ! (0%{?rhel})
c4be28
%bcond_without perl_Compress_Raw_Bzip2_enables_optional_test
c4be28
%else
c4be28
%bcond_with perl_Compress_Raw_Bzip2_enables_optional_test
c4be28
%endif
c4be28
c4be28
Name:           perl-Compress-Raw-Bzip2
c4be28
Summary:        Low-level interface to bzip2 compression library
c4be28
Version:        2.093
c4be28
Release:        1%{?dist}
c4be28
# Other files:  GPL+ or Artistic
c4be28
## unbundled
c4be28
# bzip2-src:    BSD
c4be28
License:        GPL+ or Artistic
c4be28
URL:            https://metacpan.org/release/Compress-Raw-Bzip2
c4be28
Source0:        https://cpan.metacpan.org/modules/by-module/Compress/Compress-Raw-Bzip2-%{version}.tar.gz
c4be28
# Module Build
c4be28
BuildRequires:  bzip2-devel
c4be28
BuildRequires:  coreutils
c4be28
BuildRequires:  findutils
c4be28
BuildRequires:  gcc
c4be28
BuildRequires:  make
c4be28
BuildRequires:  perl-devel
c4be28
BuildRequires:  perl-generators
c4be28
BuildRequires:  perl-interpreter
c4be28
BuildRequires:  perl(Config)
c4be28
BuildRequires:  perl(ExtUtils::Constant)
c4be28
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
c4be28
BuildRequires:  perl(File::Copy)
c4be28
BuildRequires:  perl(File::Spec::Functions)
c4be28
BuildRequires:  perl(lib)
c4be28
# Module Runtime
c4be28
BuildRequires:  perl(bytes)
c4be28
BuildRequires:  perl(Carp)
c4be28
BuildRequires:  perl(constant)
c4be28
BuildRequires:  perl(Exporter)
c4be28
BuildRequires:  perl(strict)
c4be28
BuildRequires:  perl(warnings)
c4be28
BuildRequires:  perl(XSLoader)
c4be28
# Test Suite
c4be28
BuildRequires:  perl(File::Path)
c4be28
BuildRequires:  perl(threads::shared)
c4be28
%if %{with perl_Compress_Raw_Bzip2_enables_optional_test}
c4be28
# Optional Tests
c4be28
BuildRequires:  perl(File::Temp)
c4be28
BuildRequires:  perl(lib)
c4be28
BuildRequires:  perl(overload)
c4be28
# Dual-lived module needs rebuilding early in the boot process
c4be28
%if !%{defined perl_bootstrap}
c4be28
BuildRequires:  perl(Test::CPAN::Meta)
c4be28
BuildRequires:  perl(Test::CPAN::Meta::JSON)
c4be28
BuildRequires:  perl(Test::More)
c4be28
BuildRequires:  perl(Test::NoWarnings)
c4be28
BuildRequires:  perl(Test::Pod) >= 1.00
c4be28
%endif
c4be28
BuildRequires:  perl(Scalar::Util)
c4be28
%endif
c4be28
BuildRequires:  perl(vars)
c4be28
# Runtime
c4be28
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
c4be28
Requires:       perl(XSLoader)
c4be28
c4be28
# Don't "provide" private Perl libs
c4be28
%{?perl_default_filter}
c4be28
c4be28
%description
c4be28
This module provides a Perl interface to the bzip2 compression library.
c4be28
It is used by IO::Compress::Bzip2.
c4be28
c4be28
%prep
c4be28
%setup -q -n Compress-Raw-Bzip2-%{version}
c4be28
# Remove bundled bzip2 sources
c4be28
rm -r bzip2-src
c4be28
perl -i -ne 'print unless /^bzip2-src\//' MANIFEST
c4be28
c4be28
%build
c4be28
BUILD_BZIP2=0
c4be28
BZIP2_LIB=%{_libdir}
c4be28
export BUILD_BZIP2 BZIP2_LIB
c4be28
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1 NO_PERLLOCAL=1
c4be28
%{make_build}
c4be28
c4be28
%install
c4be28
%{make_install}
c4be28
find %{buildroot} -type f -name '*.bs' -empty -delete
c4be28
%{_fixperms} -c %{buildroot}
c4be28
c4be28
%check
c4be28
make test
c4be28
c4be28
%files
c4be28
%doc Changes README
c4be28
%{perl_vendorarch}/auto/Compress/
c4be28
%{perl_vendorarch}/Compress/
c4be28
%{_mandir}/man3/Compress::Raw::Bzip2.3*
c4be28
c4be28
%changelog
c4be28
* Sun Dec  8 2019 Paul Howarth <paul@city-fan.org> - 2.093-1
c4be28
- 2.093 bump
c4be28
c4be28
* Thu Dec 05 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.092-1
c4be28
- 2.092 bump
c4be28
c4be28
* Sun Nov 24 2019 Paul Howarth <paul@city-fan.org> - 2.091-1
c4be28
- 2.091 bump
c4be28
c4be28
* Sun Nov 10 2019 Paul Howarth <paul@city-fan.org> - 2.090-1
c4be28
- 2.090 bump
c4be28
c4be28
* Sun Nov  3 2019 Paul Howarth <paul@city-fan.org> - 2.089-1
c4be28
- 2.089 bump
c4be28
c4be28
* Sun Nov  3 2019 Paul Howarth <paul@city-fan.org> - 2.088-1
c4be28
- 2.088 bump
c4be28
c4be28
* Mon Aug 12 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.087-1
c4be28
- 2.087 bump
c4be28
c4be28
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.086-4
c4be28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c4be28
c4be28
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.086-3
c4be28
- Perl 5.30 re-rebuild of bootstrapped packages
c4be28
c4be28
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.086-2
c4be28
- Perl 5.30 rebuild
c4be28
c4be28
* Mon Apr 01 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.086-1
c4be28
- 2.086 bump
c4be28
c4be28
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.084-2
c4be28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c4be28
c4be28
* Mon Jan 07 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.084-1
c4be28
- 2.084 bump
c4be28
c4be28
* Wed Jan 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.083-1
c4be28
- 2.083 bump
c4be28
c4be28
* Mon Jul 30 2018 Petr Pisar <ppisar@redhat.com> - 2.081-5
c4be28
- Prune bundled bzip2 sources
c4be28
c4be28
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.081-4
c4be28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c4be28
c4be28
* Sat Jun 30 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.081-3
c4be28
- Perl 5.28 re-rebuild of bootstrapped packages
c4be28
c4be28
* Tue Jun 26 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.081-2
c4be28
- Perl 5.28 rebuild
c4be28
c4be28
* Mon Apr 09 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.081-1
c4be28
- 2.081 bump
c4be28
c4be28
* Wed Apr 04 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.080-1
c4be28
- 2.080 bump
c4be28
c4be28
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.074-397
c4be28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c4be28
c4be28
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.074-396
c4be28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
c4be28
c4be28
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.074-395
c4be28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c4be28
c4be28
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.074-394
c4be28
- Perl 5.26 re-rebuild of bootstrapped packages
c4be28
c4be28
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.074-393
c4be28
- Perl 5.26 rebuild
c4be28
c4be28
* Mon Feb 20 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.074-1
c4be28
- 2.074 bump
c4be28
c4be28
* Mon Feb 13 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.072-1
c4be28
- 2.072 bump
c4be28
c4be28
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.070-2
c4be28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c4be28
c4be28
* Thu Dec 29 2016 Paul Howarth <paul@city-fan.org> - 2.070-1
c4be28
- Update to 2.070
c4be28
  - Fix wrong APPEND_OUTPUT logic (CPAN RT#119005, CPAN RT#119141)
c4be28
  - Fix some gcc warnings (CPAN RT#100817, CPAN RT#105647)
c4be28
- Simplify find commands using -empty and -delete
c4be28
c4be28
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.069-366
c4be28
- Perl 5.24 re-rebuild of bootstrapped packages
c4be28
c4be28
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.069-365
c4be28
- Increase release to favour standalone package
c4be28
c4be28
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.069-2
c4be28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c4be28
c4be28
* Sun Sep 27 2015 Paul Howarth <paul@city-fan.org> - 2.069-1
c4be28
- Update to 2.069
c4be28
  - Reduce compiler warnings and stderr noise (CPAN RT#101340)
c4be28
  - consting misc tables (CPAN RT#101296)
c4be28
c4be28
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.068-347
c4be28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c4be28
c4be28
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.068-346
c4be28
- Perl 5.22 re-rebuild of bootstrapped packages
c4be28
c4be28
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.068-345
c4be28
- Increase release to favour standalone package
c4be28
c4be28
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.068-2
c4be28
- Perl 5.22 rebuild
c4be28
c4be28
* Wed Dec 24 2014 Paul Howarth <paul@city-fan.org> - 2.068-1
c4be28
- Update to 2.068 (no changes)
c4be28
c4be28
* Tue Dec  9 2014 Paul Howarth <paul@city-fan.org> - 2.067-1
c4be28
- Update to 2.067 (silence compiler warnings)
c4be28
- Classify buildreqs by usage
c4be28
c4be28
* Mon Sep 22 2014 Paul Howarth <paul@city-fan.org> - 2.066-1
c4be28
- Update to 2.066 (no changes)
c4be28
c4be28
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.064-311
c4be28
- Perl 5.20 re-rebuild of bootstrapped packages
c4be28
c4be28
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.064-310
c4be28
- Increase release to favour standalone package
c4be28
c4be28
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.064-4
c4be28
- Perl 5.20 rebuild
c4be28
c4be28
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.064-3
c4be28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c4be28
c4be28
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.064-2
c4be28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c4be28
c4be28
* Sun Feb  2 2014 Paul Howarth <paul@city-fan.org> - 2.064-1
c4be28
- Update to 2.064
c4be28
  - Handle non-PVs better (CPAN RT#91558)
c4be28
c4be28
* Sun Nov  3 2013 Paul Howarth <paul@city-fan.org> - 2.063-1
c4be28
- Update to 2.063
c4be28
  - gcc -g3: final link failed: Memory exhausted (CPAN RT#88936)
c4be28
c4be28
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 2.062-2
c4be28
- Perl 5.18 re-rebuild of bootstrapped packages
c4be28
c4be28
* Mon Aug 12 2013 Paul Howarth <paul@city-fan.org> - 2.062-1
c4be28
- Update to 2.062 (no changes)
c4be28
c4be28
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.061-3
c4be28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c4be28
c4be28
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 2.061-2
c4be28
- Perl 5.18 rebuild
c4be28
c4be28
* Mon May 27 2013 Paul Howarth <paul@city-fan.org> - 2.061-1
c4be28
- Update to 2.061
c4be28
  - Silence compiler warning by making 2nd parameter to DispStream a const char*
c4be28
c4be28
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.060-2
c4be28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c4be28
c4be28
* Tue Jan  8 2013 Paul Howarth <paul@city-fan.org> - 2.060-1
c4be28
- Update to 2.060 (no changes)
c4be28
c4be28
* Sun Nov 25 2012 Paul Howarth <paul@city-fan.org> - 2.059-1
c4be28
- Update to 2.059
c4be28
  - Copy-on-write support (CPAN RT#81352)
c4be28
c4be28
* Tue Nov 13 2012 Paul Howarth <paul@city-fan.org> - 2.058-1
c4be28
- Update to 2.058
c4be28
  - Compress::Raw::Bzip2 needs to use PERL_NO_GET_CONTEXT (CPAN RT#80318)
c4be28
  - Install to 'site' instead of 'perl' when perl version is 5.11+
c4be28
    (CPAN RT#79811)
c4be28
  - Update to ppport.h that includes SvPV_nomg_nolen (CPAN RT#78080)
c4be28
c4be28
* Mon Aug  6 2012 Paul Howarth <paul@city-fan.org> - 2.055-1
c4be28
- Update to 2.055
c4be28
  - Fix misuse of magic in API (CPAN RT#78080)
c4be28
- Drop redundant explicit requires for perl(Exporter) and perl(File::Temp)
c4be28
c4be28
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.052-5
c4be28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c4be28
c4be28
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 2.052-4
c4be28
- Perl 5.16 re-rebuild of bootstrapped packages
c4be28
c4be28
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 2.052-3
c4be28
- Perl 5.16 rebuild
c4be28
c4be28
* Fri Jun 01 2012 Petr Pisar <ppisar@redhat.com> - 2.052-2
c4be28
- Omit optional Test::Pod tests on bootstrap
c4be28
c4be28
* Sun Apr 29 2012 Paul Howarth <paul@city-fan.org> - 2.052-1
c4be28
- Update to 2.052 (no changes)
c4be28
- Don't need to remove empty directories from buildroot
c4be28
c4be28
* Sat Feb 18 2012 Paul Howarth <paul@city-fan.org> - 2.049-1
c4be28
- Update to 2.049 (no changes)
c4be28
c4be28
* Sun Jan 29 2012 Paul Howarth <paul@city-fan.org> - 2.048-1
c4be28
- Update to 2.048 (set minimum Perl version to 5.6)
c4be28
- Don't use macros for commands
c4be28
c4be28
* Tue Jan 10 2012 Paul Howarth <paul@city-fan.org> - 2.045-2
c4be28
- Rebuild for gcc 4.7 in Rawhide
c4be28
c4be28
* Sun Dec  4 2011 Paul Howarth <paul@city-fan.org> - 2.045-1
c4be28
- Update to 2.045
c4be28
  - Moved FAQ.pod to IO::Compress
c4be28
c4be28
* Sun Dec  4 2011 Paul Howarth <paul@city-fan.org> - 2.044-1
c4be28
- Update to 2.044
c4be28
  - Moved FAQ.pod under the lib directory so it can get installed
c4be28
c4be28
* Mon Nov 21 2011 Paul Howarth <paul@city-fan.org> - 2.043-1
c4be28
- Update to 2.043 (no changes)
c4be28
c4be28
* Fri Nov 18 2011 Paul Howarth <paul@city-fan.org> - 2.042-1
c4be28
- Update to 2.042 (no changes)
c4be28
c4be28
* Sat Oct 29 2011 Paul Howarth <paul@city-fan.org> - 2.040-1
c4be28
- Update to 2.040
c4be28
  - Croak if attempt to freeze/thaw compression object (CPAN RT#69985)
c4be28
- BR: perl(Carp)
c4be28
c4be28
* Thu Jul 28 2011 Karsten Hopp <karsten@redhat.com> 2.037-3
c4be28
- Bump and rebuild, got compiled with old perl on ppc
c4be28
c4be28
* Wed Jun 22 2011 Paul Howarth <paul@city-fan.org> - 2.037-2
c4be28
- Perl mass rebuild
c4be28
c4be28
* Wed Jun 22 2011 Paul Howarth <paul@city-fan.org> - 2.037-1
c4be28
- Update to 2.037 (no changes)
c4be28
c4be28
* Mon Jun 20 2011 Paul Howarth <paul@city-fan.org> - 2.036-2
c4be28
- Perl mass rebuild
c4be28
c4be28
* Mon Jun 20 2011 Petr Sabata <contyk@redhat.com> - 2.036-1
c4be28
- 2.036 bump (no changes)
c4be28
c4be28
* Sun Jun 19 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.035-3
c4be28
- Perl mass rebuild
c4be28
c4be28
* Fri Jun 17 2011 Paul Howarth <paul@city-fan.org> - 2.035-2
c4be28
- Perl mass rebuild
c4be28
c4be28
* Sat May  7 2011 Paul Howarth <paul@city-fan.org> - 2.035-1
c4be28
- Update to 2.035 (no changes)
c4be28
c4be28
* Tue May  3 2011 Petr Sabata <psabata@redhat.com> - 2.034-1
c4be28
- 2.034 bump
c4be28
- Buildroot cleanup, defattr cleanup
c4be28
- Correcting BRs/Rs
c4be28
c4be28
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.033-2
c4be28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c4be28
c4be28
* Thu Jan 13 2011 Paul Howarth <paul@city-fan.org> - 2.033-1
c4be28
- Update to 2.033 (fixed typos and spelling errors - Perl RT#81782)
c4be28
c4be28
* Fri Jan 07 2011 Petr Pisar <ppisar@redhat.com> - 2.032-1
c4be28
- 2.032 bump
c4be28
c4be28
* Wed Sep 29 2010 jkeating - 2.031-2
c4be28
- Rebuilt for gcc bug 634757
c4be28
c4be28
* Thu Sep 23 2010 Petr Pisar <ppisar@redhat.com> - 2.031-1
c4be28
- 2.031 bump
c4be28
c4be28
* Mon Jul 26 2010 Petr Sabata <psabata@redhat.com> - 2.030-1
c4be28
- 2.030 version bump
c4be28
c4be28
* Thu May  6 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.027-1
c4be28
- update
c4be28
 
c4be28
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.026-2
c4be28
- Mass rebuild with perl-5.12.0
c4be28
c4be28
* Sat Apr 10 2010 Chris Weyl <cweyl@alumni.drew.edu> 2.026-1
c4be28
- PERL_INSTALL_ROOT => DESTDIR, use _fixperms incantation
c4be28
- add perl_default_filter (XS package)
c4be28
- update by Fedora::App::MaintainerTools 0.006
c4be28
- updating to latest GA CPAN version (2.026)
c4be28
c4be28
* Fri Jan 15 2010 Stepan Kasal <skasal@redhat.com> - 2.020-2
c4be28
- rebuild against perl 5.10.1
c4be28
c4be28
* Mon Jul 27 2009 Marcela Mašláňová <mmaslano@redhat.com> - 2.020-1
c4be28
- update
c4be28
c4be28
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.005-7
c4be28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c4be28
c4be28
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.005-6
c4be28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c4be28
c4be28
* Wed Mar  5 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.005-5
c4be28
- rebuild for new perl
c4be28
c4be28
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.005-4
c4be28
- Autorebuild for GCC 4.3
c4be28
c4be28
* Fri Aug 24 2007 Robin Norwood <rnorwood@redhat.com> - 2.005-3
c4be28
- Update license tag.
c4be28
c4be28
* Tue Jul 17 2007 Robin Norwood <rnorwood@redhat.com> - 2.005-2
c4be28
- Bump release to beat F-7 version
c4be28
c4be28
* Sun Jul 01 2007 Steven Pritchard <steve@kspei.com> 2.005-1
c4be28
- Update to 2.005.
c4be28
- Build against system libbz2 (#246401).
c4be28
c4be28
* Tue Jun 05 2007 Robin Norwood <rnorwood@redhat.com> - 2.004-1
c4be28
- Initial build from CPAN