]>
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 | |
bda7850b JB |
7 | Summary: HTTP::Message - HTTP style message |
8 | Summary(pl.UTF-8): HTTP::Message - komunikacja w stylu HTTP | |
9 | Name: perl-HTTP-Message | |
dab682e6 | 10 | Version: 6.26 |
e79a222d | 11 | Release: 1 |
bda7850b JB |
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 | |
dab682e6 | 16 | # Source0-md5: 3b4b64fff4885429b997390564521db0 |
bda7850b JB |
17 | URL: http://search.cpan.org/dist/HTTP-Message/ |
18 | BuildRequires: perl-devel >= 1:5.8.8 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | %if %{with tests} | |
dab682e6 | 21 | BuildRequires: perl-Encode >= 3.01 |
bda7850b JB |
22 | BuildRequires: perl-Encode-Locale >= 1 |
23 | BuildRequires: perl-HTML-Parser >= 3.33 | |
24 | BuildRequires: perl-HTTP-Date >= 6 | |
e79a222d | 25 | BuildRequires: perl-LWP-MediaTypes >= 6 |
0a5990d8 JB |
26 | BuildRequires: perl-MIME-Base64 >= 2.1 |
27 | BuildRequires: perl-IO-Compress >= 2.021 | |
a8d575f6 | 28 | BuildRequires: perl-IO-HTML |
e79a222d JB |
29 | BuildRequires: perl-Test-Simple >= 0.88 |
30 | BuildRequires: perl-Try-Tiny | |
bda7850b | 31 | BuildRequires: perl-URI >= 1.10 |
bda7850b | 32 | %endif |
dab682e6 | 33 | Requires: perl-Encode >= 3.01 |
f63c14d8 JB |
34 | Requires: perl-Encode-Locale >= 1 |
35 | Requires: perl-HTTP-Date >= 6 | |
5fcd7488 | 36 | Requires: perl-IO-HTML |
0a5990d8 | 37 | Requires: perl-MIME-Base64 >= 2.1 |
f63c14d8 JB |
38 | Requires: perl-URI >= 1.10 |
39 | Requires: perl-LWP-MediaTypes >= 6 | |
bda7850b JB |
40 | Conflicts: perl-libwww < 6 |
41 | BuildArch: noarch | |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
43 | ||
44 | %description | |
f63c14d8 JB |
45 | The HTTP-Message distribution contains classes useful for representing |
46 | the messages passed in HTTP style communication. These are classes | |
47 | representing requests (HTTP::Request), responses (HTTP::Response) and | |
48 | the headers (HTTP::Headers) contained within them. | |
bda7850b JB |
49 | |
50 | %description -l pl.UTF-8 | |
f63c14d8 JB |
51 | Pakiet HTML-Message zawiera klasy do reprezentacji komunikatów |
52 | przekazywanych w komunikacji w stylu HTTP. Zawiera klasy | |
53 | reprezentujące żądania (HTTP::Request), odpowiedzi (HTTP::Response) i | |
54 | nagłówki (HTTP::Headers). | |
bda7850b JB |
55 | |
56 | %prep | |
57 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
58 | ||
59 | %build | |
60 | %{__perl} Makefile.PL \ | |
61 | INSTALLDIRS=vendor | |
62 | %{__make} | |
63 | ||
64 | %{?with_tests:%{__make} test} | |
65 | ||
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %{__make} pure_install \ | |
70 | DESTDIR=$RPM_BUILD_ROOT | |
71 | ||
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %files | |
76 | %defattr(644,root,root,755) | |
e79a222d | 77 | %doc CONTRIBUTORS Changes README.md |
bda7850b JB |
78 | %{perl_vendorlib}/HTTP/Config.pm |
79 | %{perl_vendorlib}/HTTP/Headers.pm | |
80 | %{perl_vendorlib}/HTTP/Headers | |
81 | %{perl_vendorlib}/HTTP/Message.pm | |
82 | %{perl_vendorlib}/HTTP/Request.pm | |
83 | %{perl_vendorlib}/HTTP/Request | |
84 | %{perl_vendorlib}/HTTP/Response.pm | |
85 | %{perl_vendorlib}/HTTP/Status.pm | |
86 | %{_mandir}/man3/HTTP::Config.3pm* | |
87 | %{_mandir}/man3/HTTP::Headers*.3pm* | |
88 | %{_mandir}/man3/HTTP::Message.3pm* | |
89 | %{_mandir}/man3/HTTP::Request*.3pm* | |
90 | %{_mandir}/man3/HTTP::Response.3pm* | |
91 | %{_mandir}/man3/HTTP::Status.3pm* |