]> git.pld-linux.org Git - SPECS.git/blob - perl-POE-Component-Server-HTTPServer.spec
SPECS updated Tue 30 Apr 15:13:02 CEST 2024
[SPECS.git] / perl-POE-Component-Server-HTTPServer.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    POE
6 %define pnam    Component-Server-HTTPServer
7 Summary:        POE::Component::Server::HTTPServer - serve HTTP requests
8 Summary(pl.UTF-8):      POE::Component::Server::HTTPServer - obsługa żądań HTTP
9 Name:           perl-POE-Component-Server-HTTPServer
10 Version:        0.9.2
11 Release:        0.1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/POE/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  766c06301099868fca4bbc8bd5cb358d
17 URL:            http://search.cpan.org/dist/POE-Component-Server-HTTPServer/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl(HTTP::Message) >= 1.3
22 BuildRequires:  perl(HTTP::Status)
23 BuildRequires:  perl(URI::Escape)
24 BuildRequires:  perl-MIME-Types >= 1.06
25 BuildRequires:  perl-POE
26 BuildRequires:  perl-URI
27 BuildRequires:  perl-libwww
28 %endif
29 BuildArch:      noarch
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 POE::Component::Server::HTTPServer is a POE-based HTTP server.
34 Requests are dispatched based on an ordered list of prefix => handler
35 pairs.
36
37 %description -l pl.UTF-8
38 POE::Component::Server::HTTPServer to serwer HTTP oparty na POE.
39 Żądania są przekazywane w oparciu o uporządkowaną listę par prefix =>
40 handler.
41
42 %prep
43 %setup -q -n %{pdir}-%{pnam}-%{version}
44
45 %build
46 %{__perl} Makefile.PL \
47         INSTALLDIRS=vendor
48 %{__make}
49
50 %{?with_tests:%{__make} test}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 %{__make} install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc Changes README TODO
64 %{perl_vendorlib}/POE/Component/Server/*.pm
65 %{perl_vendorlib}/POE/Component/Server/HTTPServer
66 %{_mandir}/man3/*
This page took 0.284119 seconds and 3 git commands to generate.