[12120] | 1 | # Add support for IPv6 |
---|
| 2 | %{bcond_without perl_Net_HTTP_enables_ipv6} |
---|
| 3 | # Do not run network tests accessing Internet |
---|
| 4 | %{bcond_with perl_Net_HTTP_enables_network_test} |
---|
| 5 | # Add support for TLS/SSL |
---|
| 6 | %{bcond_without perl_Net_HTTP_enables_ssl} |
---|
| 7 | |
---|
| 8 | Name: perl-Net-HTTP |
---|
| 9 | Version: 6.19 |
---|
| 10 | Release: 1%{?_dist_release} |
---|
| 11 | Summary: Low-level HTTP connection (client) |
---|
| 12 | License: GPL+ or Artistic |
---|
| 13 | URL: https://metacpan.org/release/Net-HTTP |
---|
| 14 | Source0: https://cpan.metacpan.org/authors/id/O/OA/OALDERS/Net-HTTP-%{version}.tar.gz |
---|
| 15 | |
---|
| 16 | Vendor: Project Vine |
---|
| 17 | Distribution: Vine Linux |
---|
| 18 | |
---|
| 19 | BuildArch: noarch |
---|
| 20 | BuildRequires: make |
---|
| 21 | BuildRequires: perl >= 2:5.26.2 |
---|
| 22 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 23 | BuildRequires: perl(Getopt::Long) |
---|
| 24 | BuildRequires: perl(strict) |
---|
| 25 | # Run-time: |
---|
| 26 | BuildRequires: perl(base) |
---|
| 27 | BuildRequires: perl(Carp) |
---|
| 28 | BuildRequires: perl(Compress::Raw::Zlib) |
---|
| 29 | # Prefer IO::Socket::IP over IO::Socket::INET and IO::Socket::INET6 |
---|
| 30 | %if %{with perl_Net_HTTP_enables_ipv6} |
---|
| 31 | BuildRequires: perl(IO::Socket::IP) |
---|
| 32 | %else |
---|
| 33 | BuildRequires: perl(IO::Socket) |
---|
| 34 | %endif |
---|
| 35 | %if %{with perl_Net_HTTP_enables_ssl} |
---|
| 36 | BuildRequires: perl(IO::Socket::SSL) |
---|
| 37 | %endif |
---|
| 38 | BuildRequires: perl(IO::Uncompress::Gunzip) |
---|
| 39 | BuildRequires: perl(Symbol) |
---|
| 40 | BuildRequires: perl(URI) |
---|
| 41 | BuildRequires: perl(vars) |
---|
| 42 | BuildRequires: perl(warnings) |
---|
| 43 | # Tests only: |
---|
| 44 | BuildRequires: perl(Data::Dumper) |
---|
| 45 | BuildRequires: perl(File::Spec) |
---|
| 46 | BuildRequires: perl(IO::Select) |
---|
| 47 | BuildRequires: perl(IO::Socket::INET) |
---|
| 48 | BuildRequires: perl(Socket) |
---|
| 49 | BuildRequires: perl(Test::More) |
---|
| 50 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
| 51 | Requires: perl(Compress::Raw::Zlib) |
---|
| 52 | Requires: perl(IO::Uncompress::Gunzip) |
---|
| 53 | # Prefer IO::Socket::IP over IO::Socket::INET and IO::Socket::INET6 |
---|
| 54 | %if %{with perl_Net_HTTP_enables_ipv6} |
---|
| 55 | Requires: perl(IO::Socket::IP) |
---|
| 56 | %else |
---|
| 57 | Requires: perl(IO::Socket) |
---|
| 58 | %endif |
---|
| 59 | Requires: perl(Symbol) |
---|
| 60 | %if %{with perl_Net_HTTP_enables_ssl} |
---|
| 61 | Requires: perl(IO::Socket::SSL) |
---|
| 62 | %endif |
---|
| 63 | Conflicts: perl-libwww-perl < 6 |
---|
| 64 | |
---|
| 65 | %description |
---|
| 66 | The Net::HTTP class is a low-level HTTP client. An instance of the |
---|
| 67 | Net::HTTP class represents a connection to an HTTP server. The HTTP |
---|
| 68 | protocol is described in RFC 2616. The Net::HTTP class supports HTTP/1.0 |
---|
| 69 | and HTTP/1.1. |
---|
| 70 | |
---|
| 71 | %prep |
---|
| 72 | %setup -q -n Net-HTTP-%{version} |
---|
| 73 | |
---|
| 74 | %build |
---|
| 75 | perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 |
---|
| 76 | make %{?_smp_mflags} |
---|
| 77 | |
---|
| 78 | %install |
---|
| 79 | make pure_install DESTDIR=$RPM_BUILD_ROOT |
---|
| 80 | %{_fixperms} $RPM_BUILD_ROOT/* |
---|
| 81 | |
---|
| 82 | %check |
---|
| 83 | export NO_NETWORK_TESTING=%{without perl_Net_HTTP_enables_network_test} |
---|
| 84 | make test |
---|
| 85 | |
---|
| 86 | %files |
---|
| 87 | %license LICENSE |
---|
| 88 | %doc Changes CONTRIBUTORS README.md |
---|
| 89 | %{perl_vendorlib}/* |
---|
| 90 | %{_mandir}/man3/* |
---|
| 91 | |
---|
| 92 | %changelog |
---|
| 93 | * Fri May 17 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 6.19-1 |
---|
| 94 | - new upstream release. |
---|
| 95 | - initial build for Vine Linux. |
---|
| 96 | |
---|
| 97 | * Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.18-4 |
---|
| 98 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild |
---|
| 99 | |
---|
| 100 | * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.18-3 |
---|
| 101 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild |
---|
| 102 | |
---|
| 103 | * Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 6.18-2 |
---|
| 104 | - Perl 5.28 rebuild |
---|
| 105 | |
---|
| 106 | * Thu May 10 2018 Jitka Plesnikova <jplesnik@redhat.com> - 6.18-1 |
---|
| 107 | - 6.18 bump |
---|
| 108 | |
---|
| 109 | * Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.17-2 |
---|
| 110 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild |
---|
| 111 | |
---|
| 112 | * Mon Sep 04 2017 Petr Pisar <ppisar@redhat.com> - 6.17-1 |
---|
| 113 | - 6.17 bump |
---|
| 114 | |
---|
| 115 | * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.16-3 |
---|
| 116 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild |
---|
| 117 | |
---|
| 118 | * Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 6.16-2 |
---|
| 119 | - Perl 5.26 rebuild |
---|
| 120 | |
---|
| 121 | * Tue May 30 2017 Petr Pisar <ppisar@redhat.com> - 6.16-1 |
---|
| 122 | - 6.16 bump |
---|
| 123 | |
---|
| 124 | * Mon May 15 2017 Petr Pisar <ppisar@redhat.com> - 6.15-1 |
---|
| 125 | - 6.15 bump |
---|
| 126 | |
---|
| 127 | * Tue Apr 25 2017 Petr Pisar <ppisar@redhat.com> - 6.14-1 |
---|
| 128 | - 6.14 bump |
---|
| 129 | |
---|
| 130 | * Mon Feb 20 2017 Petr Pisar <ppisar@redhat.com> - 6.13-1 |
---|
| 131 | - 6.13 bump |
---|
| 132 | |
---|
| 133 | * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.12-2 |
---|
| 134 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild |
---|
| 135 | |
---|
| 136 | * Fri Jan 06 2017 Petr Pisar <ppisar@redhat.com> - 6.12-1 |
---|
| 137 | - 6.12 bump |
---|
| 138 | |
---|
| 139 | * Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 6.09-5 |
---|
| 140 | - Perl 5.24 rebuild |
---|
| 141 | |
---|
| 142 | * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 6.09-4 |
---|
| 143 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild |
---|
| 144 | |
---|
| 145 | * Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.09-3 |
---|
| 146 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild |
---|
| 147 | |
---|
| 148 | * Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 6.09-2 |
---|
| 149 | - Perl 5.22 rebuild |
---|
| 150 | |
---|
| 151 | * Thu May 21 2015 Petr Pisar <ppisar@redhat.com> - 6.09-1 |
---|
| 152 | - 6.09 bump |
---|
| 153 | |
---|
| 154 | * Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 6.07-2 |
---|
| 155 | - Perl 5.20 rebuild |
---|
| 156 | |
---|
| 157 | * Tue Jul 29 2014 Petr Pisar <ppisar@redhat.com> - 6.07-1 |
---|
| 158 | - 6.07 bump |
---|
| 159 | |
---|
| 160 | * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.06-5 |
---|
| 161 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
---|
| 162 | |
---|
| 163 | * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.06-4 |
---|
| 164 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild |
---|
| 165 | |
---|
| 166 | * Wed Jul 31 2013 Petr Pisar <ppisar@redhat.com> - 6.06-3 |
---|
| 167 | - Specify all dependencies |
---|
| 168 | |
---|
| 169 | * Tue Jul 23 2013 Petr Pisar <ppisar@redhat.com> - 6.06-2 |
---|
| 170 | - Perl 5.18 rebuild |
---|
| 171 | |
---|
| 172 | * Mon Mar 11 2013 Petr Pisar <ppisar@redhat.com> - 6.06-1 |
---|
| 173 | - 6.06 bump |
---|
| 174 | |
---|
| 175 | * Fri Mar 08 2013 Petr Pisar <ppisar@redhat.com> - 6.05-3 |
---|
| 176 | - Handle IO::Socket::SSL as non-blocking (bug #768394) |
---|
| 177 | |
---|
| 178 | * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.05-2 |
---|
| 179 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild |
---|
| 180 | |
---|
| 181 | * Tue Nov 13 2012 Petr Pisar <ppisar@redhat.com> - 6.05-1 |
---|
| 182 | - 6.05 bump |
---|
| 183 | |
---|
| 184 | * Fri Nov 09 2012 Petr Pisar <ppisar@redhat.com> - 6.04-1 |
---|
| 185 | - 6.04 bump |
---|
| 186 | |
---|
| 187 | * Mon Aug 13 2012 Petr Pisar <ppisar@redhat.com> - 6.03-4 |
---|
| 188 | - Specify all dependencies |
---|
| 189 | |
---|
| 190 | * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.03-3 |
---|
| 191 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild |
---|
| 192 | |
---|
| 193 | * Thu Jun 14 2012 Petr Pisar <ppisar@redhat.com> - 6.03-2 |
---|
| 194 | - Perl 5.16 rebuild |
---|
| 195 | |
---|
| 196 | * Mon Feb 20 2012 Petr Pisar <ppisar@redhat.com> - 6.03-1 |
---|
| 197 | - 6.03 bump: Restore blocking override for Net::SSL (RT #72790) |
---|
| 198 | |
---|
| 199 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.02-2 |
---|
| 200 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
| 201 | |
---|
| 202 | * Tue Nov 22 2011 Petr Pisar <ppisar@redhat.com> - 6.02-1 |
---|
| 203 | - 6.02 bump |
---|
| 204 | - Fixes HTTPS time-out in LWP::UserAgent/IO::Socket::SSL (bug #750793) |
---|
| 205 | |
---|
| 206 | * Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 6.01-2 |
---|
| 207 | - Perl mass rebuild |
---|
| 208 | |
---|
| 209 | * Mon Apr 18 2011 Petr Pisar <ppisar@redhat.com> - 6.01-1 |
---|
| 210 | - 6.01 bump |
---|
| 211 | |
---|
| 212 | * Thu Mar 17 2011 Petr Pisar <ppisar@redhat.com> 6.00-1 |
---|
| 213 | - Specfile autogenerated by cpanspec 1.78. |
---|
| 214 | - Remove BuildRoot stuff |
---|
| 215 | - Conflicts with perl-libwww-perl-5* and older |
---|