diff --git a/perl-Archive-Zip.changes b/perl-Archive-Zip.changes index 4aad74d..3aeeadf 100644 --- a/perl-Archive-Zip.changes +++ b/perl-Archive-Zip.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Nov 24 18:49:23 UTC 2010 - chris@computersalat.de + +- recreated by cpanspec 1.78 + o fix deps +- noarch pkg + ------------------------------------------------------------------- Sun Jan 10 15:43:32 CET 2010 - jengelh@medozas.de diff --git a/perl-Archive-Zip.spec b/perl-Archive-Zip.spec index 8dddd55..cd3c505 100644 --- a/perl-Archive-Zip.spec +++ b/perl-Archive-Zip.spec @@ -17,58 +17,106 @@ # norootforbuild - Name: perl-Archive-Zip -Url: http://cpan.org/modules/by-module/Archive/ -BuildRequires: perl-Compress-Zlib zip +%define cpan_name Archive-Zip +Summary: Provide an interface to ZIP archive files Version: 1.30 -Release: 2 -Requires: perl = %{perl_version} -AutoReqProv: on +Release: 1 +License: GPL+ or Artistic Group: Development/Libraries/Perl -License: Artistic License .. -Summary: perl-Archive-Zip -Source: Archive-Zip-%{version}.tar.bz2 +Url: http://search.cpan.org/dist/Archive-Zip/ +#Source: http://www.cpan.org/authors/id/A/AD/ADAMK/Archive-Zip-1.30.tar.gz +Source: %{cpan_name}-%{version}.tar.bz2 +BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +%if 0%{?suse_version} < 1120 +BuildRequires: perl-macros +%endif +BuildRequires: perl(Test::More) >= 0.42 +BuildRequires: perl(Compress::Raw::Zlib) >= 2.017 +BuildRequires: perl(File::Basename) +BuildRequires: perl(File::Copy) +BuildRequires: perl(File::Find) +BuildRequires: perl(File::Path) +BuildRequires: perl(File::Spec) >= 0.80 +BuildRequires: perl(File::Temp) +BuildRequires: perl(IO::File) +BuildRequires: perl(IO::Handle) +BuildRequires: perl(IO::Seekable) +BuildRequires: perl(Time::Local) +# +Requires: perl = %{perl_version} +Requires: perl(Compress::Raw::Zlib) >= 2.017 +Requires: perl(File::Basename) +Requires: perl(File::Copy) +Requires: perl(File::Find) +Requires: perl(File::Path) +Requires: perl(File::Spec) >= 0.80 +Requires: perl(File::Temp) +Requires: perl(IO::File) +Requires: perl(IO::Handle) +Requires: perl(IO::Seekable) +Requires: perl(Time::Local) %description -Perl module for creation and manipulation of ZIP-files +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. + +This module uses the the Compress::Raw::Zlib manpage library to read and +write the compressed streams inside the files. + +One can use the Archive::Zip::MemberRead manpage to read the zip file +archive members as if they were files. Authors: -------- - Ned Kon + Adam Kennedy + Previously maintained by Steve Peters . + File attributes code by Maurice Aubrey . + Originally by Ned Konz . %prep -%setup -n Archive-Zip-%{version} -q +%setup -q -n %{cpan_name}-%{version} %build -perl Makefile.PL -make %{?_smp_mflags} +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} %check -make test +%{__make} test %install -[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT -make DESTDIR=$RPM_BUILD_ROOT install_vendor +%perl_make_install +### since 11.4 perl_process_packlist +### removes .packlist, perllocal.pod files +%if 0%{?suse_version} > 1130 %perl_process_packlist -rm -f $RPM_BUILD_ROOT/%{perl_vendorlib}/Archive/Zip.pod - -%files -%defattr(-,root,root) -%doc Changes MANIFEST README examples -%doc %{_mandir}/man?/* -%dir %{perl_vendorlib}/Archive -%{perl_vendorlib}/Archive/Zip -%{perl_vendorlib}/Archive/Zip.pm -%dir %{perl_vendorarch}/auto/Archive -%{perl_vendorarch}/auto/Archive/Zip -/usr/bin/crc32 -/var/adm/perl-modules/perl-Archive-Zip +%else +# do not perl_process_packlist +# remove .packlist file +%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch +# remove perllocal.pod file +%{__rm} -f $RPM_BUILD_ROOT%perl_archlib/perllocal.pod +%endif +%perl_gen_filelist %clean -[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT +%{__rm} -rf $RPM_BUILD_ROOT + +%files -f %{name}.files +%defattr(-,root,root,-) +%doc Changes LICENSE README examples %changelog