1 | Name: perl-HTTP-Negotiate
|
---|
2 | Version: 6.01
|
---|
3 | Release: 1%{?dist}
|
---|
4 | Summary: Choose a variant to serve
|
---|
5 | License: GPL+ or Artistic
|
---|
6 | URL: http://search.cpan.org/dist/HTTP-Negotiate/
|
---|
7 | Vendor: bww bitwise works GmbH
|
---|
8 | Source0: http://www.cpan.org/authors/id/G/GA/GAAS/HTTP-Negotiate-%{version}.tar.gz
|
---|
9 | BuildArch: noarch
|
---|
10 | BuildRequires: make
|
---|
11 | #BuildRequires: perl-interpreter
|
---|
12 | BuildRequires: perl-generators
|
---|
13 | #BuildRequires: perl(:VERSION) >= 5.8.1
|
---|
14 | BuildRequires: perl(ExtUtils::MakeMaker)
|
---|
15 | BuildRequires: perl(strict)
|
---|
16 | # Run-time:
|
---|
17 | BuildRequires: perl(Exporter)
|
---|
18 | BuildRequires: perl(HTTP::Headers) >= 6
|
---|
19 | # Tests only:
|
---|
20 | BuildRequires: perl(HTTP::Request)
|
---|
21 | BuildRequires: perl(Test)
|
---|
22 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
---|
23 | Requires: perl(HTTP::Headers) >= 6
|
---|
24 | Conflicts: perl-libwww-perl < 6
|
---|
25 |
|
---|
26 | # Remove underspecified dependencies
|
---|
27 | %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(HTTP::Headers\\)$
|
---|
28 |
|
---|
29 | %description
|
---|
30 | This module provides a complete implementation of the HTTP content
|
---|
31 | negotiation algorithm specified in draft-ietf-http-v11-spec-00.ps chapter
|
---|
32 | 12. Content negotiation allows for the selection of a preferred content
|
---|
33 | representation based upon attributes of the negotiable variants and the
|
---|
34 | value of the various Accept* header fields in the request.
|
---|
35 |
|
---|
36 | %prep
|
---|
37 | %setup -q -n HTTP-Negotiate-%{version}
|
---|
38 |
|
---|
39 | %build
|
---|
40 | perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
---|
41 | make %{?_smp_mflags}
|
---|
42 | make manifypods
|
---|
43 |
|
---|
44 | %install
|
---|
45 | make pure_install DESTDIR=%{buildroot}
|
---|
46 | find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
---|
47 | %{_fixperms} %{buildroot}/*
|
---|
48 |
|
---|
49 | %check
|
---|
50 | #make test
|
---|
51 |
|
---|
52 | %files
|
---|
53 | %doc Changes README
|
---|
54 | %{perl_vendorlib}/*
|
---|
55 | %{_mandir}/man3/*
|
---|
56 |
|
---|
57 | %changelog
|
---|
58 | * Fri Feb 23 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> - 6.01-1
|
---|
59 | - initial version
|
---|