2006-12-20 18:19:48 +01:00
|
|
|
#
|
2011-11-17 16:19:25 +01:00
|
|
|
# spec file for package perl-Archive-Zip
|
2006-12-20 18:19:48 +01:00
|
|
|
#
|
2016-04-04 13:15:44 +02:00
|
|
|
# Copyright (c) 2016 SUSE LINUX 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/
|
|
|
|
#
|
|
|
|
|
2010-12-01 01:26:42 +01:00
|
|
|
|
2006-12-20 18:19:48 +01:00
|
|
|
Name: perl-Archive-Zip
|
2016-08-12 07:12:33 +02:00
|
|
|
Version: 1.59
|
2013-11-26 08:58:34 +01:00
|
|
|
Release: 0
|
2010-12-01 01:26:31 +01:00
|
|
|
%define cpan_name Archive-Zip
|
2015-06-22 07:42:59 +02:00
|
|
|
Summary: Provide an interface to ZIP archive files
|
2013-11-26 08:58:34 +01:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
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/
|
2015-06-22 07:42:59 +02:00
|
|
|
Source0: http://www.cpan.org/authors/id/P/PH/PHRED/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
2010-12-01 01:26:31 +01:00
|
|
|
BuildArch: noarch
|
2006-12-20 18:19:48 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-01 01:26:31 +01:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Compress::Raw::Zlib) >= 2.017
|
2015-12-05 18:04:39 +01:00
|
|
|
BuildRequires: perl(Test::MockModule)
|
2014-02-09 14:41:00 +01:00
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
2010-12-01 01:26:31 +01:00
|
|
|
Requires: perl(Compress::Raw::Zlib) >= 2.017
|
2013-11-26 08:58:34 +01:00
|
|
|
%{perl_requires}
|
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.
|
|
|
|
|
2015-12-05 18:04:39 +01:00
|
|
|
This module uses the Compress::Raw::Zlib library to read and write the
|
|
|
|
compressed streams inside the files.
|
2010-12-01 01:26:31 +01:00
|
|
|
|
2015-12-05 18:04:39 +01:00
|
|
|
One can use Archive::Zip::MemberRead to read the zip file archive members
|
|
|
|
as if they were files.
|
2006-12-20 18:19:48 +01:00
|
|
|
|
|
|
|
%prep
|
2010-12-01 01:26:31 +01:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2015-12-26 13:14:24 +01:00
|
|
|
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
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
|
2006-12-20 18:19:48 +01:00
|
|
|
%perl_process_packlist
|
2010-12-01 01:26:31 +01:00
|
|
|
%perl_gen_filelist
|
2006-12-20 18:19:48 +01:00
|
|
|
|
2010-12-01 01:26:31 +01:00
|
|
|
%files -f %{name}.files
|
2013-11-26 08:58:34 +01:00
|
|
|
%defattr(-,root,root,755)
|
2016-08-03 11:30:20 +02:00
|
|
|
%doc Changes examples README.md
|
2008-09-12 18:07:19 +02:00
|
|
|
|
2007-06-11 15:07:46 +02:00
|
|
|
%changelog
|