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