2f1b9b
Name:           perl-Archive-Zip
2f1b9b
Version:        1.59
2f1b9b
Release:        5%{?dist}
2f1b9b
Summary:        Perl library for accessing Zip archives
2f1b9b
2f1b9b
Group:          Development/Libraries
2f1b9b
# lib/Archive/Zip/Member.pm:    (GPL+ or Artistic) and BSD
2f1b9b
#                               (The _mapPermissionsToUnix() comments are
2f1b9b
#                               copied from BSD-licensed unzip)
2f1b9b
# other files:                  GPL+ or Artistic
2f1b9b
License:        (GPL+ or Artistic) and BSD
2f1b9b
URL:            http://search.cpan.org/dist/Archive-Zip/
2f1b9b
Source0:        http://search.cpan.org/CPAN/authors/id/P/PH/PHRED/Archive-Zip-%{version}.tar.gz
2f1b9b
# Fix CVE-2018-10860 (a directory and symbolic link traversal), bug #1596131,
2f1b9b
# in upstream after 1.60.
2f1b9b
Patch0:         Archive-Zip-1.60-Prevent-from-traversing-symlinks-and-parent-director.patch
2f1b9b
BuildArch:      noarch
2f1b9b
BuildRequires:  coreutils
2f1b9b
BuildRequires:  findutils
2f1b9b
# For a Git binary patch
2f1b9b
BuildRequires:  git-core
2f1b9b
BuildRequires:  make
2f1b9b
BuildRequires:  perl
2f1b9b
BuildRequires:  perl-generators
2f1b9b
BuildRequires:  perl(Config)
2f1b9b
BuildRequires:  perl(ExtUtils::MakeMaker)
2f1b9b
BuildRequires:  perl(strict)
2f1b9b
# Run-time
2f1b9b
BuildRequires:  perl(bytes)
2f1b9b
BuildRequires:  perl(Carp)
2f1b9b
BuildRequires:  perl(Compress::Raw::Zlib)
2f1b9b
BuildRequires:  perl(constant)
2f1b9b
BuildRequires:  perl(Cwd)
2f1b9b
BuildRequires:  perl(Data::Dumper)
2f1b9b
BuildRequires:  perl(Encode)
2f1b9b
BuildRequires:  perl(Exporter)
2f1b9b
BuildRequires:  perl(File::Basename)
2f1b9b
BuildRequires:  perl(File::Copy)
2f1b9b
BuildRequires:  perl(File::Find)
2f1b9b
BuildRequires:  perl(File::Path)
2f1b9b
BuildRequires:  perl(File::Spec) >= 0.80
2f1b9b
BuildRequires:  perl(File::Temp)
2f1b9b
BuildRequires:  perl(FileHandle)
2f1b9b
BuildRequires:  perl(integer)
2f1b9b
BuildRequires:  perl(IO::File)
2f1b9b
BuildRequires:  perl(IO::Seekable)
2f1b9b
BuildRequires:  perl(Time::Local)
2f1b9b
BuildRequires:  perl(vars)
2f1b9b
# Tests
2f1b9b
BuildRequires:  perl(File::Spec::Unix)
2f1b9b
# IO::Scalar not used
2f1b9b
BuildRequires:  perl(lib)
2f1b9b
BuildRequires:  perl(Test::MockModule)
2f1b9b
BuildRequires:  perl(Test::More) >= 0.88
2f1b9b
BuildRequires:  perl(utf8)
2f1b9b
BuildRequires:  perl(warnings)
2f1b9b
BuildRequires:  unzip
2f1b9b
BuildRequires:  zip
2f1b9b
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
2f1b9b
Requires:       perl(Exporter)
2f1b9b
Requires:       perl(File::Spec) >= 0.80
2f1b9b
2f1b9b
# Remove under-specified dependencies
2f1b9b
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(File::Spec\\)$
2f1b9b
2f1b9b
%description
2f1b9b
The Archive::Zip module allows a Perl program to create, manipulate,
2f1b9b
read, and write Zip archive files.
2f1b9b
Zip archives can be created, or you can read from existing zip files.
2f1b9b
Once created, they can be written to files, streams, or strings.
2f1b9b
Members can be added, removed, extracted, replaced, rearranged, and
2f1b9b
enumerated.  They can also be renamed or have their dates, comments,
2f1b9b
or other attributes queried or modified.  Their data can be compressed
2f1b9b
or uncompressed as needed.  Members can be created from members in
2f1b9b
existing Zip files, or from existing directories, files, or strings.
2f1b9b
2f1b9b
2f1b9b
%prep
2f1b9b
%autosetup -S git -n Archive-Zip-%{version}
2f1b9b
perl -MConfig -pi -e 's|^#!/usr/local/bin/perl|$Config{startperl}|' \
2f1b9b
    examples/selfex.pl
2f1b9b
for F in examples/*.pl; do
2f1b9b
    perl -MExtUtils::MakeMaker -e "ExtUtils::MM_Unix->fixin(q{$F})"
2f1b9b
done
2f1b9b
2f1b9b
2f1b9b
%build
2f1b9b
perl Makefile.PL INSTALLDIRS=vendor
2f1b9b
make %{?_smp_mflags}
2f1b9b
2f1b9b
2f1b9b
%install
2f1b9b
make pure_install DESTDIR=$RPM_BUILD_ROOT
2f1b9b
find $RPM_BUILD_ROOT -type f -name .packlist -delete
2f1b9b
%{_fixperms} $RPM_BUILD_ROOT/*
2f1b9b
2f1b9b
2f1b9b
%check
2f1b9b
make test
2f1b9b
2f1b9b
2f1b9b
%files
2f1b9b
%doc Changes examples/
2f1b9b
%{_bindir}/crc32
2f1b9b
%{perl_vendorlib}/Archive/
2f1b9b
%{_mandir}/man3/Archive*.3*
2f1b9b
2f1b9b
2f1b9b
%changelog
2f1b9b
* Fri Mar 29 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.59-5
2f1b9b
- Rebuild with enable hardening (bug #1636329)
2f1b9b
2f1b9b
* Tue Jul 10 2018 Petr Pisar <ppisar@redhat.com> - 1.59-4
2f1b9b
- Fix CVE-2018-10860 (a directory and symbolic link traversal) (bug #1596131)
2f1b9b
2f1b9b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.59-3
2f1b9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2f1b9b
2f1b9b
* Tue Sep 20 2016 Petr Pisar <ppisar@redhat.com> - 1.59-2
2f1b9b
- License tag corrected to ((GPL+ or Artistic) and BSD)
2f1b9b
2f1b9b
* Fri Aug 12 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.59-1
2f1b9b
- 1.59 bump
2f1b9b
2f1b9b
* Mon Aug 08 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.58-1
2f1b9b
- 1.58 bump
2f1b9b
2f1b9b
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.57-2
2f1b9b
- Perl 5.24 rebuild
2f1b9b
2f1b9b
* Mon Apr 04 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.57-1
2f1b9b
- 1.57 bump
2f1b9b
2f1b9b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.56-2
2f1b9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2f1b9b
2f1b9b
* Mon Dec 21 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.56-1
2f1b9b
- 1.56 bump
2f1b9b
2f1b9b
* Mon Dec 07 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.55-1
2f1b9b
- 1.55 bump
2f1b9b
2f1b9b
* Fri Sep 25 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.53-1
2f1b9b
- 1.53 bump
2f1b9b
2f1b9b
* Tue Sep 22 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.51-1
2f1b9b
- 1.51 bump
2f1b9b
2f1b9b
* Wed Aug 26 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.50-1
2f1b9b
- 1.50 bump
2f1b9b
2f1b9b
* Mon Aug 03 2015 Petr Pisar <ppisar@redhat.com> - 1.49-1
2f1b9b
- 1.49 bump
2f1b9b
2f1b9b
* Fri Jun 19 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.48-1
2f1b9b
- 1.48 bump
2f1b9b
2f1b9b
* Thu Jun 18 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.47-1
2f1b9b
- 1.47 bump
2f1b9b
2f1b9b
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.46-3
2f1b9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2f1b9b
2f1b9b
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.46-2
2f1b9b
- Perl 5.22 rebuild
2f1b9b
2f1b9b
* Wed Mar 25 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.46-1
2f1b9b
- 1.46 bump
2f1b9b
2f1b9b
* Tue Feb 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.45-1
2f1b9b
- 1.45 bump
2f1b9b
2f1b9b
* Thu Jan 15 2015 Petr Pisar <ppisar@redhat.com> - 1.39-2
2f1b9b
- Correct dependencies
2f1b9b
- Improve sharpbang fix
2f1b9b
2f1b9b
* Wed Oct 22 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.39-1
2f1b9b
- 1.39 bump
2f1b9b
2f1b9b
* Wed Sep 10 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.38-1
2f1b9b
- 1.38 bump
2f1b9b
2f1b9b
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.37-3
2f1b9b
- Perl 5.20 rebuild
2f1b9b
2f1b9b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.37-2
2f1b9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2f1b9b
2f1b9b
* Wed Jan 15 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.37-1
2f1b9b
- 1.37 bump
2f1b9b
2f1b9b
* Thu Jan 02 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.36-1
2f1b9b
- 1.36 bump
2f1b9b
2f1b9b
* Tue Dec 10 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1.34-1
2f1b9b
- 1.34 bump
2f1b9b
2f1b9b
* Fri Nov 22 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1.33-1
2f1b9b
- 1.33 bump
2f1b9b
2f1b9b
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.30-13
2f1b9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2f1b9b
2f1b9b
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 1.30-12
2f1b9b
- Perl 5.18 rebuild
2f1b9b
2f1b9b
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.30-11
2f1b9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2f1b9b
2f1b9b
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.30-10
2f1b9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2f1b9b
2f1b9b
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 1.30-9
2f1b9b
- Perl 5.16 rebuild
2f1b9b
- Specify all dependencies
2f1b9b
2f1b9b
* Mon Mar 19 2012 Marcela Mašláňová <mmaslano@redhat.com> - 1.30-8
2f1b9b
- 543660 apply patch from rt cpan 54827
2f1b9b
2f1b9b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.30-7
2f1b9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2f1b9b
2f1b9b
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 1.30-6
2f1b9b
- Perl mass rebuild
2f1b9b
2f1b9b
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.30-5
2f1b9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2f1b9b
2f1b9b
* Wed Dec 15 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.30-4
2f1b9b
- 661697 rebuild for fixing problems with vendorach/lib
2f1b9b
2f1b9b
* Thu Apr 29 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.30-3
2f1b9b
- Mass rebuild with perl-5.12.0
2f1b9b
2f1b9b
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.30-2
2f1b9b
- rebuild against perl 5.10.1
2f1b9b
2f1b9b
* Mon Jul 27 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1.30-1
2f1b9b
- update to 1.30
2f1b9b
2f1b9b
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.23-3
2f1b9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2f1b9b
2f1b9b
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.23-2
2f1b9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2f1b9b
2f1b9b
* Fri May 16 2008 Steven Pritchard <steve@kspei.com> 1.23-1
2f1b9b
- Update to 1.23.
2f1b9b
2f1b9b
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.20-5
2f1b9b
- Rebuild for perl 5.10 (again)
2f1b9b
2f1b9b
* Fri Jan 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.20-4
2f1b9b
- rebuild for new perl
2f1b9b
2f1b9b
* Thu Aug 23 2007 Robin Norwood <rnorwood@redhat.com> - 1.20-3
2f1b9b
- Fix license tag
2f1b9b
2f1b9b
* Wed Jun 27 2007 Robin Norwood <rnorwood@redhat.com> - 1.20-2
2f1b9b
- Resolves: rhbz#226240
2f1b9b
- Incorporate changes from Steven Pritchard's package review
2f1b9b
- Fix find option order.
2f1b9b
- Use fixperms macro instead of our own chmod incantation.
2f1b9b
- Remove check macro cruft.
2f1b9b
- Update build dependencies.
2f1b9b
- Package LICENSE.
2f1b9b
- BR unzip, zip for better test coverage.
2f1b9b
2f1b9b
* Tue Jun 05 2007 Robin Norwood <rnorwood@redhat.com> - 1.20-1
2f1b9b
- Update to latest CPAN version: 1.20
2f1b9b
- Fix broken changelog
2f1b9b
2f1b9b
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.16-1.2.1
2f1b9b
- rebuild
2f1b9b
2f1b9b
* Fri Feb 03 2006 Jason Vas Dias<jvdias@redhat.com> - 1.16-1.2
2f1b9b
- rebuilt for new perl-5.8.8
2f1b9b
2f1b9b
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
2f1b9b
- rebuilt for new gcc
2f1b9b
2f1b9b
* Mon Jul 11 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.16-1
2f1b9b
- Update to 1.16.
2f1b9b
2f1b9b
* Thu Apr 14 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.14-1
2f1b9b
- Update to 1.14.
2f1b9b
2f1b9b
* Fri Apr  8 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
2f1b9b
- rebuilt
2f1b9b
2f1b9b
* Sun Aug 15 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.12-0.fdr.1
2f1b9b
- Update to 1.12.
2f1b9b
2f1b9b
* Tue Jul  6 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.11-0.fdr.1
2f1b9b
- Update to 1.11.
2f1b9b
- Bring up to date with current fedora.us Perl spec template.
2f1b9b
2f1b9b
* Sun Apr 18 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.10-0.fdr.1
2f1b9b
- Update to 1.10.
2f1b9b
- Reduce directory ownership bloat.
2f1b9b
- Require perl(:MODULE_COMPAT_*).
2f1b9b
2f1b9b
* Fri Nov 28 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.09-0.fdr.1
2f1b9b
- Update to 1.09.
2f1b9b
2f1b9b
* Wed Oct 22 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.08-0.fdr.1
2f1b9b
- Update to 1.08.
2f1b9b
2f1b9b
* Tue Oct 21 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.07-0.fdr.1
2f1b9b
- Update to 1.07.
2f1b9b
2f1b9b
* Sun Sep 14 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.06-0.fdr.1
2f1b9b
- Update to 1.06.
2f1b9b
- Specfile cleanups.
2f1b9b
2f1b9b
* Sun Jun  8 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.05-0.fdr.1
2f1b9b
- First build.