Package init
This commit is contained in:
commit
31de9396dd
BIN
HTTP-Negotiate-6.01.tar.gz
Normal file
BIN
HTTP-Negotiate-6.01.tar.gz
Normal file
Binary file not shown.
57
perl-HTTP-Negotiate.spec
Normal file
57
perl-HTTP-Negotiate.spec
Normal file
@ -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 <dongjian13@huawei.com> - 6.01-22
|
||||
- Package init
|
||||
|
||||
* Wed Oct 23 2019 Zaiwang Li <lizaiwang1@huawei.com> - 6.01-22
|
||||
- Init Package.
|
||||
Loading…
x
Reference in New Issue
Block a user