3 %bcond_without tests # do not perform "make test"
6 Summary: Plack - Perl Superglue for Web frameworks and Web Servers (PSGI toolkit)
11 License: GPL v1+ or Artistic
12 Group: Development/Languages/Perl
13 Source0: http://www.cpan.org/modules/by-module/Plack/%{pdir}-%{version}.tar.gz
14 # Source0-md5: 0856a900a981769e3d79f0a10ccc3e65
15 URL: http://search.cpan.org/dist/Plack/
16 BuildRequires: perl-devel >= 1:5.8.0
17 BuildRequires: rpm-perlprov >= 4.1-13
18 BuildRequires: perl-File-ShareDir-Install
20 BuildRequires: perl(Devel::StackTrace::AsHTML) >= 0.11
21 BuildRequires: perl(Filesys::Notify::Simple)
22 BuildRequires: perl(HTTP::Body) >= 1.06
23 BuildRequires: perl(Hash::MultiValue) >= 0.05
24 BuildRequires: perl(Test::Requires)
25 BuildRequires: perl(Test::TCP) >= 0.11
26 BuildRequires: perl-Apache-LogFormat-Compiler
27 BuildRequires: perl-Devel-StackTrace >= 1.23
28 BuildRequires: perl-File-ShareDir >= 1.00
29 BuildRequires: perl-HTTP-Entity-Parser
30 BuildRequires: perl-HTTP-Request-AsCGI
31 BuildRequires: perl-Stream-Buffered
32 BuildRequires: perl-Try-Tiny
33 BuildRequires: perl-URI >= 1.36
34 BuildRequires: perl-libwww >= 5.814
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 %define _noautoreq_perl 'Apache::Constants' 'Apache::Request'
42 Plack is a set of tools for using the PSGI stack. It contains
43 middleware components, a reference server and utilities for Web
44 application frameworks. Plack is like Ruby's Rack or Python's Paste
47 See PSGI for the PSGI specification and PSGI::FAQ to know what PSGI
48 and Plack are and why we need them.
51 %setup -q -n %{pdir}-%{version}
54 %{__perl} Makefile.PL \
58 %{?with_tests:%{__make} test}
61 rm -rf $RPM_BUILD_ROOT
63 %{__make} pure_install \
64 DESTDIR=$RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
67 cp -a eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
70 rm -rf $RPM_BUILD_ROOT
73 %defattr(644,root,root,755)
75 %{perl_vendorlib}/*.pm
76 %{perl_vendorlib}/Plack/
79 %{_examplesdir}/%{name}-%{version}
80 %attr(755,root,root) %{_bindir}/plackup
81 %{perl_vendorlib}/HTTP/Message/PSGI.pm
82 %{perl_vendorlib}/HTTP/Server/PSGI.pm
83 %{perl_vendorlib}/auto/share/dist/Plack