Blame SPECS/perl-IO-Compress-Lzma.spec

b05ecf
# Perform optional tests
b05ecf
%bcond_without perl_IO_Compress_Lzma_enables_optional_test
b05ecf
b05ecf
Name:		perl-IO-Compress-Lzma
b05ecf
Version:	2.096
b05ecf
Release:	1%{?dist}
b05ecf
Summary:	Read and write lzma compressed data
b05ecf
License:	GPL+ or Artistic
b05ecf
URL:		https://metacpan.org/release/IO-Compress-Lzma
b05ecf
Source0:	https://cpan.metacpan.org/modules/by-module/IO/IO-Compress-Lzma-%{version}.tar.gz
b05ecf
BuildArch:	noarch
b05ecf
# Module Build
b05ecf
BuildRequires:	coreutils
b05ecf
BuildRequires:	findutils
b05ecf
BuildRequires:	make
b05ecf
BuildRequires:	perl-generators
b05ecf
BuildRequires:	perl-interpreter
b05ecf
BuildRequires:	perl(Config)
b05ecf
BuildRequires:	perl(ExtUtils::MakeMaker) >= 5.16
b05ecf
BuildRequires:	perl(File::Copy)
b05ecf
BuildRequires:	perl(File::Spec::Functions)
b05ecf
BuildRequires:	perl(lib)
b05ecf
# Module Runtime
b05ecf
BuildRequires:	perl(bytes)
b05ecf
BuildRequires:	perl(Compress::Raw::Lzma) >= %{version}
b05ecf
BuildRequires:	perl(constant)
b05ecf
BuildRequires:	perl(Exporter)
b05ecf
BuildRequires:	perl(IO::Compress::Base) >= %{version}
b05ecf
BuildRequires:	perl(IO::Compress::Base::Common) >= %{version}
b05ecf
BuildRequires:	perl(IO::Uncompress::Base) >= %{version}
b05ecf
BuildRequires:	perl(strict)
b05ecf
BuildRequires:	perl(warnings)
b05ecf
# Test Suite
b05ecf
BuildRequires:	perl(Carp)
b05ecf
BuildRequires:	perl(Compress::Raw::Zlib) >= 2
b05ecf
BuildRequires:	perl(File::Path)
b05ecf
BuildRequires:	perl(File::Spec)
b05ecf
BuildRequires:	perl(File::Temp)
b05ecf
BuildRequires:	perl(IO::Compress::Zip)
b05ecf
BuildRequires:	perl(IO::File)
b05ecf
BuildRequires:	perl(IO::Handle)
b05ecf
BuildRequires:	perl(IO::Uncompress::AnyUncompress)
b05ecf
BuildRequires:	perl(IO::Uncompress::Unzip)
b05ecf
BuildRequires:	perl(List::Util)
b05ecf
BuildRequires:	perl(Test::More)
b05ecf
BuildRequires:	xz, xz-lzma-compat
b05ecf
%if %{with perl_IO_Compress_Lzma_enables_optional_test}
b05ecf
# Optional Tests
b05ecf
BuildRequires:	lzip
b05ecf
BuildRequires:	perl(Encode)
b05ecf
BuildRequires:	perl(IO::String)
b05ecf
BuildRequires:	perl(Test::CPAN::Meta)
b05ecf
BuildRequires:	perl(Test::CPAN::Meta::JSON)
b05ecf
BuildRequires:	perl(Test::NoWarnings)
b05ecf
BuildRequires:	perl(Test::Pod) >= 1.00
b05ecf
BuildRequires:	/usr/bin/7z
b05ecf
%endif
b05ecf
# Runtime
b05ecf
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
b05ecf
b05ecf
%description
b05ecf
This distribution provides a Perl interface to allow reading and writing of
b05ecf
compressed data created with the lzma library.
b05ecf
b05ecf
%prep
b05ecf
%setup -q -n IO-Compress-Lzma-%{version}
b05ecf
b05ecf
# Remove bundled test modules
b05ecf
rm -rv t/Test/
b05ecf
perl -i -ne 'print $_ unless m{^t/Test/}' MANIFEST
b05ecf
b05ecf
# Remove spurious exec permissions
b05ecf
chmod -c -x examples/*
b05ecf
b05ecf
# Fix shellbangs in examples
b05ecf
perl -pi -e 's|^#!/usr/local/bin/perl\b|#!/usr/bin/perl|' \
b05ecf
	examples/lzcat examples/lzstream examples/xzcat examples/xzstream
b05ecf
b05ecf
%build
b05ecf
perl Makefile.PL INSTALLDIRS=vendor
b05ecf
make %{?_smp_mflags}
b05ecf
b05ecf
%install
b05ecf
make pure_install DESTDIR=%{buildroot}
b05ecf
find %{buildroot} -type f -name .packlist -delete
b05ecf
%{_fixperms} -c %{buildroot}
b05ecf
b05ecf
%check
b05ecf
make test COMPRESS_ZLIB_RUN_MOST=1
b05ecf
b05ecf
%files
b05ecf
%doc Changes README examples/*
b05ecf
%{perl_vendorlib}/IO/
b05ecf
%{_mandir}/man3/IO::Compress::Lzip.3*
b05ecf
%{_mandir}/man3/IO::Compress::Lzma.3*
b05ecf
%{_mandir}/man3/IO::Compress::Xz.3*
b05ecf
%{_mandir}/man3/IO::Uncompress::UnLzip.3*
b05ecf
%{_mandir}/man3/IO::Uncompress::UnLzma.3*
b05ecf
%{_mandir}/man3/IO::Uncompress::UnXz.3*
b05ecf
b05ecf
%changelog
b05ecf
* Sat Aug  1 2020 Paul Howarth <paul@city-fan.org> - 2.096-1
b05ecf
- Update to 2.096
b05ecf
  - Add test for Zip with XZ compression
b05ecf
b05ecf
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.095-2
b05ecf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
b05ecf
b05ecf
* Tue Jul 21 2020 Paul Howarth <paul@city-fan.org> - 2.095-1
b05ecf
- Update to 2.095 (no changes)
b05ecf
b05ecf
* Tue Jul 14 2020 Paul Howarth <paul@city-fan.org> - 2.094-1
b05ecf
- Update to 2.094 (no changes)
b05ecf
b05ecf
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.093-4
b05ecf
- Perl 5.32 rebuild
b05ecf
b05ecf
* Fri Feb 14 2020 Petr Pisar <ppisar@redhat.com> - 2.093-3
b05ecf
- Unbundle test dependencies
b05ecf
b05ecf
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.093-2
b05ecf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b05ecf
b05ecf
* Sun Dec  8 2019 Paul Howarth <paul@city-fan.org> - 2.093-1
b05ecf
- Update to 2.093
b05ecf
  - Fixed minor typo in the pod (GH#3)
b05ecf
b05ecf
* Thu Dec  5 2019 Paul Howarth <paul@city-fan.org> - 2.092-1
b05ecf
- Update to 2.092
b05ecf
  - t/oooprereq.t: Fix list of dumped packages
b05ecf
  - t/oooprereq.t: Dump version data
b05ecf
b05ecf
* Sun Nov 24 2019 Paul Howarth <paul@city-fan.org> - 2.091-1
b05ecf
- Update to 2.091 (no changes)
b05ecf
b05ecf
* Sun Nov 10 2019 Paul Howarth <paul@city-fan.org> - 2.090-1
b05ecf
- Update to 2.090
b05ecf
  - Fix typo: change lzstrem to xzstream
b05ecf
b05ecf
* Sun Nov  3 2019 Paul Howarth <paul@city-fan.org> - 2.089-1
b05ecf
- Update to 2.089 (no changes)
b05ecf
b05ecf
* Sun Nov  3 2019 Paul Howarth <paul@city-fan.org> - 2.088-1
b05ecf
- Update to 2.088
b05ecf
  - Add support details to documentation
b05ecf
  - Beef up reset for zip use-case
b05ecf
  - Remove unnecessary commented code
b05ecf
  - Documentation updates
b05ecf
b05ecf
* Mon Aug 12 2019 Paul Howarth <paul@city-fan.org> - 2.087-1
b05ecf
- Update to 2.087 (no changes)
b05ecf
b05ecf
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.086-3
b05ecf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
b05ecf
b05ecf
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.086-2
b05ecf
- Perl 5.30 rebuild
b05ecf
b05ecf
* Mon Apr  1 2019 Paul Howarth <paul@city-fan.org> - 2.086-1
b05ecf
- Update to 2.086
b05ecf
  - Moved source to github: https://github.com/pmqs/IO-Compress-Lzma
b05ecf
  - Add META_MERGE to Makefile.PL
b05ecf
  - Added meta-json.t and meta-yaml.t
b05ecf
b05ecf
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.084-2
b05ecf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
b05ecf
b05ecf
* Mon Jan  7 2019 Paul Howarth <paul@city-fan.org> - 2.084-1
b05ecf
- Update to 2.084
b05ecf
  - Added support for lzip with IO::Compress::Lzip and
b05ecf
    IO::Uncompress::UnLzip
b05ecf
b05ecf
* Wed Jan  2 2019 Paul Howarth <paul@city-fan.org> - 2.083-1
b05ecf
- Update to 2.083 (no changes)
b05ecf
- Drop legacy Group: tag
b05ecf
b05ecf
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.081-3
b05ecf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
b05ecf
b05ecf
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.081-2
b05ecf
- Perl 5.28 rebuild
b05ecf
b05ecf
* Mon Apr  9 2018 Paul Howarth <paul@city-fan.org> - 2.081-1
b05ecf
- Update to 2.081
b05ecf
  - Previous release used $^W instead of use warnings - fixed
b05ecf
b05ecf
* Wed Apr  4 2018 Paul Howarth <paul@city-fan.org> - 2.080-1
b05ecf
- Update to 2.080 (no changes)
b05ecf
b05ecf
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.074-4
b05ecf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b05ecf
b05ecf
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.074-3
b05ecf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b05ecf
b05ecf
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.074-2
b05ecf
- Perl 5.26 rebuild
b05ecf
b05ecf
* Mon Feb 20 2017 Paul Howarth <paul@city-fan.org> - 2.074-1
b05ecf
- Update to 2.074
b05ecf
  - ISA fixes for c3 (CPAN RT#120239)
b05ecf
b05ecf
* Mon Feb 13 2017 Paul Howarth <paul@city-fan.org> - 2.072-1
b05ecf
- Update to 2.072
b05ecf
  - Fix for Makefile.PL depending on . in @INC (CPAN RT#120084)
b05ecf
- Run additional tests by specifying COMPRESS_ZLIB_RUN_MOST
b05ecf
b05ecf
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.070-2
b05ecf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b05ecf
b05ecf
* Thu Dec 29 2016 Paul Howarth <paul@city-fan.org> - 2.070-1
b05ecf
- Update to 2.070 (no changes)
b05ecf
- Simplify find command using -delete
b05ecf
b05ecf
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.069-3
b05ecf
- Perl 5.24 rebuild
b05ecf
b05ecf
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.069-2
b05ecf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b05ecf
b05ecf
* Sun Sep 27 2015 Paul Howarth <paul@city-fan.org> - 2.069-1
b05ecf
- Update to 2.069 (no changes)
b05ecf
b05ecf
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.068-3
b05ecf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b05ecf
b05ecf
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.068-2
b05ecf
- Perl 5.22 rebuild
b05ecf
b05ecf
* Wed Dec 24 2014 Paul Howarth <paul@city-fan.org> - 2.068-1
b05ecf
- Update to 2.068 (no changes)
b05ecf
b05ecf
* Tue Dec  9 2014 Paul Howarth <paul@city-fan.org> - 2.067-1
b05ecf
- Update to 2.067 (no changes)
b05ecf
- Classify buildreqs by usage
b05ecf
b05ecf
* Mon Sep 22 2014 Paul Howarth <paul@city-fan.org> - 2.066-1
b05ecf
- Update to 2.066 (no changes)
b05ecf
b05ecf
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.064-3
b05ecf
- Perl 5.20 rebuild
b05ecf
b05ecf
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.064-2
b05ecf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b05ecf
b05ecf
* Sun Feb  2 2014 Paul Howarth <paul@city-fan.org> - 2.064-1
b05ecf
- Update to 2.064 (no changes)
b05ecf
b05ecf
* Sun Nov  3 2013 Paul Howarth <paul@city-fan.org> - 2.063-1
b05ecf
- Update to 2.063 (no changes)
b05ecf
b05ecf
* Mon Aug 12 2013 Paul Howarth <paul@city-fan.org> - 2.062-1
b05ecf
- Update to 2.062
b05ecf
  - Typo fixes (CPAN RT#86578)
b05ecf
b05ecf
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.061-3
b05ecf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b05ecf
b05ecf
* Sat Jul 20 2013 Petr Pisar <ppisar@redhat.com> - 2.061-2
b05ecf
- Perl 5.18 rebuild
b05ecf
b05ecf
* Mon May 27 2013 Paul Howarth <paul@city-fan.org> - 2.061-1
b05ecf
- Update to 2.061
b05ecf
  - Fix IO::Uncompress::UnXz v2.060 memLimit option bug (CPAN RT#84966)
b05ecf
b05ecf
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.060-2
b05ecf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b05ecf
b05ecf
* Tue Jan  8 2013 Paul Howarth <paul@city-fan.org> - 2.060-1
b05ecf
- Update to 2.060 (no changes)
b05ecf
b05ecf
* Sun Dec 16 2012 Paul Howarth <paul@city-fan.org> - 2.059-1
b05ecf
- Update to 2.059 (no changes)
b05ecf
b05ecf
* Tue Nov 13 2012 Paul Howarth <paul@city-fan.org> - 2.058-1
b05ecf
- Update to 2.058 (general performance improvements)
b05ecf
b05ecf
* Mon Aug  6 2012 Paul Howarth <paul@city-fan.org> - 2.055-1
b05ecf
- Update to 2.055 (no changes)
b05ecf
- BR: perl(Carp), perl(constant), perl(File::Spec), perl(IO::Handle) and
b05ecf
  perl(lib)
b05ecf
b05ecf
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.052-3
b05ecf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b05ecf
b05ecf
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 2.052-2
b05ecf
- Perl 5.16 rebuild
b05ecf
b05ecf
* Sun Apr 29 2012 Paul Howarth <paul@city-fan.org> - 2.052-1
b05ecf
- Update to 2.052 (no changes)
b05ecf
- Don't need to remove empty directories from buildroot
b05ecf
- Package examples
b05ecf
- Drop %%defattr, redundant since rpm 4.4
b05ecf
b05ecf
* Sat Feb 18 2012 Paul Howarth <paul@city-fan.org> - 2.049-1
b05ecf
- Update to 2.049 (no changes)
b05ecf
b05ecf
* Sun Jan 29 2012 Paul Howarth <paul@city-fan.org> - 2.048-1
b05ecf
- Update to 2.048
b05ecf
  - Set minimum Perl version to 5.6
b05ecf
b05ecf
* Tue Jan 10 2012 Paul Howarth <paul@city-fan.org> - 2.045-2
b05ecf
- Fedora 17 mass rebuild
b05ecf
b05ecf
* Sun Dec  4 2011 Paul Howarth <paul@city-fan.org> - 2.045-1
b05ecf
- Update to 2.045
b05ecf
  - Moved FAQ.pod to IO::Compress
b05ecf
b05ecf
* Sun Dec  4 2011 Paul Howarth <paul@city-fan.org> - 2.044-1
b05ecf
- Update to 2.044
b05ecf
  - Moved FAQ.pod under the lib directory so it can get installed
b05ecf
b05ecf
* Mon Nov 21 2011 Paul Howarth <paul@city-fan.org> - 2.043-1
b05ecf
- Update to 2.043 (no changes)
b05ecf
b05ecf
* Fri Nov 18 2011 Paul Howarth <paul@city-fan.org> - 2.042-1
b05ecf
- Update to 2.042 (no changes)
b05ecf
- Resync versioned dependencies on IO::Compress::Base and Compress::Raw::Lzma
b05ecf
b05ecf
* Sat Oct 29 2011 Paul Howarth <paul@city-fan.org> - 2.041-1
b05ecf
- Update to 2.041
b05ecf
  - Remove debugging line in t/001lzma.t that writes to /tmp (CPAN RT#72023)
b05ecf
- Update version requirements for IO::Compress and Compress::Raw::Lzma
b05ecf
b05ecf
* Sat Oct 29 2011 Paul Howarth <paul@city-fan.org> - 2.040-1
b05ecf
- Update to 2.040
b05ecf
  - Fixed uncompression issue in IO::Uncompress::UnLzma (CPAN RT#71114)
b05ecf
b05ecf
* Fri Jun 24 2011 Paul Howarth <paul@city-fan.org> - 2.038-2
b05ecf
- Perl mass rebuild
b05ecf
b05ecf
* Fri Jun 24 2011 Paul Howarth <paul@city-fan.org> - 2.038-1
b05ecf
- Update to 2.038
b05ecf
  - Fixed missing SKIP label in t/050interop-zip-lzma.t
b05ecf
- Hard-code version requirements for IO::Compress and Compress::Raw::Lzma
b05ecf
  until the next synchronized release happens
b05ecf
b05ecf
* Wed Jun 22 2011 Paul Howarth <paul@city-fan.org> - 2.037-2
b05ecf
- Perl mass rebuild
b05ecf
b05ecf
* Wed Jun 22 2011 Paul Howarth <paul@city-fan.org> - 2.037-1
b05ecf
- Update to 2.037
b05ecf
  - Handle "Cannot Allocate Memory" issue with Extreme test in
b05ecf
    t/105oneshot-zip-lzma-only.t
b05ecf
b05ecf
* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.036-2
b05ecf
- Perl mass rebuild
b05ecf
b05ecf
* Mon Jun 20 2011 Paul Howarth <paul@city-fan.org> - 2.036-1
b05ecf
- Update to 2.036
b05ecf
  - IO::Compress::Adapter:
b05ecf
    - Added interface to allow creation of LZMA stream for use in a zip file
b05ecf
  - IO::Uncompress::Adapter:
b05ecf
    - Added interface to allow reading of LZMA stream in a zip file
b05ecf
- BR: /usr/bin/7z for additional test coverage
b05ecf
b05ecf
* Sat May  7 2011 Paul Howarth <paul@city-fan.org> - 2.035-1
b05ecf
- Update to 2.035 (fix test failure on Windows - CPAN RT#67931)
b05ecf
b05ecf
* Tue May  3 2011 Paul Howarth <paul@city-fan.org> - 2.034-1
b05ecf
- Update to 2.034 (updates to test harness)
b05ecf
b05ecf
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.033-2
b05ecf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b05ecf
b05ecf
* Tue Jan 11 2011 Paul Howarth <paul@city-fan.org> - 2.033-1
b05ecf
- Update to 2.033 (made 001xz.t more forgiving when the tests run out of memory)
b05ecf
b05ecf
* Fri Jan  7 2011 Paul Howarth <paul@city-fan.org> - 2.032-1
b05ecf
- Update to 2.032 (no changes)
b05ecf
b05ecf
* Fri Dec 17 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.030-2
b05ecf
- Rebuild to fix problems with vendorarch/lib (#661697)
b05ecf
b05ecf
* Mon Jul 26 2010 Paul Howarth <paul@city-fan.org> - 2.030-1
b05ecf
- Update to 2.030 (no changes)
b05ecf
b05ecf
* Tue May 11 2010 Paul Howarth <paul@city-fan.org> - 2.027-2
b05ecf
- Drop redundant buildroot tag
b05ecf
b05ecf
* Thu Apr 29 2010 Paul Howarth <paul@city-fan.org> - 2.027-1
b05ecf
- Initial RPM version