diff --git a/README.md b/README.md index e7d3cca..c17297b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # perl-Template-Toolkit +The Template Toolkit is a fast, powerful and easily extensible template processing system written in Perl with certain key elements coded in C for maximum speed. +It is ideally suited (but not limited) to the creation of static and dynamic web content, and incorporates various modules and tools to simplify this process. +The Toolkit is highly portable, with minimal dependencies or restrictions on how and where it can be used. +It is robust, reliable, well documented and freely available as Open Source. + diff --git a/perl-Template-Toolkit.spec b/perl-Template-Toolkit.spec new file mode 100644 index 0000000..1386e87 --- /dev/null +++ b/perl-Template-Toolkit.spec @@ -0,0 +1,87 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Template-Toolkit +Version: 2.25 +Release: 1mamba +Summary: A fast, powerful and easily extensible template processing system written in Perl +Group: Development/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.cpan.org +Source: http://www.cpan.org/authors/id/A/AB/ABW/Template-Toolkit-%{version}.tar.gz +License: GPL +Requires: perl >= %perl_major_ver +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: perl-AppConfig +BuildRequires: perl-devel +BuildRequires: perl-Pod-POM +BuildRequires: perl-Text-Autoformat +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/perl-root + +%description +The Template Toolkit is a fast, powerful and easily extensible template processing system written in Perl with certain key elements coded in C for maximum speed. +It is ideally suited (but not limited) to the creation of static and dynamic web content, and incorporates various modules and tools to simplify this process. +The Toolkit is highly portable, with minimal dependencies or restrictions on how and where it can be used. +It is robust, reliable, well documented and freely available as Open Source. + +%prep +%setup -q -n Template-Toolkit-%{version} + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor TT_ACCEPT=y +%make +%make test + +%install +[[ "%{buildroot}" ]] && rm -rf %{buildroot} +%makeinstall_perl +packlist=`find %{buildroot} -name .packlist` +[ -z "$packlist" ] && exit 1 || cat $packlist | \ + sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ + sort -u > .packlist && rm $packlist + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo "%dir ${dir#%buildroot}" >> .packlist +done + +%clean +[[ "%{buildroot}" ]] && rm -rf %{buildroot} + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* Mon Jul 29 2013 Automatic Build System 2.25-1mamba +- automatic update by autodist + +* Mon Nov 12 2012 Silvan Calarco 2.24-2mamba +- perl 5.16 mass rebuild + +* Wed Aug 08 2012 Automatic Build System 2.24-1mamba +- automatic version update by autodist + +* Sun Jan 22 2012 Automatic Build System 2.23-1mamba +- automatic version update by autodist + +* Mon Jul 27 2009 Automatic Build System 2.22-1mamba +- automatic update by autodist + +* Thu Jul 09 2009 Automatic Build System 2.21_02-1mamba +- automatic update by autodist + +* Wed Nov 05 2008 Silvan Calarco 2.19-2mamba +- automatic rebuild by autodist + +* Thu Nov 15 2007 Silvan Calarco 2.19-1mamba +- update to 2.19 +- removed GD and XML modules that are now in separate packages + +* Mon Oct 25 2004 Alessandro Ramazzina 2.14-1qilnx +- package created by autospec (rebuilt after SRPM loss) + +* Wed Sep 03 2003 Silvan Calarco 2.10-1qilnx +- First build \ No newline at end of file