commit aefdd6bb47926f1e5bad21d7c896dad4a1ec49e3 Author: Ralf Corsépius <corse...@fedoraproject.org> Date: Thu Jan 27 04:09:54 2011 +0100
Import. .gitignore | 1 + perl-HTML-Mason-PSGIHandler.spec | 54 ++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 56 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..a4a5cbf --- /dev/null +++ b/perl-HTML-Mason-PSGIHandler.spec @@ -0,0 +1,54 @@ +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)) + +%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