Merged update from upstream sources

This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/perl-HTTP-Message.git#c2114842b187ad128b718a8cb9610408ee27ca03
This commit is contained in:
DistroBaker 2021-03-15 13:35:44 +00:00
parent 2b3bf98bf8
commit 63b10a079f
4 changed files with 14 additions and 6 deletions

1
.gitignore vendored
View File

@ -17,3 +17,4 @@
/HTTP-Message-6.26.tar.gz
/HTTP-Message-6.27.tar.gz
/HTTP-Message-6.28.tar.gz
/HTTP-Message-6.29.tar.gz

View File

@ -0,0 +1,2 @@
from Config import *
addFilter("-tests.noarch: W: no-documentation");

View File

@ -2,7 +2,7 @@
%bcond_without perl_HTTP_Message_enables_Clone
Name: perl-HTTP-Message
Version: 6.28
Version: 6.29
Release: 1%{?dist}
Summary: HTTP style message
# CONTRIBUTING.md: CC0
@ -51,6 +51,7 @@ BuildRequires: perl(PerlIO::encoding)
BuildRequires: perl(Test::More) >= 0.88
# Time::Local only used on MacOS
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(URI::URL)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%if %{with perl_HTTP_Message_enables_Clone}
Recommends: perl(Clone)
@ -90,6 +91,7 @@ Summary: Tests for %{name}
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: coreutils
Requires: perl-Test-Harness
Requires: perl(URI::URL)
%description tests
Tests from %{name}. Execute them
@ -110,9 +112,9 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%install
%{make_install}
# Install tests
mkdir -p %{buildroot}/%{_libexecdir}/%{name}
cp -a t %{buildroot}/%{_libexecdir}/%{name}
cat > %{buildroot}/%{_libexecdir}/%{name}/test << 'EOF'
mkdir -p %{buildroot}%{_libexecdir}/%{name}
cp -a t %{buildroot}%{_libexecdir}/%{name}
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
#!/bin/bash
set -e
# t/status-old.t writes into CWD
@ -123,7 +125,7 @@ prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
popd
rm -r "$DIR"
EOF
chmod +x %{buildroot}/%{_libexecdir}/%{name}/test
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
%{_fixperms} %{buildroot}/*
%check
@ -140,6 +142,9 @@ make test
%{_libexecdir}/%{name}
%changelog
* Mon Mar 08 2021 Petr Pisar <ppisar@redhat.com> - 6.29-1
- 6.29 bump
* Mon Feb 22 2021 Petr Pisar <ppisar@redhat.com> - 6.28-1
- 6.28 bump
- Package tests

View File

@ -1 +1 @@
SHA512 (HTTP-Message-6.28.tar.gz) = c3292d5332d88558596b2bc4ab372fa7c00b7ac52f2d0ac9a040e92ac2b3932dc36cd0a95a3a726c4589724bc4f1d69c3ad0f853c0d6db0456d8bf7477bf2b78
SHA512 (HTTP-Message-6.29.tar.gz) = c9363470a3ad2fd1a02be84bf5903b7061f033d71e7b3d0e32c28ee59cc76f52ac3e4b64802ba6e89cef71693debe09a10ea3833098bf701c56d03b99f52d952