3 %bcond_without tests # do not perform "make test"
7 Summary: HTTP::Negotiate - choose a variant to serve
8 Summary(pl.UTF-8): HTTP::Negotiate - wybór wariantu do serwowania
9 Name: perl-HTTP-Negotiate
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/HTTP/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 1236195250e264d7436e7bb02031671b
17 URL: http://search.cpan.org/dist/HTTP-Negotiate/
18 BuildRequires: perl-devel >= 1:5.8.8
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-HTTP-Message >= 6
23 Requires: perl-HTTP-Message >= 6
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This module provides a complete implementation of the HTTP content
29 negotiation algorithm specified in draft-ietf-http-v11-spec-00.ps
30 chapter 12. Content negotiation allows for the selection of a
31 preferred content representation based upon attributes of the
32 negotiable variants and the value of the various Accept* header fields
35 %description -l pl.UTF-8
36 Ten moduł udostepnia pełną implementację algorytmu negocjacji treści
37 HTTP opisanego w rozdziale 12 specyfikacji
38 draft-ietf-http-v11-spec-00.ps. Negocjacja treści pozwala na wybór
39 preferowanej reprezentacji treści w oparciu o atrybuty dostępnych
40 wariantów i wartości różnych pól nagłówków Accept* w żądaniu.
43 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{__perl} Makefile.PL \
50 %{?with_tests:%{__make} test}
53 rm -rf $RPM_BUILD_ROOT
55 %{__make} pure_install \
56 DESTDIR=$RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %{perl_vendorlib}/HTTP/Negotiate.pm
65 %{_mandir}/man3/HTTP::Negotiate.3pm*