]>
Commit | Line | Data |
---|---|---|
28756381 | 1 | # |
2 | # Conditional build: | |
24c080e2 | 3 | %bcond_without tests # do not perform "make test" |
a282c7fb | 4 | |
16214377 | 5 | %define pdir POE |
6 | %define pnam Component-Server-HTTP | |
86e3e1fd | 7 | Summary: POE::Component::Server::HTTP - foundation of a POE HTTP Daemon |
6bde3ebf | 8 | Summary(pl.UTF-8): POE::Component::Server::HTTP - podstawa demona HTTP dla POE |
28756381 | 9 | Name: perl-POE-Component-Server-HTTP |
3a1b936f | 10 | Version: 0.09 |
cd23a65d | 11 | Release: 1 |
e0f8af93 | 12 | # same as [perl-]POE (same as perl) |
13 | License: GPL v1+ or Artistic | |
28756381 | 14 | Group: Development/Languages/Perl |
15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
3a1b936f | 16 | # Source0-md5: d20963ebc65bebea4c863813861b9985 |
a282c7fb | 17 | URL: http://search.cpan.org/dist/POE-Component-Server-HTTP/ |
f15e29e2 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
28756381 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
24c080e2 | 20 | %if %{with tests} |
04f12806 | 21 | BuildRequires: perl-POE >= 1:0.3007 |
703f8218 | 22 | BuildRequires: perl-POE-API-Peek |
28756381 | 23 | BuildRequires: perl-libwww |
24 | %endif | |
25 | BuildArch: noarch | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | POE::Component::Server::HTTP (PoCo::HTTPD) is a framework for building | |
e947bb17 JB |
30 | custom HTTP servers based on POE. It is loosely modeled on the ideas |
31 | of apache and the mod_perl/Apache module. | |
28756381 | 32 | |
5410a1a1 | 33 | %description -l pl.UTF-8 |
e947bb17 | 34 | POE::Component::Server::HTTP (PoCo::HTTPD) to szkielet do tworzenia |
5410a1a1 JR |
35 | własnych serwerów HTTP opartych na POE. Jest swobodnie ukształtowany |
36 | na ideach Apache'a i modułu mod_perl. | |
28756381 | 37 | |
38 | %prep | |
39 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
40 | ||
41 | %build | |
42 | %{__perl} Makefile.PL \ | |
43 | INSTALLDIRS=vendor | |
44 | %{__make} | |
45 | ||
24c080e2 | 46 | %{?with_tests:%{__make} test} |
28756381 | 47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %{__make} install \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc Changes README | |
60 | %{perl_vendorlib}/%{pdir}/*/*/* | |
61 | %{_mandir}/man3/* |