0.42 bump (rhbz#2225678)

This commit is contained in:
Jitka Plesnikova 2023-07-26 08:48:08 +02:00
parent cbbcef14fb
commit 2ea8431732
5 changed files with 22 additions and 8 deletions

1
.gitignore vendored
View File

@ -28,3 +28,4 @@
/IO-Socket-IP-0.38.tar.gz
/IO-Socket-IP-0.39.tar.gz
/IO-Socket-IP-0.41.tar.gz
/IO-Socket-IP-0.42.tar.gz

View File

@ -19,6 +19,7 @@ WriteMakefile(
'warnings' => '0',
},
'TEST_REQUIRES' => {
'perl' => '5.014',
'IO::Socket::INET' => '0',
'Test::More' => '0.88',
},

7
gating.yaml Normal file
View File

@ -0,0 +1,7 @@
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_stable
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}

View File

@ -6,8 +6,8 @@
%endif
Name: perl-IO-Socket-IP
Version: 0.41
Release: 501%{?dist}
Version: 0.42
Release: 1%{?dist}
Summary: Drop-in replacement for IO::Socket::INET supporting both IPv4 and IPv6
License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/release/IO-Socket-IP
@ -24,6 +24,7 @@ BuildRequires: coreutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(:VERSION) >= 5.14
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
# Runtime
BuildRequires: perl(base)
@ -64,7 +65,7 @@ with "%{_libexecdir}/%{name}/test".
cp %{SOURCE1} .
chmod -x lib/IO/Socket/IP.pm
# Help generators to recognize Perl scripts
for F in $(find t/ -name '*.t'); do
for F in t/*.t; do
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F"
chmod +x "$F"
done
@ -78,27 +79,31 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
# Install tests
mkdir -p %{buildroot}%{_libexecdir}/%{name}
cp -a t %{buildroot}%{_libexecdir}/%{name}
rm -f %{buildroot}%{_libexecdir}/%{name}/t/99pod.t*
rm -f %{buildroot}%{_libexecdir}/%{name}/t/99pod.t
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
#!/bin/sh
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" -r
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
EOF
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
%{_fixperms} %{buildroot}/*
%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
%license LICENSE
%doc Changes examples README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%{perl_vendorlib}/IO/*
%{_mandir}/man3/IO::Socket::IP*
%files tests
%{_libexecdir}/%{name}
%changelog
* Wed Jul 26 2023 Jitka Plesnikova <jplesnik@redhat.com> - 0.42-1
- 0.42 bump (rhbz#2225678)
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.41-501
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (IO-Socket-IP-0.41.tar.gz) = f9fed6684ccaae3dcc1429d61211a24c2714af390b04a29e5a1362cfd470efc79305d3cb927d4caeb9e85302f248b2989e18332f8bef8022b427a49807f493fd
SHA512 (IO-Socket-IP-0.42.tar.gz) = ba33a29deafe26ff4f947c35ec475a5ea08c62f7a8e250cd8c83ba8913070f83819f8745a7e0311d45904dc72c38da08950737ec1ca2ea9c750d790b3cf7de58