Name: perl-HTML-Mason-PSGIHandler Version: 0.52 Release: 1%{?dist} Summary: PSGI handler for HTML::Mason License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/HTML-Mason-PSGIHandler/ Source0: http://www.cpan.org/authors/id/A/AB/ABH/HTML-Mason-PSGIHandler-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(CGI::PSGI) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(HTML::Mason) BuildRequires: perl(Plack::Test) BuildRequires: perl(Test::More) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) # Fedora < 15's rpm misses these: Requires: perl(HTML::Mason::CGIHandler) Requires: perl(HTML::Mason::Request::CGI) %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 HTML-Mason-PSGIHandler-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes LICENSE README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Wed Dec 22 2010 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.52-1 - Initial Fedora package.