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