diff --git a/.cvsignore b/.cvsignore index e69de29..d1a3103 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Template-Plugin-JavaScript-0.01.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..9177ca6 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +perl-Template-Plugin-JavaScript-0_01-1_fc10:HEAD:perl-Template-Plugin-JavaScript-0.01-1.fc10.src.rpm:1234196817 diff --git a/perl-Template-Plugin-JavaScript.spec b/perl-Template-Plugin-JavaScript.spec new file mode 100644 index 0000000..e4d96d8 --- /dev/null +++ b/perl-Template-Plugin-JavaScript.spec @@ -0,0 +1,64 @@ +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) + diff --git a/sources b/sources index e69de29..c5c44c9 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c8e648779bfda5b0bdd68eef9729d06c Template-Plugin-JavaScript-0.01.tar.gz