Author: migo Date: Sat Aug 12 16:31:38 2006 GMT Module: SPECS Tag: HEAD ---- Log message: - initial revision
---- Files affected: SPECS: perl-Jemplate.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/perl-Jemplate.spec diff -u /dev/null SPECS/perl-Jemplate.spec:1.1 --- /dev/null Sat Aug 12 18:31:38 2006 +++ SPECS/perl-Jemplate.spec Sat Aug 12 18:31:32 2006 @@ -0,0 +1,91 @@ +# $Revision$, $Date$ +# +# TODO: +# - should probably install itself into vendorlib dir, not vendorarch +# - ajax example does not work +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%include /usr/lib/rpm/macros.perl +%define pdir Jemplate +Summary: Jemplate - Javascript Templating with Template Toolkit +#Summary(pl): +Name: perl-Jemplate +Version: 0.18 +Release: 0.1 +# same as perl +License: GPL v1+ or Artistic +Group: Development/Languages/Perl +#Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{version}.tar.gz +Source0: http://www.cpan.org/modules/by-authors/id/I/IN/INGY/%{pdir}-%{version}.tar.gz +# Source0-md5: 8a0097f7f01fef238f308356029266e6 +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +%if %{with tests} +BuildRequires: perl-Template-Toolkit >= 2.14 +%endif +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%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! + +Combined with JSON and xmlHttpRequest, Jemplate provides a really simple +and powerful way to do Ajax stuff. + +# %description -l pl +# TODO + +%prep +%setup -q -n %{pdir}-%{version} + +%build +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor +%{__make} + +%{?with_tests:%{__make} test} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} +install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/share +cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} +cp $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Jemplate/Jemplate.js \ + $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/share + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes README ToDo +%attr(755,root,root) %{_bindir}/* +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/*.pm +%{perl_vendorarch}/Jemplate/ +%{_mandir}/man3/* +%{_examplesdir}/%{name}-%{version} + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[EMAIL PROTECTED]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2006/08/12 16:31:32 migo +- initial revision + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
