| 1 | Name: perl-Archive-Zip
|
|---|
| 2 | Version: 1.60
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: Perl library for accessing Zip archives
|
|---|
| 5 | # lib/Archive/Zip/Member.pm: (GPL+ or Artistic) and BSD
|
|---|
| 6 | # (The _mapPermissionsToUnix() comments are
|
|---|
| 7 | # copied from BSD-licensed unzip)
|
|---|
| 8 | # other files: GPL+ or Artistic
|
|---|
| 9 | License: (GPL+ or Artistic) and BSD
|
|---|
| 10 | Vendor: bww bitwise works GmbH
|
|---|
| 11 | URL: http://search.cpan.org/dist/Archive-Zip/
|
|---|
| 12 | Source0: http://search.cpan.org/CPAN/authors/id/P/PH/PHRED/Archive-Zip-%{version}.tar.gz
|
|---|
| 13 | BuildArch: noarch
|
|---|
| 14 | BuildRequires: make
|
|---|
| 15 | #BuildRequires: perl-interpreter
|
|---|
| 16 | BuildRequires: perl-generators
|
|---|
| 17 | #BuildRequires: perl(:VERSION) >= 5.4
|
|---|
| 18 | BuildRequires: perl(Config)
|
|---|
| 19 | BuildRequires: perl(ExtUtils::MakeMaker) >= 6.63
|
|---|
| 20 | BuildRequires: perl(strict)
|
|---|
| 21 | # Run-time
|
|---|
| 22 | #BuildRequires: perl(:VERSION) >= 5.6
|
|---|
| 23 | BuildRequires: perl(bytes)
|
|---|
| 24 | BuildRequires: perl(Carp)
|
|---|
| 25 | BuildRequires: perl(Compress::Raw::Zlib)
|
|---|
| 26 | BuildRequires: perl(constant)
|
|---|
| 27 | BuildRequires: perl(Cwd)
|
|---|
| 28 | BuildRequires: perl(Data::Dumper)
|
|---|
| 29 | BuildRequires: perl(Encode)
|
|---|
| 30 | BuildRequires: perl(Exporter)
|
|---|
| 31 | BuildRequires: perl(File::Basename)
|
|---|
| 32 | BuildRequires: perl(File::Copy)
|
|---|
| 33 | BuildRequires: perl(File::Find)
|
|---|
| 34 | BuildRequires: perl(File::Path)
|
|---|
| 35 | BuildRequires: perl(File::Spec) >= 0.80
|
|---|
| 36 | BuildRequires: perl(File::Temp)
|
|---|
| 37 | BuildRequires: perl(FileHandle)
|
|---|
| 38 | BuildRequires: perl(integer)
|
|---|
| 39 | BuildRequires: perl(IO::File)
|
|---|
| 40 | BuildRequires: perl(IO::Seekable)
|
|---|
| 41 | BuildRequires: perl(Time::Local)
|
|---|
| 42 | BuildRequires: perl(vars)
|
|---|
| 43 | # Tests
|
|---|
| 44 | #BuildRequires: perl(File::Spec::Unix)
|
|---|
| 45 | # IO::Scalar not used
|
|---|
| 46 | #BuildRequires: perl(lib)
|
|---|
| 47 | #BuildRequires: perl(Test::MockModule)
|
|---|
| 48 | #BuildRequires: perl(Test::More) >= 0.88
|
|---|
| 49 | #BuildRequires: perl(utf8)
|
|---|
| 50 | #BuildRequires: perl(warnings)
|
|---|
| 51 | #BuildRequires: unzip
|
|---|
| 52 | #BuildRequires: zip
|
|---|
| 53 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|---|
| 54 | Requires: perl(Exporter)
|
|---|
| 55 | Requires: perl(File::Spec) >= 0.80
|
|---|
| 56 |
|
|---|
| 57 | # Remove under-specified dependencies
|
|---|
| 58 | %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(File::Spec\\)$
|
|---|
| 59 |
|
|---|
| 60 | %description
|
|---|
| 61 | The Archive::Zip module allows a Perl program to create, manipulate,
|
|---|
| 62 | read, and write Zip archive files.
|
|---|
| 63 | Zip archives can be created, or you can read from existing zip files.
|
|---|
| 64 | Once created, they can be written to files, streams, or strings.
|
|---|
| 65 | Members can be added, removed, extracted, replaced, rearranged, and
|
|---|
| 66 | enumerated. They can also be renamed or have their dates, comments,
|
|---|
| 67 | or other attributes queried or modified. Their data can be compressed
|
|---|
| 68 | or uncompressed as needed. Members can be created from members in
|
|---|
| 69 | existing Zip files, or from existing directories, files, or strings.
|
|---|
| 70 |
|
|---|
| 71 |
|
|---|
| 72 | %prep
|
|---|
| 73 | %setup -q -n Archive-Zip-%{version}
|
|---|
| 74 | for F in examples/*.pl; do
|
|---|
| 75 | perl -MExtUtils::MakeMaker -e "ExtUtils::MM_Unix->fixin(q{$F})"
|
|---|
| 76 | done
|
|---|
| 77 |
|
|---|
| 78 |
|
|---|
| 79 | %build
|
|---|
| 80 | perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
|---|
| 81 | make %{?_smp_mflags}
|
|---|
| 82 | make manifypods
|
|---|
| 83 |
|
|---|
| 84 | %install
|
|---|
| 85 | make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|---|
| 86 | find %{buildroot} -type f -name .packlist -delete
|
|---|
| 87 | %{_fixperms} $RPM_BUILD_ROOT/*
|
|---|
| 88 |
|
|---|
| 89 |
|
|---|
| 90 | %check
|
|---|
| 91 | #make test
|
|---|
| 92 |
|
|---|
| 93 |
|
|---|
| 94 | %files
|
|---|
| 95 | %doc Changes examples/
|
|---|
| 96 | %{_bindir}/crc32
|
|---|
| 97 | %{perl_vendorlib}/Archive/
|
|---|
| 98 | %{_mandir}/man3/*.3*
|
|---|
| 99 |
|
|---|
| 100 |
|
|---|
| 101 | %changelog
|
|---|
| 102 | * Thu May 03 2018 Elbert Pol <elbert.pol@gmail.com> - 1.60-1
|
|---|
| 103 | - initial rpm for OS2
|
|---|