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