3 # _without_tests - do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam Component-Server-HTTP
8 Summary: POE::Component::Server::HTTP - Foundation of a POE HTTP Daemon
10 Name: perl-POE-Component-Server-HTTP
13 License: Released under the same terms as POE
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 BuildRequires: perl-devel >= 5.6
17 BuildRequires: rpm-perlprov >= 4.1-13
18 %if %{!?_without_tests:1}0
19 BuildRequires: perl-POE
20 BuildRequires: perl-libwww
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 POE::Component::Server::HTTP (PoCo::HTTPD) is a framework for building
27 custom HTTP servers based on POE. It is loosely modeled on the ideas of
28 apache and the mod_perl/Apache module.
34 %setup -q -n %{pdir}-%{pnam}-%{version}
37 %{__perl} Makefile.PL \
41 %{!?_without_tests:%{__make} test}
44 rm -rf $RPM_BUILD_ROOT
47 DESTDIR=$RPM_BUILD_ROOT
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
55 %{perl_vendorlib}/%{pdir}/*/*/*