]>
Commit | Line | Data |
---|---|---|
bda7850b JB |
1 | # |
2 | # Conditional build: | |
6b5471c4 | 3 | %bcond_without tests # unit tests |
bda7850b JB |
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 | |
2fb0d1cd | 10 | Version: 6.44 |
e79a222d | 11 | Release: 1 |
bda7850b JB |
12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
c2bc818a | 15 | Source0: https://www.cpan.org/modules/by-module/HTTP/%{pdir}-%{pnam}-%{version}.tar.gz |
2fb0d1cd | 16 | # Source0-md5: 926a077669a7828c5ca39b5cf7735625 |
6b5471c4 | 17 | URL: https://metacpan.org/release/HTTP-Message |
bda7850b JB |
18 | BuildRequires: perl-devel >= 1:5.8.8 |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
6b5471c4 | 20 | BuildRequires: rpmbuild(macros) >= 1.745 |
bda7850b | 21 | %if %{with tests} |
6b5471c4 | 22 | BuildRequires: perl(Exporter) >= 5.57 |
ce247d1b JB |
23 | BuildRequires: perl-Clone >= 0.46 |
24 | BuildRequires: perl-Compress-Raw-Zlib >= 2.062 | |
dab682e6 | 25 | BuildRequires: perl-Encode >= 3.01 |
bda7850b | 26 | BuildRequires: perl-Encode-Locale >= 1 |
bda7850b | 27 | BuildRequires: perl-HTTP-Date >= 6 |
0a5990d8 | 28 | BuildRequires: perl-IO-Compress >= 2.021 |
a8d575f6 | 29 | BuildRequires: perl-IO-HTML |
6b5471c4 JB |
30 | BuildRequires: perl-LWP-MediaTypes >= 6 |
31 | BuildRequires: perl-MIME-Base64 >= 2.1 | |
e79a222d JB |
32 | BuildRequires: perl-Test-Simple >= 0.88 |
33 | BuildRequires: perl-Try-Tiny | |
bda7850b | 34 | BuildRequires: perl-URI >= 1.10 |
bda7850b | 35 | %endif |
0360737d | 36 | Requires: perl-Clone >= 0.46 |
dab682e6 | 37 | Requires: perl-Encode >= 3.01 |
f63c14d8 JB |
38 | Requires: perl-Encode-Locale >= 1 |
39 | Requires: perl-HTTP-Date >= 6 | |
5fcd7488 | 40 | Requires: perl-IO-HTML |
0a5990d8 | 41 | Requires: perl-MIME-Base64 >= 2.1 |
f63c14d8 JB |
42 | Requires: perl-URI >= 1.10 |
43 | Requires: perl-LWP-MediaTypes >= 6 | |
bda7850b JB |
44 | Conflicts: perl-libwww < 6 |
45 | BuildArch: noarch | |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
47 | ||
48 | %description | |
f63c14d8 JB |
49 | The HTTP-Message distribution contains classes useful for representing |
50 | the messages passed in HTTP style communication. These are classes | |
51 | representing requests (HTTP::Request), responses (HTTP::Response) and | |
52 | the headers (HTTP::Headers) contained within them. | |
bda7850b JB |
53 | |
54 | %description -l pl.UTF-8 | |
f63c14d8 JB |
55 | Pakiet HTML-Message zawiera klasy do reprezentacji komunikatów |
56 | przekazywanych w komunikacji w stylu HTTP. Zawiera klasy | |
57 | reprezentujące żądania (HTTP::Request), odpowiedzi (HTTP::Response) i | |
58 | nagłówki (HTTP::Headers). | |
bda7850b JB |
59 | |
60 | %prep | |
61 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
62 | ||
63 | %build | |
64 | %{__perl} Makefile.PL \ | |
65 | INSTALLDIRS=vendor | |
66 | %{__make} | |
67 | ||
68 | %{?with_tests:%{__make} test} | |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %{__make} pure_install \ | |
74 | DESTDIR=$RPM_BUILD_ROOT | |
75 | ||
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %files | |
80 | %defattr(644,root,root,755) | |
6b5471c4 | 81 | %doc CONTRIBUTORS Changes |
bda7850b JB |
82 | %{perl_vendorlib}/HTTP/Config.pm |
83 | %{perl_vendorlib}/HTTP/Headers.pm | |
84 | %{perl_vendorlib}/HTTP/Headers | |
85 | %{perl_vendorlib}/HTTP/Message.pm | |
86 | %{perl_vendorlib}/HTTP/Request.pm | |
87 | %{perl_vendorlib}/HTTP/Request | |
88 | %{perl_vendorlib}/HTTP/Response.pm | |
89 | %{perl_vendorlib}/HTTP/Status.pm | |
90 | %{_mandir}/man3/HTTP::Config.3pm* | |
91 | %{_mandir}/man3/HTTP::Headers*.3pm* | |
92 | %{_mandir}/man3/HTTP::Message.3pm* | |
93 | %{_mandir}/man3/HTTP::Request*.3pm* | |
94 | %{_mandir}/man3/HTTP::Response.3pm* | |
95 | %{_mandir}/man3/HTTP::Status.3pm* |