diff --git a/.cvsignore b/.cvsignore index e69de29..760443f 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Archive-Zip-1.12.tar.gz diff --git a/perl-Archive-Zip.spec b/perl-Archive-Zip.spec new file mode 100644 index 0000000..f03b3f8 --- /dev/null +++ b/perl-Archive-Zip.spec @@ -0,0 +1,95 @@ +%{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)} + +Name: perl-Archive-Zip +Version: 1.12 +Release: 2 + +Summary: Perl library for accessing Zip archives + +Group: Development/Libraries +License: GPL or Artistic +URL: http://search.cpan.org/dist/Archive-Zip/ +Source0: http://www.cpan.org/authors/id/N/NE/NEDKONZ/Archive-Zip-1.12.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: perl(Compress::Zlib), perl(File::Temp) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +The Archive::Zip module allows a Perl program to create, manipulate, +read, and write Zip archive files. +Zip archives can be created, or you can read from existing zip files. +Once created, they can be written to files, streams, or strings. +Members can be added, removed, extracted, replaced, rearranged, and +enumerated. They can also be renamed or have their dates, comments, +or other attributes queried or modified. Their data can be compressed +or uncompressed as needed. Members can be created from members in +existing Zip files, or from existing directories, files, or strings. + + +%prep +%setup -q -n Archive-Zip-%{version} +%{__perl} -pi -e 's|/usr/local/bin/perl|%{__perl}|' examples/*.pl + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + + +%check || : +make test + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc Changes README TODO docs/ examples/ +%{_bindir}/crc32 +%{perl_vendorlib}/Archive/ +%{_mandir}/man3/Archive*.3* + + +%changelog +* Fri Apr 7 2005 Michael Schwendt +- rebuilt + +* Sun Aug 15 2004 Ville Skyttä - 0:1.12-0.fdr.1 +- Update to 1.12. + +* Tue Jul 6 2004 Ville Skyttä - 0:1.11-0.fdr.1 +- Update to 1.11. +- Bring up to date with current fedora.us Perl spec template. + +* Sun Apr 18 2004 Ville Skyttä - 0:1.10-0.fdr.1 +- Update to 1.10. +- Reduce directory ownership bloat. +- Require perl(:MODULE_COMPAT_*). + +* Fri Nov 28 2003 Ville Skyttä - 0:1.09-0.fdr.1 +- Update to 1.09. + +* Wed Oct 22 2003 Ville Skyttä - 0:1.08-0.fdr.1 +- Update to 1.08. + +* Tue Oct 21 2003 Ville Skyttä - 0:1.07-0.fdr.1 +- Update to 1.07. + +* Sun Sep 14 2003 Ville Skyttä - 0:1.06-0.fdr.1 +- Update to 1.06. +- Specfile cleanups. + +* Sun Jun 8 2003 Ville Skyttä - 0:1.05-0.fdr.1 +- First build. diff --git a/sources b/sources index e69de29..0c5d68f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e8789249d24f283639766295f6eace17 Archive-Zip-1.12.tar.gz