]> git.pld-linux.org Git - packages/perl-HTTP-Negotiate.git/blob - perl-HTTP-Negotiate.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-HTTP-Negotiate.git] / perl-HTTP-Negotiate.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    HTTP
6 %define         pnam    Negotiate
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
10 Version:        6.01
11 Release:        1
12 # same as perl
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
20 %if %{with tests}
21 BuildRequires:  perl-HTTP-Message >= 6
22 %endif
23 Requires:       perl-HTTP-Message >= 6
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
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
33 in the request.
34
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.
41
42 %prep
43 %setup -q -n %{pdir}-%{pnam}-%{version}
44
45 %build
46 %{__perl} Makefile.PL \
47         INSTALLDIRS=vendor
48 %{__make}
49
50 %{?with_tests:%{__make} test}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 %{__make} pure_install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc Changes
64 %{perl_vendorlib}/HTTP/Negotiate.pm
65 %{_mandir}/man3/HTTP::Negotiate.3pm*
This page took 0.090014 seconds and 4 git commands to generate.