diff --git a/.gitignore b/.gitignore index 619db47..eab3b2c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/HTTP-Tiny-0.076.tar.gz +HTTP-Tiny-0.088.tar.gz diff --git a/.perl-HTTP-Tiny.metadata b/.perl-HTTP-Tiny.metadata deleted file mode 100644 index a41982e..0000000 --- a/.perl-HTTP-Tiny.metadata +++ /dev/null @@ -1 +0,0 @@ -2e27950c8cc5643649fac3607ba0082711139dd7 SOURCES/HTTP-Tiny-0.076.tar.gz diff --git a/SOURCES/HTTP-Tiny-0.070-Croak-on-failed-write-into-a-file.patch b/HTTP-Tiny-0.070-Croak-on-failed-write-into-a-file.patch similarity index 100% rename from SOURCES/HTTP-Tiny-0.070-Croak-on-failed-write-into-a-file.patch rename to HTTP-Tiny-0.070-Croak-on-failed-write-into-a-file.patch diff --git a/SPECS/perl-HTTP-Tiny.spec b/perl-HTTP-Tiny.spec similarity index 55% rename from SPECS/perl-HTTP-Tiny.spec rename to perl-HTTP-Tiny.spec index 7fa2fae..01e8164 100644 --- a/SPECS/perl-HTTP-Tiny.spec +++ b/perl-HTTP-Tiny.spec @@ -1,17 +1,22 @@ +# Run optional test +%bcond_without perl_HTTP_Tiny_enables_optional_deps + Name: perl-HTTP-Tiny -Version: 0.076 -Release: 439%{?dist} +Version: 0.088 +Release: 512%{?dist} Summary: Small, simple, correct HTTP/1.1 client -License: GPL+ or Artistic +License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/HTTP-Tiny Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/HTTP-Tiny-%{version}.tar.gz # Check for write failure, bug #1031096, refused by upstream, # -Patch0: HTTP-Tiny-0.070-Croak-on-failed-write-into-a-file.patch +Patch1: HTTP-Tiny-0.070-Croak-on-failed-write-into-a-file.patch 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) @@ -44,16 +49,28 @@ BuildRequires: perl(lib) # Net::SSLeay 1.49 not needed BuildRequires: perl(open) BuildRequires: perl(Test::More) >= 0.96 -Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(bytes) Requires: perl(Carp) Requires: perl(Fcntl) Recommends: perl(IO::Socket::IP) >= 0.32 +%if !%{defined perl_bootstrap} +Requires: perl(IO::Socket::SSL) >= 1.56 +Requires: perl(Mozilla::CA) +Requires: perl(Net::SSLeay) >= 1.49 +%else Recommends: perl(IO::Socket::SSL) >= 1.56 -Requires: perl(MIME::Base64) Recommends: perl(Mozilla::CA) +Recommends: perl(Net::SSLeay) >= 1.49 +%endif +Requires: perl(MIME::Base64) Requires: perl(Time::Local) +# Filter modules bundled for tests +%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir} +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Util\\) +%global __requires_exclude %{__requires_exclude}|^perl\\(BrokenCookieJar\\) +%global __requires_exclude %{__requires_exclude}|^perl\\(SimpleCookieJar\\) + %description This is a very simple HTTP/1.1 client, designed for doing simple GET requests without the overhead of a large framework like LWP::UserAgent. @@ -62,28 +79,143 @@ It is more correct and more complete than HTTP::Lite. It supports proxies (currently only non-authenticating ones) and redirection. It also correctly resumes after EINTR. +%package tests +Summary: Tests for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: perl-Test-Harness +%if %{with perl_HTTP_Tiny_enables_optional_deps} && !%{defined perl_bootstrap} +Requires: openssl +Requires: perl(IO::Socket::IP) >= 0.32 +Requires: perl(IO::Socket::SSL) >= 1.56 +Requires: perl(Mozilla::CA) +Requires: perl(Net::SSLeay) >= 1.49 +%endif + +%description tests +Tests from %{name}. Execute them +with "%{_libexecdir}/%{name}/test". + %prep -%setup -q -n HTTP-Tiny-%{version} -%patch0 -p1 +%autosetup -p1 -n HTTP-Tiny-%{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 -make %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} %install -make pure_install DESTDIR='%{buildroot}' +%{make_install} %{_fixperms} '%{buildroot}'/* +# Install tests +mkdir -p %{buildroot}%{_libexecdir}/%{name} +cp -a t corpus %{buildroot}%{_libexecdir}/%{name} +cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' +#!/bin/sh +cd %{_libexecdir}/%{name} && AUTOMATED_TESTING=1 exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" +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 %license LICENSE %doc Changes CONTRIBUTING.mkdn eg README -%{perl_vendorlib}/* -%{_mandir}/man3/* +%{perl_vendorlib}/HTTP* +%{_mandir}/man3/HTTP::Tiny* + +%files tests +%{_libexecdir}/%{name} %changelog +* Tue Oct 29 2024 Troy Dawson - 0.088-512 +- Bump release for October 2024 mass rebuild: + Resolves: RHEL-64018 + +* Fri Aug 09 2024 Jitka Plesnikova - 0.088-511 +- Perl 5.40 re-rebuild of bootstrapped packages + +* Thu Jul 18 2024 Jitka Plesnikova - 0.088-510 +- Increase release to favour standalone package + +* Mon Jun 24 2024 Troy Dawson - 0.088-6 +- Bump release for June 2024 mass rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 0.088-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 0.088-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Aug 03 2023 Jitka Plesnikova - 0.088-3 +- Update run-requires for changing the `verify_SSL` default parameter + from 0 to 1 + +* Thu Jul 20 2023 Fedora Release Engineering - 0.088-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jul 14 2023 Jitka Plesnikova - 0.088-1 +- 0.088 bump (rhbz#2222007) + +* Tue Jul 11 2023 Jitka Plesnikova - 0.086-499 +- Increase release to favour standalone package + +* Mon Jun 26 2023 Jitka Plesnikova - 0.086-1 +- 0.086 bump + +* Wed Jun 14 2023 Jitka Plesnikova - 0.084-1 +- 0.084 bump + +* Mon Jun 12 2023 Jitka Plesnikova - 0.083-1 +- Upgrade to 0.083 as provided in perl-5.37.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.082-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Jul 26 2022 Jitka Plesnikova - 0.082-2 +- 0.082 bump + +* Fri Jul 22 2022 Fedora Release Engineering - 0.080-489 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon May 30 2022 Jitka Plesnikova - 0.080-488 +- Increase release to favour standalone package + +* Fri Jan 21 2022 Fedora Release Engineering - 0.080-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Mon Nov 08 2021 Jitka Plesnikova - 0.080-1 +- 0.080 bump + +* Tue Aug 03 2021 Jitka Plesnikova - 0.078-1 +- 0.078 bump +- Package tests + +* Thu Jul 22 2021 Fedora Release Engineering - 0.076-478 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri May 21 2021 Jitka Plesnikova - 0.076-477 +- Increase release to favour standalone package + +* Wed Jan 27 2021 Fedora Release Engineering - 0.076-458 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 0.076-457 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jun 22 2020 Jitka Plesnikova - 0.076-456 +- Increase release to favour standalone package + +* Thu Jan 30 2020 Fedora Release Engineering - 0.076-440 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Fri Jul 26 2019 Fedora Release Engineering - 0.076-439 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sources b/sources new file mode 100644 index 0000000..917e277 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (HTTP-Tiny-0.088.tar.gz) = 3f4fb7a5ecf4bc664c0370f66b738bf171478767770400f5774be49a14ed95ce6430e6ac8fb755068e3d73bb3f074268cb6d6da7e6f0aceffbbdc76b0563bb0a