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

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