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

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