3 %bcond_without tests # do not perform "make test"
6 %include /usr/lib/rpm/macros.perl
7 Summary: Plack - Perl Superglue for Web frameworks and Web Servers (PSGI toolkit)
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Plack/%{pdir}-%{version}.tar.gz
16 # Source0-md5: 519364cae9df1f2845fd803d75dc8b3c
17 URL: http://search.cpan.org/dist/Plack/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl(Devel::StackTrace::AsHTML) >= 0.11
22 BuildRequires: perl(Filesys::Notify::Simple)
23 BuildRequires: perl(HTTP::Body) >= 1.06
24 BuildRequires: perl(Hash::MultiValue) >= 0.05
25 BuildRequires: perl(Test::Requires)
26 BuildRequires: perl(Test::TCP) >= 0.11
27 BuildRequires: perl-Apache-LogFormat-Compiler
28 BuildRequires: perl-Devel-StackTrace >= 1.23
29 BuildRequires: perl-File-ShareDir >= 1.00
30 BuildRequires: perl-File-ShareDir-Install
31 BuildRequires: perl-HTTP-Request-AsCGI
32 BuildRequires: perl-Stream-Buffered
33 BuildRequires: perl-Try-Tiny
34 BuildRequires: perl-URI >= 1.36
35 BuildRequires: perl-libwww >= 5.814
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 %define _noautoreq_perl 'Apache::Constants' 'Apache::Request'
43 Plack is a set of tools for using the PSGI stack. It contains
44 middleware components, a reference server and utilities for Web
45 application frameworks. Plack is like Ruby's Rack or Python's Paste
48 See PSGI for the PSGI specification and PSGI::FAQ to know what PSGI
49 and Plack are and why we need them.
53 # %description -l pl.UTF-8 # TODO
56 %setup -q -n %{pdir}-%{version}
59 %{__perl} Makefile.PL \
63 %{?with_tests:%{__make} test}
66 rm -rf $RPM_BUILD_ROOT
68 %{__make} pure_install \
69 DESTDIR=$RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
72 cp -a eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
75 rm -rf $RPM_BUILD_ROOT
78 %defattr(644,root,root,755)
80 %{perl_vendorlib}/*.pm
81 %{perl_vendorlib}/Plack/
84 %{_examplesdir}/%{name}-%{version}
85 %attr(755,root,root) %{_bindir}/plackup
86 %{perl_vendorlib}/HTTP/Message/PSGI.pm
87 %{perl_vendorlib}/HTTP/Server/PSGI.pm
88 %{perl_vendorlib}/auto/share/dist/Plack