|
|
@ -1,14 +1,21 @@
|
|
|
|
|
|
|
|
# Use Clone module for duplicating HTTP::Headers objects
|
|
|
|
|
|
|
|
%bcond_without perl_HTTP_Message_enables_Clone
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-HTTP-Message
|
|
|
|
Name: perl-HTTP-Message
|
|
|
|
Version: 6.18
|
|
|
|
Version: 6.29
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Summary: HTTP style message
|
|
|
|
Summary: HTTP style message
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
# CONTRIBUTING.md: CC0
|
|
|
|
|
|
|
|
# other files: GPL+ or Artistic
|
|
|
|
|
|
|
|
License: (GPL+ or Artistic) and CC0
|
|
|
|
URL: https://metacpan.org/release/HTTP-Message
|
|
|
|
URL: https://metacpan.org/release/HTTP-Message
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/O/OA/OALDERS/HTTP-Message-%{version}.tar.gz
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/O/OA/OALDERS/HTTP-Message-%{version}.tar.gz
|
|
|
|
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)
|
|
|
@ -16,7 +23,7 @@ BuildRequires: perl(warnings)
|
|
|
|
BuildRequires: perl(base)
|
|
|
|
BuildRequires: perl(base)
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(Compress::Raw::Zlib)
|
|
|
|
BuildRequires: perl(Compress::Raw::Zlib)
|
|
|
|
BuildRequires: perl(Encode) >= 2.21
|
|
|
|
BuildRequires: perl(Encode) >= 3.01
|
|
|
|
BuildRequires: perl(Encode::Locale) >= 1
|
|
|
|
BuildRequires: perl(Encode::Locale) >= 1
|
|
|
|
BuildRequires: perl(Exporter) >= 5.57
|
|
|
|
BuildRequires: perl(Exporter) >= 5.57
|
|
|
|
BuildRequires: perl(HTTP::Date) >= 6
|
|
|
|
BuildRequires: perl(HTTP::Date) >= 6
|
|
|
@ -31,18 +38,26 @@ BuildRequires: perl(IO::Uncompress::RawInflate)
|
|
|
|
BuildRequires: perl(LWP::MediaTypes) >= 6
|
|
|
|
BuildRequires: perl(LWP::MediaTypes) >= 6
|
|
|
|
BuildRequires: perl(MIME::Base64) >= 2.1
|
|
|
|
BuildRequires: perl(MIME::Base64) >= 2.1
|
|
|
|
BuildRequires: perl(MIME::QuotedPrint)
|
|
|
|
BuildRequires: perl(MIME::QuotedPrint)
|
|
|
|
BuildRequires: perl(Storable)
|
|
|
|
|
|
|
|
BuildRequires: perl(URI) >= 1.10
|
|
|
|
BuildRequires: perl(URI) >= 1.10
|
|
|
|
|
|
|
|
%if %{with perl_HTTP_Message_enables_Clone}
|
|
|
|
|
|
|
|
# Optional run-time:
|
|
|
|
|
|
|
|
BuildRequires: perl(Clone)
|
|
|
|
|
|
|
|
%endif
|
|
|
|
# Tests only:
|
|
|
|
# Tests only:
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
|
|
|
|
BuildRequires: perl(overload)
|
|
|
|
BuildRequires: perl(PerlIO::encoding)
|
|
|
|
BuildRequires: perl(PerlIO::encoding)
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
|
|
# Testing requires Time::Local on MacOS only
|
|
|
|
# Time::Local only used on MacOS
|
|
|
|
BuildRequires: perl(Try::Tiny)
|
|
|
|
BuildRequires: perl(Try::Tiny)
|
|
|
|
|
|
|
|
BuildRequires: perl(URI::URL)
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
|
|
|
%if %{with perl_HTTP_Message_enables_Clone}
|
|
|
|
|
|
|
|
Recommends: perl(Clone)
|
|
|
|
|
|
|
|
%endif
|
|
|
|
Requires: perl(Compress::Raw::Zlib)
|
|
|
|
Requires: perl(Compress::Raw::Zlib)
|
|
|
|
Requires: perl(Encode) >= 2.21
|
|
|
|
Requires: perl(Encode) >= 3.01
|
|
|
|
Requires: perl(Encode::Locale) >= 1
|
|
|
|
Requires: perl(Encode::Locale) >= 1
|
|
|
|
Requires: perl(HTTP::Date) >= 6
|
|
|
|
Requires: perl(HTTP::Date) >= 6
|
|
|
|
Requires: perl(IO::Compress::Bzip2) >= 2.021
|
|
|
|
Requires: perl(IO::Compress::Bzip2) >= 2.021
|
|
|
@ -56,31 +71,65 @@ Requires: perl(IO::Uncompress::RawInflate)
|
|
|
|
Requires: perl(LWP::MediaTypes) >= 6
|
|
|
|
Requires: perl(LWP::MediaTypes) >= 6
|
|
|
|
Requires: perl(MIME::Base64) >= 2.1
|
|
|
|
Requires: perl(MIME::Base64) >= 2.1
|
|
|
|
Requires: perl(MIME::QuotedPrint)
|
|
|
|
Requires: perl(MIME::QuotedPrint)
|
|
|
|
Requires: perl(Storable)
|
|
|
|
|
|
|
|
Requires: perl(URI) >= 1.10
|
|
|
|
Requires: perl(URI) >= 1.10
|
|
|
|
Conflicts: perl-libwww-perl < 6
|
|
|
|
Conflicts: perl-libwww-perl < 6
|
|
|
|
|
|
|
|
|
|
|
|
# Remove underspecified dependencies
|
|
|
|
# Remove underspecified dependencies
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Exporter|HTTP::Date|URI)\\)$
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Exporter|HTTP::Date|URI)\\)$
|
|
|
|
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(HTTP::Headers\\)$
|
|
|
|
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(HTTP::Headers\\)$
|
|
|
|
|
|
|
|
# Remove private modules and unused dependencies
|
|
|
|
|
|
|
|
%global __requires_exclude %{__requires_exclude}|^perl\\((Secret|Time::Local)\\)
|
|
|
|
|
|
|
|
%global __provides_exclude %{__provides_exclude}|^perl\\(Secret\\)$
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
The HTTP-Message distribution contains classes useful for representing the
|
|
|
|
The HTTP-Message distribution contains classes useful for representing the
|
|
|
|
messages passed in HTTP style communication. These are classes representing
|
|
|
|
messages passed in HTTP style communication. These are classes representing
|
|
|
|
requests, responses and the headers contained within them.
|
|
|
|
requests, responses and the headers contained within them.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package tests
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
with "%{_libexecdir}/%{name}/test".
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n HTTP-Message-%{version}
|
|
|
|
%setup -q -n HTTP-Message-%{version}
|
|
|
|
|
|
|
|
# Help generators to recognize Perl scripts
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
%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}
|
|
|
|
|
|
|
|
# Install tests
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
DIR=$(mktemp -d)
|
|
|
|
|
|
|
|
cp -a %{_libexecdir}/%{name}/t "$DIR"
|
|
|
|
|
|
|
|
pushd "$DIR"
|
|
|
|
|
|
|
|
prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
rm -r "$DIR"
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
@ -89,9 +138,71 @@ make test
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 6.18-1
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 6.29-3
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 6.29-2
|
|
|
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.27-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 05 2021 Petr Pisar <ppisar@redhat.com> - 6.27-1
|
|
|
|
|
|
|
|
- 6.27 bump
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Sep 10 2020 Petr Pisar <ppisar@redhat.com> - 6.26-1
|
|
|
|
|
|
|
|
- 6.26 bump
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.25-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 29 2020 Jitka Plesnikova <jplesnik@redhat.com> - 6.25-3
|
|
|
|
|
|
|
|
- Perl 5.32 re-rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 29 2020 Jitka Plesnikova <jplesnik@redhat.com> - 6.25-2
|
|
|
|
|
|
|
|
- Perl 5.32 re-rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 29 2020 Petr Pisar <ppisar@redhat.com> - 6.25-1
|
|
|
|
|
|
|
|
- 6.25 bump
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 6.24-2
|
|
|
|
|
|
|
|
- Perl 5.32 rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon May 11 2020 Petr Pisar <ppisar@redhat.com> - 6.24-1
|
|
|
|
|
|
|
|
- 6.24 bump
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Feb 25 2020 Petr Pisar <ppisar@redhat.com> - 6.22-1
|
|
|
|
|
|
|
|
- 6.22 bump
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.18-7
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.18-6
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 6.18-5
|
|
|
|
|
|
|
|
- Perl 5.30 rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.18-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.18-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 6.18-2
|
|
|
|
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 06 2018 Petr Pisar <ppisar@redhat.com> - 6.18-1
|
|
|
|
* Wed Jun 06 2018 Petr Pisar <ppisar@redhat.com> - 6.18-1
|
|
|
|
- 6.18 bump
|
|
|
|
- 6.18 bump
|
|
|
|