Name: perl-Template-Plugin-JavaScript Version: 0.01 Release: 1%{?dist} # see lib/Template/Plugin/JavaScript.pm License: GPL+ or Artistic Group: Development/Libraries Summary: Encodes text to be safe in JavaScript Source: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Template-Plugin-JavaScript-%{version}.tar.gz Url: http://search.cpan.org/dist/Template-Plugin-JavaScript BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Template::Plugin) BuildRequires: perl(Test::More) >= 0.32 %description Template::Plugin::JavaScript is a TT filter that filters text so it can be safely used in JavaScript quotes. e.g: [% USE JavaScript %] document.write("[% FILTER js %] Here's some text going on. [% END %]"); will become: document.write("\nHere\'s some text going on.\n"); %prep %setup -q -n Template-Plugin-JavaScript-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf %{buildroot} make pure_install PERL_INSTALL_ROOT=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' %{_fixperms} %{buildroot}/* %check make test %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc Changes %{perl_vendorlib}/* %{_mandir}/man3/*.3* %changelog * Sat Feb 07 2009 Chris Weyl 0.01-1 - update for submission * Sat Feb 07 2009 Chris Weyl 0.01-0 - initial RPM packaging - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)