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