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