commit 31de9396dd8b5f128f6fcc804b2dda20e43e2db2 Author: dogsheng <960055655@qq.com> Date: Tue Nov 19 11:43:21 2019 +0800 Package init diff --git a/HTTP-Negotiate-6.01.tar.gz b/HTTP-Negotiate-6.01.tar.gz new file mode 100644 index 0000000..6be77a2 Binary files /dev/null and b/HTTP-Negotiate-6.01.tar.gz differ diff --git a/perl-HTTP-Negotiate.spec b/perl-HTTP-Negotiate.spec new file mode 100644 index 0000000..837e32d --- /dev/null +++ b/perl-HTTP-Negotiate.spec @@ -0,0 +1,57 @@ +Name: perl-HTTP-Negotiate +Version: 6.01 +Release: 22 +Summary: Choose a variant to serve +License: GPL+ or Artistic +URL: https://metacpan.org/release/HTTP-Negotiate +Source0: https://cpan.metacpan.org/authors/id/G/GA/GAAS/HTTP-Negotiate-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: perl-interpreter perl-generators perl(:VERSION) >= 5.8.1 +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 perl(strict) perl(Exporter) +BuildRequires: perl(HTTP::Headers) >= 6 perl(HTTP::Request) perl(Test) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) perl(HTTP::Headers) >= 6 +Conflicts: perl-libwww-perl < 6 +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(HTTP::Headers\\)$ + +%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. + +%package help +Summary: Documentation for perl-HTTP-Negotiate + +%description help +Documentation for perl-HTTP-Negotiate. + +%prep +%autosetup -n HTTP-Negotiate-%{version} -p1 + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 +%make_build + +%install +%make_install pure_install +%{_fixperms} %{buildroot}/* + +%check +make test + +%files +%{perl_vendorlib}/* +%exclude %{_libdir}/perl5/perllocal.pod + +%files help +%doc Changes README +%{_mandir}/man3/* + +%changelog +* Wed Nov 13 2019 dongjian - 6.01-22 +- Package init + +* Wed Oct 23 2019 Zaiwang Li - 6.01-22 +- Init Package.