]>
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.44 | |
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: 926a077669a7828c5ca39b5cf7735625 | |
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-Clone >= 0.46 | |
24 | BuildRequires: perl-Compress-Raw-Zlib >= 2.062 | |
25 | BuildRequires: perl-Encode >= 3.01 | |
26 | BuildRequires: perl-Encode-Locale >= 1 | |
27 | BuildRequires: perl-HTTP-Date >= 6 | |
28 | BuildRequires: perl-IO-Compress >= 2.021 | |
29 | BuildRequires: perl-IO-HTML | |
30 | BuildRequires: perl-LWP-MediaTypes >= 6 | |
31 | BuildRequires: perl-MIME-Base64 >= 2.1 | |
32 | BuildRequires: perl-Test-Simple >= 0.88 | |
33 | BuildRequires: perl-Try-Tiny | |
34 | BuildRequires: perl-URI >= 1.10 | |
35 | %endif | |
36 | Requires: perl-Clone >= 0.46 | |
37 | Requires: perl-Encode >= 3.01 | |
38 | Requires: perl-Encode-Locale >= 1 | |
39 | Requires: perl-HTTP-Date >= 6 | |
40 | Requires: perl-IO-HTML | |
41 | Requires: perl-MIME-Base64 >= 2.1 | |
42 | Requires: perl-URI >= 1.10 | |
43 | Requires: perl-LWP-MediaTypes >= 6 | |
44 | Conflicts: perl-libwww < 6 | |
45 | BuildArch: noarch | |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
47 | ||
48 | %description | |
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. | |
53 | ||
54 | %description -l pl.UTF-8 | |
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). | |
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) | |
81 | %doc CONTRIBUTORS Changes | |
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* |