import UBI perl-HTTP-Tiny-0.088-512.el10
This commit is contained in:
parent
dd434dc9d6
commit
7a89960375
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
SOURCES/HTTP-Tiny-0.076.tar.gz
|
HTTP-Tiny-0.088.tar.gz
|
||||||
|
@ -1 +0,0 @@
|
|||||||
2e27950c8cc5643649fac3607ba0082711139dd7 SOURCES/HTTP-Tiny-0.076.tar.gz
|
|
@ -1,17 +1,22 @@
|
|||||||
|
# Run optional test
|
||||||
|
%bcond_without perl_HTTP_Tiny_enables_optional_deps
|
||||||
|
|
||||||
Name: perl-HTTP-Tiny
|
Name: perl-HTTP-Tiny
|
||||||
Version: 0.076
|
Version: 0.088
|
||||||
Release: 439%{?dist}
|
Release: 512%{?dist}
|
||||||
Summary: Small, simple, correct HTTP/1.1 client
|
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
|
URL: https://metacpan.org/release/HTTP-Tiny
|
||||||
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/HTTP-Tiny-%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/HTTP-Tiny-%{version}.tar.gz
|
||||||
# Check for write failure, bug #1031096, refused by upstream,
|
# Check for write failure, bug #1031096, refused by upstream,
|
||||||
# <https://github.com/chansen/p5-http-tiny/issues/32>
|
# <https://github.com/chansen/p5-http-tiny/issues/32>
|
||||||
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
|
BuildArch: noarch
|
||||||
|
BuildRequires: coreutils
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
BuildRequires: perl-interpreter
|
BuildRequires: perl-interpreter
|
||||||
|
BuildRequires: perl(Config)
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||||
BuildRequires: perl(strict)
|
BuildRequires: perl(strict)
|
||||||
BuildRequires: perl(warnings)
|
BuildRequires: perl(warnings)
|
||||||
@ -44,16 +49,28 @@ BuildRequires: perl(lib)
|
|||||||
# Net::SSLeay 1.49 not needed
|
# Net::SSLeay 1.49 not needed
|
||||||
BuildRequires: perl(open)
|
BuildRequires: perl(open)
|
||||||
BuildRequires: perl(Test::More) >= 0.96
|
BuildRequires: perl(Test::More) >= 0.96
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
||||||
Requires: perl(bytes)
|
Requires: perl(bytes)
|
||||||
Requires: perl(Carp)
|
Requires: perl(Carp)
|
||||||
Requires: perl(Fcntl)
|
Requires: perl(Fcntl)
|
||||||
Recommends: perl(IO::Socket::IP) >= 0.32
|
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
|
Recommends: perl(IO::Socket::SSL) >= 1.56
|
||||||
Requires: perl(MIME::Base64)
|
|
||||||
Recommends: perl(Mozilla::CA)
|
Recommends: perl(Mozilla::CA)
|
||||||
|
Recommends: perl(Net::SSLeay) >= 1.49
|
||||||
|
%endif
|
||||||
|
Requires: perl(MIME::Base64)
|
||||||
Requires: perl(Time::Local)
|
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
|
%description
|
||||||
This is a very simple HTTP/1.1 client, designed for doing simple GET requests
|
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.
|
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
|
(currently only non-authenticating ones) and redirection. It also correctly
|
||||||
resumes after EINTR.
|
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
|
%prep
|
||||||
%setup -q -n HTTP-Tiny-%{version}
|
%autosetup -p1 -n HTTP-Tiny-%{version}
|
||||||
%patch0 -p1
|
|
||||||
|
# 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
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
||||||
make %{?_smp_mflags}
|
%{make_build}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make pure_install DESTDIR='%{buildroot}'
|
%{make_install}
|
||||||
%{_fixperms} '%{buildroot}'/*
|
%{_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
|
%check
|
||||||
|
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
|
||||||
make test
|
make test
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc Changes CONTRIBUTING.mkdn eg README
|
%doc Changes CONTRIBUTING.mkdn eg README
|
||||||
%{perl_vendorlib}/*
|
%{perl_vendorlib}/HTTP*
|
||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/HTTP::Tiny*
|
||||||
|
|
||||||
|
%files tests
|
||||||
|
%{_libexecdir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.088-512
|
||||||
|
- Bump release for October 2024 mass rebuild:
|
||||||
|
Resolves: RHEL-64018
|
||||||
|
|
||||||
|
* Fri Aug 09 2024 Jitka Plesnikova <jplesnik@redhat.com> - 0.088-511
|
||||||
|
- Perl 5.40 re-rebuild of bootstrapped packages
|
||||||
|
|
||||||
|
* Thu Jul 18 2024 Jitka Plesnikova <jplesnik@redhat.com> - 0.088-510
|
||||||
|
- Increase release to favour standalone package
|
||||||
|
|
||||||
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.088-6
|
||||||
|
- Bump release for June 2024 mass rebuild
|
||||||
|
|
||||||
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.088-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.088-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Aug 03 2023 Jitka Plesnikova <jplesnik@redhat.com> - 0.088-3
|
||||||
|
- Update run-requires for changing the `verify_SSL` default parameter
|
||||||
|
from 0 to 1
|
||||||
|
|
||||||
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.088-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 14 2023 Jitka Plesnikova <jplesnik@redhat.com> - 0.088-1
|
||||||
|
- 0.088 bump (rhbz#2222007)
|
||||||
|
|
||||||
|
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 0.086-499
|
||||||
|
- Increase release to favour standalone package
|
||||||
|
|
||||||
|
* Mon Jun 26 2023 Jitka Plesnikova <jplesnik@redhat.com> - 0.086-1
|
||||||
|
- 0.086 bump
|
||||||
|
|
||||||
|
* Wed Jun 14 2023 Jitka Plesnikova <jplesnik@redhat.com> - 0.084-1
|
||||||
|
- 0.084 bump
|
||||||
|
|
||||||
|
* Mon Jun 12 2023 Jitka Plesnikova <jplesnik@redhat.com> - 0.083-1
|
||||||
|
- Upgrade to 0.083 as provided in perl-5.37.12
|
||||||
|
|
||||||
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.082-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jul 26 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.082-2
|
||||||
|
- 0.082 bump
|
||||||
|
|
||||||
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.080-489
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.080-488
|
||||||
|
- Increase release to favour standalone package
|
||||||
|
|
||||||
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.080-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Nov 08 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.080-1
|
||||||
|
- 0.080 bump
|
||||||
|
|
||||||
|
* Tue Aug 03 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.078-1
|
||||||
|
- 0.078 bump
|
||||||
|
- Package tests
|
||||||
|
|
||||||
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.076-478
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.076-477
|
||||||
|
- Increase release to favour standalone package
|
||||||
|
|
||||||
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.076-458
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.076-457
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.076-456
|
||||||
|
- Increase release to favour standalone package
|
||||||
|
|
||||||
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.076-440
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.076-439
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.076-439
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
Loading…
Reference in New Issue
Block a user