diff --git a/.gitignore b/.gitignore index e69de29..01304cb 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/IO-Zlib-1.11.tar.gz diff --git a/perl-IO-Zlib.spec b/perl-IO-Zlib.spec new file mode 100644 index 0000000..2551d73 --- /dev/null +++ b/perl-IO-Zlib.spec @@ -0,0 +1,61 @@ +Name: perl-IO-Zlib +# To compete with perl.spec +Epoch: 1 +Version: 1.11 +Release: 1%{?dist} +Summary: Perl IO:: style interface to Compress::Zlib +License: GPL+ or Artistic +URL: https://metacpan.org/release/IO-Zlib +Source0: https://cpan.metacpan.org/authors/id/T/TO/TOMHUGHES/IO-Zlib-%{version}.tar.gz +BuildArch: noarch +BuildRequires: coreutils +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time: +BuildRequires: gzip +BuildRequires: perl(:VERSION) >= 5.6 +BuildRequires: perl(Carp) +BuildRequires: perl(Compress::Zlib) >= 2 +BuildRequires: perl(Fcntl) +# IO::Handle used if gzip backend is requested +BuildRequires: perl(IO::Handle) +BuildRequires: perl(Symbol) +BuildRequires: perl(Tie::Handle) +# The code defaults to Compress::Zlib, but a user can override it to gzip by +# importing :gzip_external symbol +Requires: gzip +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Compress::Zlib) >= 2 +Requires: perl(IO::Handle) + +%description +IO::Zlib provides an IO:: style interface to Compress::Zlib and hence to +gzip/zlib-compressed files. It provides many of the same methods as the +IO::Handle interface. + +%prep +%setup -q -n IO-Zlib-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} + +%install +%{make_install} +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc ChangeLog README.md +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Thu Sep 24 2020 Petr Pisar 1:1.11-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources new file mode 100644 index 0000000..7a85d4f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (IO-Zlib-1.11.tar.gz) = ae7a8477ea0459ca123919155639154fffbd4f3cc2c7eda3c73e3ee6c3bd9f8cd205ed70496082c741e095f1b7799e2e7b2bec5dbfc8270987dadfe5d839c8b7