Compare commits

...

No commits in common. 'c9' and 'i8c-stream-6.34' have entirely different histories.

2
.gitignore vendored

@ -1 +1 @@
SOURCES/Net-HTTP-6.21.tar.gz SOURCES/Net-HTTP-6.17.tar.gz

@ -1 +1 @@
d69a377f7b2ac9f02304f34f28345a6a695b4803 SOURCES/Net-HTTP-6.21.tar.gz 88355f3e5e05bf1a5c2fc88c89bb9a1f1f43f7dd SOURCES/Net-HTTP-6.17.tar.gz

@ -6,19 +6,17 @@
%{bcond_without perl_Net_HTTP_enables_ssl} %{bcond_without perl_Net_HTTP_enables_ssl}
Name: perl-Net-HTTP Name: perl-Net-HTTP
Version: 6.21 Version: 6.17
Release: 3%{?dist} Release: 2%{?dist}
Summary: Low-level HTTP connection (client) Summary: Low-level HTTP connection (client)
License: GPL+ or Artistic License: GPL+ or Artistic
URL: https://metacpan.org/release/Net-HTTP URL: http://search.cpan.org/dist/Net-HTTP/
Source0: https://cpan.metacpan.org/authors/id/O/OA/OALDERS/Net-HTTP-%{version}.tar.gz Source0: http://www.cpan.org/authors/id/O/OA/OALDERS/Net-HTTP-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: coreutils
BuildRequires: make BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter BuildRequires: perl-interpreter
BuildRequires: perl-generators
BuildRequires: perl(:VERSION) >= 5.6.2 BuildRequires: perl(:VERSION) >= 5.6.2
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(Getopt::Long) BuildRequires: perl(Getopt::Long)
BuildRequires: perl(strict) BuildRequires: perl(strict)
@ -33,12 +31,12 @@ BuildRequires: perl(IO::Socket::IP)
BuildRequires: perl(IO::Socket) BuildRequires: perl(IO::Socket)
%endif %endif
%if %{with perl_Net_HTTP_enables_ssl} %if %{with perl_Net_HTTP_enables_ssl}
# IO::Socket::SSL or Net::SSL
BuildRequires: perl(IO::Socket::SSL) >= 2.012 BuildRequires: perl(IO::Socket::SSL) >= 2.012
%endif %endif
BuildRequires: perl(IO::Uncompress::Gunzip) BuildRequires: perl(IO::Uncompress::Gunzip)
BuildRequires: perl(Symbol) BuildRequires: perl(Symbol)
BuildRequires: perl(URI) BuildRequires: perl(URI)
BuildRequires: perl(vars)
BuildRequires: perl(warnings) BuildRequires: perl(warnings)
# Tests only: # Tests only:
BuildRequires: perl(Data::Dumper) BuildRequires: perl(Data::Dumper)
@ -68,51 +66,19 @@ Net::HTTP class represents a connection to an HTTP server. The HTTP
protocol is described in RFC 2616. The Net::HTTP class supports HTTP/1.0 protocol is described in RFC 2616. The Net::HTTP class supports HTTP/1.0
and HTTP/1.1. and HTTP/1.1.
%package tests
Summary: Tests for %{name}
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: perl-Test-Harness
%if %{with perl_Net_HTTP_enables_network_test}
%if %{with perl_Net_HTTP_enables_ssl}
Requires: perl(IO::Socket::SSL) >= 2.012
%endif
%endif
%description tests
Tests from %{name}. Execute them
with "%{_libexecdir}/%{name}/test".
%prep %prep
%setup -q -n Net-HTTP-%{version} %setup -q -n Net-HTTP-%{version}
%if %{without perl_Net_HTTP_enables_network_test}
rm t/live*.t
perl -i -ne 'print $_ unless m{^t/live.*\.t}' MANIFEST
%endif
# Help generators to recognize a Perl code
for F in t/*.t; do
perl -i -MConfig -pe 'print qq{$Config{startperl}\n} if $. == 1 && !s{\A#!.*\bperl}{$Config{startperl}}' "$F"
chmod +x "$F"
done
%build %build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%{make_build} make %{?_smp_mflags}
%install %install
%{make_install} make pure_install DESTDIR=$RPM_BUILD_ROOT
%{_fixperms} $RPM_BUILD_ROOT/* %{_fixperms} $RPM_BUILD_ROOT/*
# Install tests
mkdir -p %{buildroot}%{_libexecdir}/%{name}
cp -a t %{buildroot}%{_libexecdir}/%{name}
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
#!/bin/sh
set -e
cd %{_libexecdir}/%{name} && 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}') export NO_NETWORK_TESTING=%{without perl_Net_HTTP_enables_network_test}
make test make test
%files %files
@ -121,56 +87,9 @@ make test
%{perl_vendorlib}/* %{perl_vendorlib}/*
%{_mandir}/man3/* %{_mandir}/man3/*
%files tests
%{_libexecdir}/%{name}
%changelog %changelog
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 6.21-3 * Sun Dec 10 2023 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 6.17-2
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Rebuilt for MSVSphere 8.8
Related: rhbz#1991688
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 6.21-2
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Fri Mar 19 2021 Petr Pisar <ppisar@redhat.com> - 6.21-1
- 6.21 bump
- Package tests
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.20-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Jan 11 2021 Petr Pisar <ppisar@redhat.com> - 6.20-1
- 6.20 bump
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.19-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 6.19-5
- Perl 5.32 rebuild
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.19-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.19-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 6.19-2
- Perl 5.30 rebuild
* Fri May 17 2019 Petr Pisar <ppisar@redhat.com> - 6.19-1
- 6.19 bump
* 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
* Thu May 10 2018 Jitka Plesnikova <jplesnik@redhat.com> - 6.18-1
- 6.18 bump
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.17-2 * Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.17-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

Loading…
Cancel
Save