Name: perl-Jemplate Version: 0.23 Release: 1%{?dist} # lib/Jemplate.pm -> GPL+ or Artistic # lib/Jemplate/Directive.pm -> GPL+ or Artistic # lib/Jemplate/Parser.pm -> GPL+ or Artistic # lib/Jemplate/Runtime.pm -> GPL+ or Artistic # lib/Jemplate/Runtime/Compact.pm -> GPL+ or Artistic License: GPL+ or Artistic Group: Development/Libraries Summary: JavaScript Templating with Template Toolkit Source: http://search.cpan.org/CPAN/authors/id/R/RK/RKRIMEN/Jemplate-%{version}.tar.gz Url: http://search.cpan.org/dist/Jemplate 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) >= 6.42 BuildRequires: perl(File::Find::Rule) >= 0.30 BuildRequires: perl(Template) >= 2.19 # tests BuildRequires: perl(Test::Base) BuildRequires: perl(Test::Base::Filter) BuildRequires: perl(Getopt::Long) BuildRequires: perl(HTTP::Daemon) BuildRequires: perl(HTTP::Status) BuildRequires: perl(HTTP::Response) BuildRequires: perl(IO::All) BuildRequires: perl(LWP::MediaTypes) BuildRequires: perl(Path::Class) BuildRequires: perl(JSON) %description Jemplate is a templating framework for JavaScript that is built over Perl's Template Toolkit (TT2). Jemplate parses TT2 templates using the TT2 Perl framework, but with a twist. Instead of compiling the templates into Perl code, it compiles them into JavaScript. Jemplate then provides a JavaScript runtime module for processing the template code. Presto, we have full featured JavaScript templating language! %prep %setup -q -n Jemplate-%{version} cat doc/text/Jemplate.text | iconv -f iso-8859-1 -t utf-8 > foo cat foo > doc/text/Jemplate.text rm foo %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 LICENSE README doc/ examples/ %{perl_vendorlib}/* %{_mandir}/man3/*.3* %{_bindir}/jemplate %{_mandir}/man1/jemplate.1.gz %changelog * Tue Mar 24 2009 Chris Weyl 0.23-1 - touch-up * Tue Mar 24 2009 Chris Weyl 0.23-0 - initial RPM packaging - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)