commit 9bbff9c121a687e50aa4a07565ba204ffa367d83 Author: Ralf Corsépius <corse...@fedoraproject.org> Date: Thu Jan 27 04:11:25 2011 +0100
Import. .gitignore | 1 + perl-HTML-Mason-PSGIHandler.spec | 58 ++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 60 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..1111fd7 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/HTML-Mason-PSGIHandler-0.52.tar.gz diff --git a/perl-HTML-Mason-PSGIHandler.spec b/perl-HTML-Mason-PSGIHandler.spec new file mode 100644 index 0000000..8d872ce --- /dev/null +++ b/perl-HTML-Mason-PSGIHandler.spec @@ -0,0 +1,58 @@ +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 <corse...@fedoraproject.org> - 0.52-1 +- Initial Fedora package. diff --git a/sources b/sources index e69de29..f395d15 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +42aa3272e16af0d6f35ac031d274dad8 HTML-Mason-PSGIHandler-0.52.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/perl-devel