84d361
# Run optional test
84d361
%if ! (0%{?rhel})
84d361
%bcond_without perl_Archive_Tar_enables_optional_test
84d361
%else
84d361
%bcond_with perl_Archive_Tar_enables_optional_test
84d361
%endif
84d361
84d361
Name:           perl-Archive-Tar
84d361
Version:        2.38
84d361
Release:        3%{?dist}
84d361
Summary:        A module for Perl manipulation of .tar files
84d361
License:        GPL+ or Artistic
84d361
URL:            https://metacpan.org/release/Archive-Tar
84d361
Source0:        https://cpan.metacpan.org/authors/id/B/BI/BINGOS/Archive-Tar-%{version}.tar.gz
84d361
# Remove annoying sleep after warnings in the build script
84d361
Patch0:         Archive-Tar-2.02-Do-not-sleep-in-Makefile.PL.patch
84d361
BuildArch:      noarch
84d361
# Most of the BRS are needed only for tests, compression support at run-time
84d361
# is optional soft dependency.
84d361
BuildRequires:  coreutils
84d361
BuildRequires:  make
84d361
BuildRequires:  perl-generators
84d361
BuildRequires:  perl-interpreter
84d361
BuildRequires:  perl(Config)
84d361
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
84d361
# File::Copy not used
84d361
BuildRequires:  perl(Getopt::Std)
84d361
BuildRequires:  perl(strict)
84d361
# Run-time:
84d361
BuildRequires:  perl(Carp)
84d361
BuildRequires:  perl(constant)
84d361
BuildRequires:  perl(Cwd)
84d361
BuildRequires:  perl(Data::Dumper)
84d361
BuildRequires:  perl(Exporter)
84d361
BuildRequires:  perl(File::Basename)
84d361
BuildRequires:  perl(File::Find)
84d361
BuildRequires:  perl(File::Path)
84d361
BuildRequires:  perl(File::Spec) >= 0.82
84d361
BuildRequires:  perl(File::Spec::Unix)
84d361
BuildRequires:  perl(Getopt::Long)
84d361
BuildRequires:  perl(IO::File)
84d361
BuildRequires:  perl(IO::Handle)
84d361
BuildRequires:  perl(IO::Zlib) >= 1.01
84d361
BuildRequires:  perl(Pod::Usage)
84d361
# Time::Local not used on Linux
84d361
BuildRequires:  perl(vars)
84d361
BuildRequires:  perl(warnings)
84d361
# Optional run-time:
84d361
BuildRequires:  perl(IO::Compress::Bzip2) >= 2.015
84d361
%if !%{defined perl_bootstrap}
84d361
BuildRequires:  perl(IO::Compress::Xz)
84d361
%endif
84d361
# IO::String not used if perl supports useperlio which is true
84d361
# Use Compress::Zlib's version for IO::Uncompress::Bunzip2
84d361
BuildRequires:  perl(IO::Uncompress::Bunzip2) >= 2.015
84d361
%if !%{defined perl_bootstrap}
84d361
BuildRequires:  perl(IO::Uncompress::UnXz)
84d361
BuildRequires:  perl(Text::Diff)
84d361
%endif
84d361
# Tests:
84d361
BuildRequires:  perl(File::Copy)
84d361
BuildRequires:  perl(File::Temp)
84d361
BuildRequires:  perl(FindBin)
84d361
BuildRequires:  perl(lib)
84d361
BuildRequires:  perl(Test::Harness) >= 2.26
84d361
BuildRequires:  perl(Test::More)
84d361
# Optional tests:
84d361
%if %{with perl_Archive_Tar_enables_optional_test} && !%{defined perl_bootstrap}
84d361
BuildRequires:  perl(IPC::Cmd)
84d361
BuildRequires:  perl(Test::Pod) >= 0.95
84d361
%endif
84d361
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
84d361
Requires:       perl(IO::Zlib) >= 1.01
84d361
# Optional run-time:
84d361
Requires:       perl(IO::Compress::Bzip2) >= 2.015
84d361
%if !%{defined perl_bootstrap}
84d361
Requires:       perl(IO::Compress::Xz)
84d361
%endif
84d361
# IO::String not used if perl supports useperlio which is true
84d361
# Use Compress::Zlib's version for IO::Uncompress::Bunzip2
84d361
Requires:       perl(IO::Uncompress::Bunzip2) >= 2.015
84d361
%if !%{defined perl_bootstrap}
84d361
Requires:       perl(IO::Uncompress::UnXz)
84d361
Requires:       perl(Text::Diff)
84d361
%endif
84d361
84d361
# Remove under-specified dependencies
84d361
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(IO::Zlib\\)$
84d361
84d361
%description
84d361
Archive::Tar provides an object oriented mechanism for handling tar
84d361
files.  It provides class methods for quick and easy files handling
84d361
while also allowing for the creation of tar file objects for custom
84d361
manipulation.  If you have the IO::Zlib module installed, Archive::Tar
84d361
will also support compressed or gzipped tar files.
84d361
84d361
%prep
84d361
%setup -q -n Archive-Tar-%{version}
84d361
%patch0 -p1 -b .orig
84d361
84d361
%build
84d361
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
84d361
%{make_build}
84d361
84d361
%install
84d361
%{make_install}
84d361
%{_fixperms} %{buildroot}/*
84d361
84d361
%check
84d361
make test
84d361
84d361
%files
84d361
%doc CHANGES README
84d361
%{_bindir}/*
84d361
%{perl_vendorlib}/Archive/
84d361
%{_mandir}/man3/*.3*
84d361
%{_mandir}/man1/*.1*
84d361
84d361
84d361
%changelog
84d361
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.38-3
84d361
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
84d361
84d361
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.38-2
84d361
- Perl 5.32 re-rebuild of bootstrapped packages
84d361
84d361
* Thu Jun 25 2020 Petr Pisar <ppisar@redhat.com> - 2.38-1
84d361
- 2.38 bump
84d361
84d361
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.36-456
84d361
- Increase release to favour standalone package
84d361
84d361
* Fri Feb 14 2020 Petr Pisar <ppisar@redhat.com> - 2.36-2
84d361
- Do not require non-core IO::Compress::Xz and IO::Uncompress::UnXz modules on
84d361
  bootstrapping
84d361
84d361
* Mon Feb 03 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.36-1
84d361
- 2.36 bump
84d361
84d361
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.32-441
84d361
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
84d361
84d361
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.32-440
84d361
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
84d361
84d361
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.32-439
84d361
- Perl 5.30 re-rebuild of bootstrapped packages
84d361
84d361
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.32-438
84d361
- Increase release to favour standalone package
84d361
84d361
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.32-2
84d361
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
84d361
84d361
* Thu Sep 13 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.32-1
84d361
- 2.32 bump
84d361
84d361
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.30-418
84d361
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
84d361
84d361
* Sat Jun 30 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.30-417
84d361
- Perl 5.28 re-rebuild of bootstrapped packages
84d361
84d361
* Tue Jun 26 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.30-416
84d361
- Increase release to favour standalone package
84d361
84d361
* Tue Jun 19 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.30-1
84d361
- 2.30 bump
84d361
84d361
* Fri Jun 08 2018 Petr Pisar <ppisar@redhat.com> - 2.28-1
84d361
- 2.28 bump
84d361
- Fixes CVE-2018-12015 (directory traversal) (bug #1588761)
84d361
84d361
* Wed Apr 04 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.26-6
84d361
- Do not run optional test on RHEL
84d361
84d361
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.26-5
84d361
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
84d361
84d361
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.26-4
84d361
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
84d361
84d361
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.26-3
84d361
- Perl 5.26 re-rebuild of bootstrapped packages
84d361
84d361
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.26-2
84d361
- Perl 5.26 rebuild
84d361
84d361
* Mon May 15 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.26-1
84d361
- 2.26 bump
84d361
84d361
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.24-2
84d361
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
84d361
84d361
* Mon Dec 19 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.24-1
84d361
- 2.24 bump
84d361
84d361
* Fri Dec 16 2016 Petr Pisar <ppisar@redhat.com> - 2.22-1
84d361
- 2.22 bump
84d361
84d361
* Fri Dec 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.20-1
84d361
- 2.20 bump
84d361
84d361
* Tue Nov 08 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.18-1
84d361
- 2.18 bump
84d361
84d361
* Wed Nov 02 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.16-1
84d361
- 2.16 bump
84d361
84d361
* Fri Oct 21 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.14-1
84d361
- 2.14 bump
84d361
84d361
* Mon Oct 17 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.12-1
84d361
- 2.12 bump
84d361
84d361
* Fri Jul 29 2016 Petr Pisar <ppisar@redhat.com> - 2.10-1
84d361
- 2.10 bump
84d361
84d361
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.08-3
84d361
- Perl 5.24 re-rebuild of bootstrapped packages
84d361
84d361
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.08-2
84d361
- Perl 5.24 rebuild
84d361
84d361
* Thu May 12 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.08-1
84d361
- 2.08 bump
84d361
84d361
* Tue Apr 26 2016 Petr Pisar <ppisar@redhat.com> - 2.06-1
84d361
- 2.06 bump
84d361
84d361
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.04-348
84d361
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
84d361
84d361
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.04-347
84d361
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
84d361
84d361
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.04-346
84d361
- Perl 5.22 re-rebuild of bootstrapped packages
84d361
84d361
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.04-345
84d361
- Increase release to favour standalone package
84d361
84d361
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.04-2
84d361
- Perl 5.22 rebuild
84d361
84d361
* Tue Dec 16 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.04-1
84d361
- 2.04 bump
84d361
84d361
* Wed Dec 10 2014 Petr Pisar <ppisar@redhat.com> - 2.02-2
84d361
- Remove unneeded dependencies
84d361
- Remove annoying sleep after warnings in the build script
84d361
84d361
* Thu Sep 18 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.02-1
84d361
- 2.02 bump
84d361
84d361
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.00-3
84d361
- Perl 5.20 re-rebuild of bootstrapped packages
84d361
84d361
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.00-2
84d361
- Perl 5.20 rebuild
84d361
84d361
* Mon Jun 23 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.00-1
84d361
- 2.00 bump
84d361
84d361
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.96-2
84d361
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
84d361
84d361
* Fri Oct 25 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1.96-1
84d361
- 1.96 bump
84d361
84d361
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1.92-4
84d361
- Perl 5.18 re-rebuild of bootstrapped packages
84d361
84d361
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.92-3
84d361
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
84d361
84d361
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1.92-2
84d361
- Perl 5.18 rebuild
84d361
84d361
* Thu Jun 20 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1.92-1
84d361
- 1.92 bump
84d361
- Use DESTDIR rather than PERL_INSTALL_ROOT
84d361
- Update dependencies
84d361
84d361
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.90-3
84d361
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
84d361
84d361
* Tue Sep 18 2012 Jitka Plesnikova <jplesnik@redhat.com> - 1.90-2
84d361
- Add BRs perl(lib), perl(IO::File)
84d361
84d361
* Thu Sep 13 2012 Jitka Plesnikova <jplesnik@redhat.com> - 1.90-1
84d361
- 1.90 bump
84d361
84d361
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.88-5
84d361
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
84d361
84d361
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 1.88-4
84d361
- Perl 5.16 re-rebuild of bootstrapped packages
84d361
84d361
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 1.88-3
84d361
- Perl 5.16 rebuild
84d361
84d361
* Mon Jun 04 2012 Petr Šabata <contyk@redhat.com> - 1.88-2
84d361
- 1.88 bump
84d361
- Drop command macros
84d361
84d361
* Fri Jun 01 2012 Petr Pisar <ppisar@redhat.com> - 1.84-2
84d361
- Omit optional Test::Pod tests on bootstrap
84d361
84d361
* Wed Mar 14 2012 Marcela Mašláňová <mmaslano@redhat.com> - 1.84-1
84d361
- 1.84 bump #802981 
84d361
84d361
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.82-2
84d361
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
84d361
84d361
* Tue Nov 22 2011 Petr Šabata <contyk@redhat.com> - 1.82-1
84d361
- 1.82 bump
84d361
84d361
* Fri Oct 14 2011 Petr Sabata <contyk@redhat.com> - 1.80-1
84d361
- 1.80 bump
84d361
84d361
* Fri Sep 09 2011 Petr Pisar <ppisar@redhat.com> - 1.78-1
84d361
- 1.78 bump
84d361
- Remove BuildRoot and defattr code from spec
84d361
84d361
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.76-3
84d361
- Perl mass rebuild
84d361
84d361
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.76-2
84d361
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
84d361
84d361
* Mon Jan 10 2011 Petr Pisar <ppisar@redhat.com> - 1.76-1
84d361
- 1.76 bump
84d361
84d361
* Mon Jan 03 2011 Petr Sabata <psabata@redhat.com> - 1.74-1
84d361
- 1.74 bump
84d361
84d361
* Fri Nov 19 2010 Petr Pisar <ppisar@redhat.com> - 1.72-1
84d361
- 1.72 bump
84d361
84d361
* Tue Sep 14 2010 Petr Pisar <ppisar@redhat.com> - 1.68-1
84d361
- 1.68 bump
84d361
84d361
* Tue Jul 13 2010 Petr Pisar <ppisar@redhat.com> - 1.64-1
84d361
- 1.64 bump
84d361
84d361
* Tue Jul 13 2010 Petr Pisar <ppisar@redhat.com> - 1.62-1
84d361
- 1.62 bump (bug #607687)
84d361
84d361
* Thu Aug 23 2007 Robin Norwood <rnorwood@redhat.com> - 1.34-1
84d361
- Upgrade to latest upstream version: 1.34
84d361
- Fix license tag
84d361
- Fix BuildRequires for ExtUtils::MakeMaker and Test::Pod
84d361
84d361
* Mon Jun 04 2007 Robin Norwood <rnorwood@redhat.com> - 1.32-1
84d361
- Upgrade to latest upstream version: 1.32
84d361
84d361
* Mon Mar 05 2007 Robin Norwood <rnorwood@redhat.com> - 1.30-4
84d361
- Fix changelog
84d361
84d361
* Mon Feb 19 2007 Robin Norwood <rnorwood@redhat.com> - 1.30-3
84d361
- Incorporate specfile improvements from Jose Oliveira.
84d361
84d361
* Fri Feb 16 2007 Robin Norwood <rnorwood@redhat.com> - 1.30-2
84d361
- Resolves: rhbz#226239 - Remove tabs from spec file for package review
84d361
84d361
* Tue Sep 19 2006 Robin Norwood <rnorwood@redhat.com> - 1.30-1
84d361
- Bump to 1.30
84d361
84d361
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.29-1.1
84d361
- rebuild
84d361
84d361
* Wed Mar 08 2006 Jason Vas Dias <jvdias@redhat.com> - 1.29-1
84d361
- Upgrade to upstream version 1.29
84d361
84d361
* Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 1.28-1
84d361
- Upgrade to upstream version 1.28
84d361
- Rebuild for perl-5.8.8
84d361
84d361
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
84d361
- rebuilt for new gcc
84d361
84d361
* Sun Nov 06 2005 Florian La Roche <laroche@redhat.com>
84d361
- 1.26
84d361
84d361
* Mon Apr 25 2005 Warren Togami <wtogami@redhat.com> - 1.23-4
84d361
- remove beehive workaround
84d361
84d361
* Sun Apr 03 2005 Jose Pedro Oliveira <jpo@di.uminho.pt> - 1.23-1
84d361
- Update to 1.23.
84d361
- Bring up to date with current Fedora.Extras perl spec template.
84d361
84d361
* Wed Sep 22 2004 Chip Turner <cturner@redhat.com> 1.08-3
84d361
- rebuild
84d361
84d361
* Fri Feb 13 2004 Chip Turner <cturner@redhat.com> 1.08-1
84d361
- update to upstream 1.08
84d361
84d361
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
84d361
- rebuilt
84d361
84d361
* Tue Aug  6 2002 Chip Turner <cturner@redhat.com>
84d361
- automated release bump and build
84d361
84d361
* Fri Feb 08 2002 cturner@redhat.com
84d361
- Specfile autogenerated
84d361