commit 12d8afa05557d0afaa4b442a6712bc31880c96d6 Author: MSVSphere Packaging Team Date: Tue Nov 26 17:56:27 2024 +0300 import perl-IO-Zlib-1.15-510.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..320b20a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/IO-Zlib-1.15.tar.gz diff --git a/.perl-IO-Zlib.metadata b/.perl-IO-Zlib.metadata new file mode 100644 index 0000000..b2cb5f9 --- /dev/null +++ b/.perl-IO-Zlib.metadata @@ -0,0 +1 @@ +d58c0d0b62690d4f27122feb11be865f44a1b739 SOURCES/IO-Zlib-1.15.tar.gz diff --git a/SPECS/perl-IO-Zlib.spec b/SPECS/perl-IO-Zlib.spec new file mode 100644 index 0000000..470c875 --- /dev/null +++ b/SPECS/perl-IO-Zlib.spec @@ -0,0 +1,152 @@ +Name: perl-IO-Zlib +# To compete with perl.spec +Epoch: 1 +Version: 1.15 +Release: 510%{?dist} +Summary: Perl IO:: style interface to Compress::Zlib +License: GPL-1.0-or-later OR Artistic-1.0-Perl +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(Config) +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(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. + +%package tests +Summary: Tests for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: perl-Test-Harness +Requires: perl(Compress::Zlib) >= 2 + +%description tests +Tests from %{name}. Execute them +with "%{_libexecdir}/%{name}/test". + +%prep +%setup -q -n IO-Zlib-%{version} +# Help generators to recognize Perl scripts +for F in t/*.t; do + perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F" + chmod +x "$F" +done + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} + +%install +%{make_install} +%{_fixperms} $RPM_BUILD_ROOT/* + +# Install tests +mkdir -p %{buildroot}%{_libexecdir}/%{name} +cp -a t %{buildroot}%{_libexecdir}/%{name} +cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' +#!/bin/bash +set -e +# Some tests write into temporary files/directories. The easiest solution +# is to copy the tests into a writable directory and execute them from there. +DIR=$(mktemp -d) +pushd "$DIR" +cp -a %{_libexecdir}/%{name}/* ./ +prove -I . -j "$(getconf _NPROCESSORS_ONLN)" +popd +rm -rf "$DIR" +EOF +chmod +x %{buildroot}%{_libexecdir}/%{name}/test + +%check +export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') +make test + +%files +%doc ChangeLog README.md +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%files tests +%{_libexecdir}/%{name} + +%changelog +* Tue Nov 26 2024 MSVSphere Packaging Team - 1:1.15-510 +- Rebuilt for MSVSphere 10 + +* Thu Jul 18 2024 Jitka Plesnikova - 1:1.15-510 +- Increase release to favour standalone package + +* Wed Jul 17 2024 Jitka Plesnikova - 1:1.15-1 +- 1.15 bump + +* Mon Jun 24 2024 Troy Dawson - 1:1.14-503 +- Bump release for June 2024 mass rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 1:1.14-502 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 1:1.14-501 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jul 20 2023 Fedora Release Engineering - 1:1.14-500 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jul 11 2023 Jitka Plesnikova - 1:1.14-499 +- Increase release to favour standalone package + +* Fri Jan 20 2023 Fedora Release Engineering - 1:1.14-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Jan 11 2023 Paul Howarth - 1:1.14-1 +- 1.14 bump (rhbz#2159835) + +* Sat Jan 7 2023 Paul Howarth - 1:1.13-1 +- 1.13 bump (rhbz#2158940) + +* Thu Jan 05 2023 Jitka Plesnikova - 1:1.12-1 +- 1.12 bump +- Package tests + +* Fri Jul 22 2022 Fedora Release Engineering - 1:1.11-489 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon May 30 2022 Jitka Plesnikova - 1:1.11-488 +- Increase release to favour standalone package + +* Fri Jan 21 2022 Fedora Release Engineering - 1:1.11-479 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 1:1.11-478 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri May 21 2021 Jitka Plesnikova - 1:1.11-477 +- Increase release to favour standalone package + +* Wed Jan 27 2021 Fedora Release Engineering - 1:1.11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Sep 24 2020 Petr Pisar 1:1.11-1 +- Specfile autogenerated by cpanspec 1.78.