2011-03-21 17:26:26 +00:00
|
|
|
Name: perl-HTTP-Negotiate
|
2012-02-20 10:37:01 +00:00
|
|
|
Version: 6.01
|
2024-10-29 15:57:31 +00:00
|
|
|
Release: 40%{?dist}
|
2011-03-21 17:26:26 +00:00
|
|
|
Summary: Choose a variant to serve
|
2022-12-01 09:00:36 +00:00
|
|
|
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
2018-06-04 13:02:29 +00:00
|
|
|
URL: https://metacpan.org/release/HTTP-Negotiate
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/G/GA/GAAS/HTTP-Negotiate-%{version}.tar.gz
|
2022-12-01 09:22:46 +00:00
|
|
|
Patch0: 0001-Fix-warning-in-test.patch
|
2011-03-21 17:26:26 +00:00
|
|
|
BuildArch: noarch
|
2017-06-05 09:30:15 +00:00
|
|
|
BuildRequires: make
|
2017-07-12 12:11:18 +00:00
|
|
|
BuildRequires: perl-interpreter
|
2016-06-24 07:56:44 +00:00
|
|
|
BuildRequires: perl-generators
|
2017-06-05 09:30:15 +00:00
|
|
|
BuildRequires: perl(:VERSION) >= 5.8.1
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
# Run-time:
|
2011-03-21 17:26:26 +00:00
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
BuildRequires: perl(HTTP::Headers) >= 6
|
|
|
|
# Tests only:
|
|
|
|
BuildRequires: perl(HTTP::Request)
|
2017-06-05 09:30:15 +00:00
|
|
|
BuildRequires: perl(Test)
|
2011-03-21 17:26:26 +00:00
|
|
|
Requires: perl(HTTP::Headers) >= 6
|
|
|
|
Conflicts: perl-libwww-perl < 6
|
|
|
|
|
|
|
|
# Remove underspecified dependencies
|
2011-07-25 10:32:38 +00:00
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(HTTP::Headers\\)$
|
|
|
|
|
2011-03-21 17:26:26 +00:00
|
|
|
%description
|
|
|
|
This module provides a complete implementation of the HTTP content
|
|
|
|
negotiation algorithm specified in draft-ietf-http-v11-spec-00.ps chapter
|
|
|
|
12. Content negotiation allows for the selection of a preferred content
|
|
|
|
representation based upon attributes of the negotiable variants and the
|
|
|
|
value of the various Accept* header fields in the request.
|
|
|
|
|
2022-12-01 09:20:04 +00:00
|
|
|
%package tests
|
|
|
|
Summary: Tests for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
Requires: perl-Test-Harness
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
Tests from %{name}. Execute them
|
|
|
|
with "%{_libexecdir}/%{name}/test".
|
|
|
|
|
2011-03-21 17:26:26 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n HTTP-Negotiate-%{version}
|
2022-12-01 09:22:46 +00:00
|
|
|
%patch0 -p1
|
2022-12-01 09:20:04 +00:00
|
|
|
# Help generators to recognize Perl scripts
|
|
|
|
for F in $(find t/ -name '*.t'); do
|
|
|
|
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F"
|
|
|
|
chmod +x "$F"
|
|
|
|
done
|
2011-03-21 17:26:26 +00:00
|
|
|
|
|
|
|
%build
|
2022-12-01 09:03:56 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
|
%{make_build}
|
2011-03-21 17:26:26 +00:00
|
|
|
|
|
|
|
%install
|
2022-12-01 09:03:56 +00:00
|
|
|
%{make_install}
|
2022-12-01 09:20:04 +00:00
|
|
|
# Install tests
|
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
|
|
|
#!/bin/sh
|
|
|
|
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" -r
|
|
|
|
EOF
|
|
|
|
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
2012-11-14 14:37:02 +00:00
|
|
|
%{_fixperms} %{buildroot}/*
|
2011-03-21 17:26:26 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc Changes README
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
2022-12-01 09:20:04 +00:00
|
|
|
%files tests
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
2011-03-21 17:26:26 +00:00
|
|
|
%changelog
|
2024-10-29 15:57:31 +00:00
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 6.01-40
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
2024-06-24 16:10:03 +00:00
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 6.01-39
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
2024-01-25 17:12:46 +00:00
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 6.01-38
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2024-01-21 15:39:58 +00:00
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 6.01-37
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2023-07-20 22:29:38 +00:00
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 6.01-36
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-01-20 02:58:22 +00:00
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 6.01-35
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-12-01 09:00:36 +00:00
|
|
|
* Thu Dec 01 2022 Michal Josef Špaček <mspacek@redhat.com> - 6.01-34
|
2022-12-01 09:20:04 +00:00
|
|
|
- Package tests
|
2022-12-01 09:22:46 +00:00
|
|
|
- Patch for remove warning in test
|
2022-12-01 09:03:56 +00:00
|
|
|
- Simplify build and install phases
|
2022-12-01 09:00:36 +00:00
|
|
|
- Update license to SPDX format
|
|
|
|
|
2022-07-22 06:51:05 +00:00
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.01-33
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-05-31 20:03:40 +00:00
|
|
|
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 6.01-32
|
|
|
|
- Perl 5.36 rebuild
|
|
|
|
|
2022-01-21 02:20:18 +00:00
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.01-31
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-07-22 20:57:34 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.01-30
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-05-21 22:16:04 +00:00
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 6.01-29
|
|
|
|
- Perl 5.34 rebuild
|
|
|
|
|
2021-01-27 01:55:29 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.01-28
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-07-28 16:12:55 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.01-27
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-06-23 09:18:23 +00:00
|
|
|
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 6.01-26
|
|
|
|
- Perl 5.32 rebuild
|
|
|
|
|
2020-01-30 00:59:09 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.01-25
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-07-26 03:38:47 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.01-24
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-05-31 17:49:34 +00:00
|
|
|
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 6.01-23
|
|
|
|
- Perl 5.30 rebuild
|
|
|
|
|
2019-02-01 21:18:00 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.01-22
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-13 17:48:54 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.01-21
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-28 17:45:32 +00:00
|
|
|
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 6.01-20
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
2018-02-08 21:48:08 +00:00
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.01-19
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-07-27 04:19:12 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.01-18
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-06-07 21:41:24 +00:00
|
|
|
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 6.01-17
|
|
|
|
- Perl 5.26 re-rebuild of bootstrapped packages
|
|
|
|
|
2017-06-05 09:30:15 +00:00
|
|
|
* Mon Jun 05 2017 Petr Pisar <ppisar@redhat.com> - 6.01-16
|
|
|
|
- Modernize spec file
|
2017-06-05 09:31:56 +00:00
|
|
|
- Fix a changelog entry
|
2017-06-05 09:30:15 +00:00
|
|
|
|
2017-06-04 19:43:07 +00:00
|
|
|
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 6.01-15
|
|
|
|
- Perl 5.26 rebuild
|
|
|
|
|
2017-02-11 03:29:09 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.01-14
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-05-15 17:53:31 +00:00
|
|
|
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 6.01-13
|
|
|
|
- Perl 5.24 rebuild
|
|
|
|
|
2016-02-04 14:01:48 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 6.01-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-06-18 03:39:57 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.01-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-06-06 04:44:19 +00:00
|
|
|
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 6.01-10
|
|
|
|
- Perl 5.22 rebuild
|
|
|
|
|
2014-08-28 07:42:18 +00:00
|
|
|
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 6.01-9
|
|
|
|
- Perl 5.20 rebuild
|
|
|
|
|
2014-06-07 05:21:48 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.01-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-08-03 21:52:38 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.01-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-22 04:33:54 +00:00
|
|
|
* Mon Jul 22 2013 Petr Pisar <ppisar@redhat.com> - 6.01-6
|
|
|
|
- Perl 5.18 rebuild
|
|
|
|
|
2013-02-14 12:52:02 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.01-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-11-14 14:37:02 +00:00
|
|
|
* Wed Nov 14 2012 Petr Šabata <contyk@redhat.com> - 6.01-4
|
|
|
|
- Modernize the spec and drop command macros
|
|
|
|
|
2012-07-20 15:59:17 +00:00
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.01-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-12 16:36:35 +00:00
|
|
|
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 6.01-2
|
|
|
|
- Perl 5.16 rebuild
|
|
|
|
|
2012-02-20 10:37:01 +00:00
|
|
|
* Mon Feb 20 2012 Petr Pisar <ppisar@redhat.com> - 6.01-1
|
|
|
|
- 6.01 bump
|
|
|
|
|
2012-01-13 14:14:01 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.00-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2017-06-05 09:31:56 +00:00
|
|
|
* Mon Jul 25 2011 Marcela Mašláňová <mmaslano@redhat.com> - 6.00-3
|
2011-07-25 10:32:38 +00:00
|
|
|
- add new filter
|
|
|
|
|
2011-06-21 11:41:26 +00:00
|
|
|
* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 6.00-2
|
|
|
|
- Perl mass rebuild
|
|
|
|
|
2011-03-21 17:26:26 +00:00
|
|
|
* Thu Mar 17 2011 Petr Pisar <ppisar@redhat.com> 6.00-1
|
|
|
|
- Specfile autogenerated by cpanspec 1.78.
|
|
|
|
- Remove BuildRoot stuff
|
|
|
|
- Conflicts with perl-libwww-perl-5* and older
|