]>
Commit | Line | Data |
---|---|---|
bda7850b JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir HTTP | |
6 | %define pnam Message | |
7 | %include /usr/lib/rpm/macros.perl | |
8 | Summary: HTTP::Message - HTTP style message | |
9 | Summary(pl.UTF-8): HTTP::Message - komunikacja w stylu HTTP | |
10 | Name: perl-HTTP-Message | |
11 | Version: 6.01 | |
12 | Release: 1 | |
13 | # same as perl | |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-module/HTTP/%{pdir}-%{pnam}-%{version}.tar.gz | |
17 | # Source0-md5: 186d35ca521858cd661c54504ad73f0a | |
18 | URL: http://search.cpan.org/dist/HTTP-Message/ | |
19 | BuildRequires: perl-devel >= 1:5.8.8 | |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | %if %{with tests} | |
22 | BuildRequires: perl-Encode >= 2.12 | |
23 | BuildRequires: perl-Encode-Locale >= 1 | |
24 | BuildRequires: perl-HTML-Parser >= 3.33 | |
25 | BuildRequires: perl-HTTP-Date >= 6 | |
26 | BuildRequires: perl-MIME-Base64 >= 1 | |
27 | BuildRequires: perl-IO-Compress | |
28 | BuildRequires: perl-URI >= 1.10 | |
f63c14d8 | 29 | BuildRequires: perl-LWP-MediaTypes >= 6 |
bda7850b | 30 | %endif |
f63c14d8 JB |
31 | Requires: perl-Encode >= 2.12 |
32 | Requires: perl-Encode-Locale >= 1 | |
33 | Requires: perl-HTTP-Date >= 6 | |
34 | Requires: perl-MIME-Base64 >= 1 | |
35 | Requires: perl-URI >= 1.10 | |
36 | Requires: perl-LWP-MediaTypes >= 6 | |
bda7850b JB |
37 | Conflicts: perl-libwww < 6 |
38 | BuildArch: noarch | |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
40 | ||
41 | %description | |
f63c14d8 JB |
42 | The HTTP-Message distribution contains classes useful for representing |
43 | the messages passed in HTTP style communication. These are classes | |
44 | representing requests (HTTP::Request), responses (HTTP::Response) and | |
45 | the headers (HTTP::Headers) contained within them. | |
bda7850b JB |
46 | |
47 | %description -l pl.UTF-8 | |
f63c14d8 JB |
48 | Pakiet HTML-Message zawiera klasy do reprezentacji komunikatów |
49 | przekazywanych w komunikacji w stylu HTTP. Zawiera klasy | |
50 | reprezentujące żądania (HTTP::Request), odpowiedzi (HTTP::Response) i | |
51 | nagłówki (HTTP::Headers). | |
bda7850b JB |
52 | |
53 | %prep | |
54 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
55 | ||
56 | %build | |
57 | %{__perl} Makefile.PL \ | |
58 | INSTALLDIRS=vendor | |
59 | %{__make} | |
60 | ||
61 | %{?with_tests:%{__make} test} | |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %{__make} pure_install \ | |
67 | DESTDIR=$RPM_BUILD_ROOT | |
68 | ||
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %files | |
73 | %defattr(644,root,root,755) | |
74 | %doc Changes README | |
75 | %{perl_vendorlib}/HTTP/Config.pm | |
76 | %{perl_vendorlib}/HTTP/Headers.pm | |
77 | %{perl_vendorlib}/HTTP/Headers | |
78 | %{perl_vendorlib}/HTTP/Message.pm | |
79 | %{perl_vendorlib}/HTTP/Request.pm | |
80 | %{perl_vendorlib}/HTTP/Request | |
81 | %{perl_vendorlib}/HTTP/Response.pm | |
82 | %{perl_vendorlib}/HTTP/Status.pm | |
83 | %{_mandir}/man3/HTTP::Config.3pm* | |
84 | %{_mandir}/man3/HTTP::Headers*.3pm* | |
85 | %{_mandir}/man3/HTTP::Message.3pm* | |
86 | %{_mandir}/man3/HTTP::Request*.3pm* | |
87 | %{_mandir}/man3/HTTP::Response.3pm* | |
88 | %{_mandir}/man3/HTTP::Status.3pm* |