From ba7af55735d4523687f97e530fce6bb354ffa109 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Wed, 6 Jul 2011 07:49:16 +0000 Subject: [PATCH] - initial Changed files: perl-HTML-Mason-PSGIHandler.spec -> 1.1 --- perl-HTML-Mason-PSGIHandler.spec | 55 ++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 perl-HTML-Mason-PSGIHandler.spec diff --git a/perl-HTML-Mason-PSGIHandler.spec b/perl-HTML-Mason-PSGIHandler.spec new file mode 100644 index 0000000..5b6a54f --- /dev/null +++ b/perl-HTML-Mason-PSGIHandler.spec @@ -0,0 +1,55 @@ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%include /usr/lib/rpm/macros.perl +%define pdir HTML +%define pnam Mason-PSGIHandler +Summary: HTML::Mason::PSGIHandler - PSGI handler for HTML::Mason +Name: perl-HTML-Mason-PSGIHandler +Version: 0.52 +Release: 1 +# same as perl +License: GPL v1+ or Artistic +Group: Development/Languages/Perl +URL: http://search.cpan.org/dist/HTML-Mason-PSGIHandler/ +Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: 42aa3272e16af0d6f35ac031d274dad8 +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +%if %{with tests} +BuildRequires: perl-HTML-Mason >= 1.12 +%endif +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +HTML::Mason::PSGIHandler is a PSGI handler for HTML::Mason. It's based +on HTML::Mason::CGIHandler and allows you to process Mason templates +on any web servers that support PSGI. + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +%{__perl} Makefile.PL \ +INSTALLDIRS=vendor +%{__make} + +%{?with_tests:%{__make} test} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ +DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%{perl_vendorlib}/HTML/Mason/PSGIHandler.pm +%dir %{perl_vendorlib}/HTML/Mason/PSGIHandler +%{perl_vendorlib}/HTML/Mason/PSGIHandler/Streamy.pm +%{_mandir}/man3/* -- 2.44.0