perl-Archive-Zip/perl-Archive-Zip.spec
starlet-dx 2ac50a8aae Package upgrade
(cherry picked from commit 2084f263ccd14c8472022ee86b28593cbeb4c51d)
2022-10-24 10:38:33 +08:00

82 lines
3.2 KiB
RPMSpec

%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(File::Spec\\)$
Name: perl-Archive-Zip
Version: 1.68
Release: 1
Summary: Perl library for accessing Zip archives
License: (GPL+ or Artistic) and BSD
URL: https://metacpan.org/release/Archive-Zip
Source0: https://cpan.metacpan.org/authors/id/P/PH/PHRED/Archive-Zip-%{version}.tar.gz
BuildArch: noarch
BuildRequires: make perl-interpreter perl-generators perl(:VERSION) >= 5.4
BuildRequires: perl(Config) perl(ExtUtils::MakeMaker) >= 6.76 perl(strict)
BuildRequires: perl(:VERSION) >= 5.6 perl(bytes) perl(Carp) perl(Compress::Raw::Zlib)
BuildRequires: perl(constant) perl(Cwd) perl(Data::Dumper) perl(Encode) perl(Exporter)
BuildRequires: perl(File::Basename) perl(File::Copy) perl(File::Find) perl(File::Path)
BuildRequires: perl(File::Spec) >= 0.80 perl(File::Temp) perl(FileHandle) perl(integer)
BuildRequires: perl(IO::File) perl(IO::Seekable) perl(Time::Local) perl(vars) perl(lib)
BuildRequires: perl(File::Spec::Unix) perl(Test::More) >= 0.88
BuildRequires: perl(utf8) perl(warnings) unzip zip
BuildRequires: perl(Test::MockModule)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Exporter) perl(File::Spec) >= 0.80
%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.
This module uses the Compress::Raw::Zlib library to read and write the compressed streams inside the files.
One can use Archive::Zip::MemberRead to read the zip file archive members as if they were files.
%package help
BuildArch: noarch
Summary: Help documents for perl-Archive-Zip
%description help
The perl-Archive-Zip-help package conatins manual pages for perl-Archive-Zip.
%prep
%autosetup -n Archive-Zip-%{version} -p1
for F in examples/*.pl; do
perl -MExtUtils::MakeMaker -e "ExtUtils::MM_Unix->fixin(q{$F})"
done
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make_build
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc Changes examples/
%{_bindir}/crc32
%{perl_vendorlib}/Archive/
%files help
%{_mandir}/man3/Archive*.3*
%changelog
* Tue Jun 14 2022 SimpleUpdate Robot <tc@openeuler.org> - 1.68-1
- Upgrade to version 1.68
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.64-5
- DESC: delete -S git from %autosetup, and delete BuildRequires git-core
* Thu May 28 2020 songzhengyu<songzhengyu@huawei.com> - 1.64-4
- add a buildRequire
* Mon Jan 13 2020 xuxijian<xuxijian@hauwei.com> - 1.64-3
- delete a buildRequire
* Tue Nov 26 2019 liujing<liujing144@huawei.com> - 1.64-2
- Package init