2006-12-20 18:19:48 +01:00
|
|
|
#
|
2009-08-06 17:05:41 +02:00
|
|
|
# spec file for package perl-Archive-Zip (Version 1.30)
|
2006-12-20 18:19:48 +01:00
|
|
|
#
|
2010-01-12 11:34:55 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-20 18:19:48 +01:00
|
|
|
#
|
2008-09-12 18:07:19 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-20 18:19:48 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2010-12-01 01:26:42 +01:00
|
|
|
|
2006-12-20 18:19:48 +01:00
|
|
|
Name: perl-Archive-Zip
|
2010-12-01 01:26:31 +01:00
|
|
|
%define cpan_name Archive-Zip
|
|
|
|
Summary: Provide an interface to ZIP archive files
|
2009-08-06 17:05:41 +02:00
|
|
|
Version: 1.30
|
2010-12-01 01:26:42 +01:00
|
|
|
Release: 9
|
2010-12-01 01:26:31 +01:00
|
|
|
License: GPL+ or Artistic
|
2006-12-20 18:19:48 +01:00
|
|
|
Group: Development/Libraries/Perl
|
2010-12-01 01:26:31 +01:00
|
|
|
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
|
2006-12-20 18:19:48 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-03 14:55:13 +01:00
|
|
|
%{perl_requires}
|
2010-12-01 01:26:31 +01:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
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(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)
|
2006-12-20 18:19:48 +01:00
|
|
|
|
|
|
|
%description
|
2010-12-01 01:26:31 +01:00
|
|
|
The Archive::Zip module allows a Perl program to create, manipulate, read,
|
|
|
|
and write Zip archive files.
|
2006-12-20 18:19:48 +01:00
|
|
|
|
2010-12-01 01:26:31 +01:00
|
|
|
Zip archives can be created, or you can read from existing zip files.
|
2006-12-20 18:19:48 +01:00
|
|
|
|
2010-12-01 01:26:31 +01:00
|
|
|
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.
|
2006-12-20 18:19:48 +01:00
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
2010-12-01 01:26:31 +01:00
|
|
|
Adam Kennedy <adamk@cpan.org>
|
|
|
|
Previously maintained by Steve Peters <steve@fisharerojo.org>.
|
|
|
|
File attributes code by Maurice Aubrey <maurice@lovelyfilth.com>.
|
|
|
|
Originally by Ned Konz <nedkonz@cpan.org>.
|
2006-12-20 18:19:48 +01:00
|
|
|
|
|
|
|
%prep
|
2010-12-01 01:26:31 +01:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2006-12-20 18:19:48 +01:00
|
|
|
|
|
|
|
%build
|
2010-12-01 01:26:31 +01:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
2007-06-11 15:07:46 +02:00
|
|
|
|
|
|
|
%check
|
2010-12-01 01:26:31 +01:00
|
|
|
%{__make} test
|
2006-12-20 18:19:48 +01:00
|
|
|
|
|
|
|
%install
|
2010-12-01 01:26:31 +01:00
|
|
|
%perl_make_install
|
|
|
|
### since 11.4 perl_process_packlist
|
|
|
|
### removes .packlist, perllocal.pod files
|
|
|
|
%if 0%{?suse_version} > 1130
|
2006-12-20 18:19:48 +01:00
|
|
|
%perl_process_packlist
|
2010-12-01 01:26:31 +01:00
|
|
|
%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
|
2006-12-20 18:19:48 +01:00
|
|
|
|
|
|
|
%clean
|
2010-12-01 01:26:31 +01:00
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc Changes LICENSE README examples
|
2008-09-12 18:07:19 +02:00
|
|
|
|
2007-06-11 15:07:46 +02:00
|
|
|
%changelog
|