]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without tests # unit tests | |
4 | # | |
5 | %define pdir HTTP | |
6 | %define pnam Message | |
7 | Summary: HTTP::Message - HTTP style message | |
8 | Summary(pl.UTF-8): HTTP::Message - komunikacja w stylu HTTP | |
9 | Name: perl-HTTP-Message | |
10 | Version: 6.29 | |
11 | Release: 1 | |
12 | # same as perl | |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: https://www.cpan.org/modules/by-module/HTTP/%{pdir}-%{pnam}-%{version}.tar.gz | |
16 | # Source0-md5: 058f0598ee52a816ccb1d9dceb798520 | |
17 | URL: https://metacpan.org/release/HTTP-Message | |
18 | BuildRequires: perl-devel >= 1:5.8.8 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | BuildRequires: rpmbuild(macros) >= 1.745 | |
21 | %if %{with tests} | |
22 | BuildRequires: perl(Exporter) >= 5.57 | |
23 | BuildRequires: perl-Encode >= 3.01 | |
24 | BuildRequires: perl-Encode-Locale >= 1 | |
25 | BuildRequires: perl-HTML-Parser >= 3.33 | |
26 | BuildRequires: perl-HTTP-Date >= 6 | |
27 | BuildRequires: perl-IO-Compress >= 2.021 | |
28 | BuildRequires: perl-IO-HTML | |
29 | BuildRequires: perl-LWP-MediaTypes >= 6 | |
30 | BuildRequires: perl-MIME-Base64 >= 2.1 | |
31 | BuildRequires: perl-Test-Simple >= 0.88 | |
32 | BuildRequires: perl-Try-Tiny | |
33 | BuildRequires: perl-URI >= 1.10 | |
34 | %endif | |
35 | Requires: perl-Encode >= 3.01 | |
36 | Requires: perl-Encode-Locale >= 1 | |
37 | Requires: perl-HTTP-Date >= 6 | |
38 | Requires: perl-IO-HTML | |
39 | Requires: perl-MIME-Base64 >= 2.1 | |
40 | Requires: perl-URI >= 1.10 | |
41 | Requires: perl-LWP-MediaTypes >= 6 | |
42 | Conflicts: perl-libwww < 6 | |
43 | BuildArch: noarch | |
44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
45 | ||
46 | %description | |
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. | |
51 | ||
52 | %description -l pl.UTF-8 | |
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). | |
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) | |
79 | %doc CONTRIBUTORS Changes | |
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* |