3038bc
Name:           perl-Archive-Zip
3038bc
Version:        1.30
7d74d9
Release:        11%{?dist}
3038bc
Summary:        Perl library for accessing Zip archives
3038bc
3038bc
Group:          Development/Libraries
3038bc
License:        GPL+ or Artistic
3038bc
URL:            http://search.cpan.org/dist/Archive-Zip/
3038bc
Source0:        http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Archive-Zip-%{version}.tar.gz
3038bc
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
3038bc
BuildArch:      noarch
3038bc
#https://rt.cpan.org/Public/Bug/Display.html?id=54827
3038bc
Patch0:         Archive-Zip-cpan-rt-54827.patch
3038bc
3038bc
BuildRequires:  perl(ExtUtils::MakeMaker)
3038bc
# Run-time
3038bc
BuildRequires:  perl(Carp)
3038bc
BuildRequires:  perl(constant)
3038bc
BuildRequires:  perl(Cwd)
3038bc
BuildRequires:  perl(Compress::Raw::Zlib)
3038bc
BuildRequires:  perl(Exporter)
3038bc
BuildRequires:  perl(File::Path)
3038bc
BuildRequires:  perl(File::Spec) >= 0.80
3038bc
BuildRequires:  perl(File::Temp)
3038bc
BuildRequires:  perl(IO::File)
3038bc
BuildRequires:  perl(IO::Seekable)
3038bc
BuildRequires:  perl(Time::Local)
3038bc
# Tests
3038bc
BuildRequires:  perl(Data::Dumper)
3038bc
BuildRequires:  perl(File::Spec::Unix)
3038bc
BuildRequires:  perl(IO::Scalar)
3038bc
BuildRequires:  perl(Test::More)
3038bc
BuildRequires:  unzip
3038bc
BuildRequires:  zip
3038bc
3038bc
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
3038bc
3038bc
%description
3038bc
The Archive::Zip module allows a Perl program to create, manipulate,
3038bc
read, and write Zip archive files.
3038bc
Zip archives can be created, or you can read from existing zip files.
3038bc
Once created, they can be written to files, streams, or strings.
3038bc
Members can be added, removed, extracted, replaced, rearranged, and
3038bc
enumerated.  They can also be renamed or have their dates, comments,
3038bc
or other attributes queried or modified.  Their data can be compressed
3038bc
or uncompressed as needed.  Members can be created from members in
3038bc
existing Zip files, or from existing directories, files, or strings.
3038bc
3038bc
3038bc
%prep
3038bc
%setup -q -n Archive-Zip-%{version}
3038bc
%patch0 -p1
3038bc
%{__perl} -pi -e 's|^#!/bin/perl|#!%{__perl}|' examples/*.pl
3038bc
%{__perl} -pi -e 's|^#!/usr/local/bin/perl|#!%{__perl}|' examples/selfex.pl
3038bc
3038bc
3038bc
%build
3038bc
%{__perl} Makefile.PL INSTALLDIRS=vendor
3038bc
make %{?_smp_mflags}
3038bc
3038bc
3038bc
%install
3038bc
rm -rf $RPM_BUILD_ROOT
3038bc
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
3038bc
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
3038bc
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
3038bc
%{_fixperms} $RPM_BUILD_ROOT/*
3038bc
3038bc
3038bc
%check
3038bc
make test
3038bc
3038bc
3038bc
%clean
3038bc
rm -rf $RPM_BUILD_ROOT
3038bc
3038bc
3038bc
%files
3038bc
%defattr(-,root,root,-)
3038bc
%doc Changes LICENSE README examples/
3038bc
%{_bindir}/crc32
3038bc
%{perl_vendorlib}/Archive/
3038bc
%{_mandir}/man3/Archive*.3*
3038bc
3038bc
3038bc
%changelog
7d74d9
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.30-11
7d74d9
- Mass rebuild 2013-12-27
7d74d9
3038bc
* Wed Aug 15 2012 Daniel Mach <dmach@redhat.com> - 1.30-10.1
3038bc
- Rebuild for perl 5.16
3038bc
3038bc
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.30-10
3038bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3038bc
3038bc
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 1.30-9
3038bc
- Perl 5.16 rebuild
3038bc
- Specify all dependencies
3038bc
3038bc
* Mon Mar 19 2012 Marcela Mašláňová <mmaslano@redhat.com> - 1.30-8
3038bc
- 543660 apply patch from rt cpan 54827
3038bc
3038bc
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.30-7
3038bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3038bc
3038bc
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 1.30-6
3038bc
- Perl mass rebuild
3038bc
3038bc
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.30-5
3038bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3038bc
3038bc
* Wed Dec 15 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.30-4
3038bc
- 661697 rebuild for fixing problems with vendorach/lib
3038bc
3038bc
* Thu Apr 29 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.30-3
3038bc
- Mass rebuild with perl-5.12.0
3038bc
3038bc
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.30-2
3038bc
- rebuild against perl 5.10.1
3038bc
3038bc
* Mon Jul 27 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1.30-1
3038bc
- update to 1.30
3038bc
3038bc
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.23-3
3038bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
3038bc
3038bc
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.23-2
3038bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3038bc
3038bc
* Fri May 16 2008 Steven Pritchard <steve@kspei.com> 1.23-1
3038bc
- Update to 1.23.
3038bc
3038bc
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.20-5
3038bc
- Rebuild for perl 5.10 (again)
3038bc
3038bc
* Fri Jan 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.20-4
3038bc
- rebuild for new perl
3038bc
3038bc
* Mon Aug 23 2007 Robin Norwood <rnorwood@redhat.com> - 1.20-3
3038bc
- Fix license tag
3038bc
3038bc
* Wed Jun 27 2007 Robin Norwood <rnorwood@redhat.com> - 1.20-2
3038bc
- Resolves: rhbz#226240
3038bc
- Incorporate changes from Steven Pritchard's package review
3038bc
- Fix find option order.
3038bc
- Use fixperms macro instead of our own chmod incantation.
3038bc
- Remove check macro cruft.
3038bc
- Update build dependencies.
3038bc
- Package LICENSE.
3038bc
- BR unzip, zip for better test coverage.
3038bc
3038bc
* Tue Jun 05 2007 Robin Norwood <rnorwood@redhat.com> - 1.20-1
3038bc
- Update to latest CPAN version: 1.20
3038bc
- Fix broken changelog
3038bc
3038bc
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.16-1.2.1
3038bc
- rebuild
3038bc
3038bc
* Fri Feb 03 2006 Jason Vas Dias<jvdias@redhat.com> - 1.16-1.2
3038bc
- rebuilt for new perl-5.8.8
3038bc
3038bc
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
3038bc
- rebuilt for new gcc
3038bc
3038bc
* Mon Jul 11 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.16-1
3038bc
- Update to 1.16.
3038bc
3038bc
* Thu Apr 14 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.14-1
3038bc
- Update to 1.14.
3038bc
3038bc
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
3038bc
- rebuilt
3038bc
3038bc
* Sun Aug 15 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.12-0.fdr.1
3038bc
- Update to 1.12.
3038bc
3038bc
* Tue Jul  6 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.11-0.fdr.1
3038bc
- Update to 1.11.
3038bc
- Bring up to date with current fedora.us Perl spec template.
3038bc
3038bc
* Sun Apr 18 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.10-0.fdr.1
3038bc
- Update to 1.10.
3038bc
- Reduce directory ownership bloat.
3038bc
- Require perl(:MODULE_COMPAT_*).
3038bc
3038bc
* Fri Nov 28 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.09-0.fdr.1
3038bc
- Update to 1.09.
3038bc
3038bc
* Wed Oct 22 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.08-0.fdr.1
3038bc
- Update to 1.08.
3038bc
3038bc
* Tue Oct 21 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.07-0.fdr.1
3038bc
- Update to 1.07.
3038bc
3038bc
* Sun Sep 14 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.06-0.fdr.1
3038bc
- Update to 1.06.
3038bc
- Specfile cleanups.
3038bc
3038bc
* Sun Jun  8 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.05-0.fdr.1
3038bc
- First build.