perl-Template-Toolkit/perl-Template-Toolkit.spec

87 lines
3.1 KiB
RPMSpec
Raw Normal View History

%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 <silvan.calarco@mambasoft.it>
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 <autodist@mambasoft.it> 2.25-1mamba
- automatic update by autodist
* Mon Nov 12 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.24-2mamba
- perl 5.16 mass rebuild
* Wed Aug 08 2012 Automatic Build System <autodist@mambasoft.it> 2.24-1mamba
- automatic version update by autodist
* Sun Jan 22 2012 Automatic Build System <autodist@mambasoft.it> 2.23-1mamba
- automatic version update by autodist
* Mon Jul 27 2009 Automatic Build System <autodist@mambasoft.it> 2.22-1mamba
- automatic update by autodist
* Thu Jul 09 2009 Automatic Build System <autodist@mambasoft.it> 2.21_02-1mamba
- automatic update by autodist
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.19-2mamba
- automatic rebuild by autodist
* Thu Nov 15 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 2.19-1mamba
- update to 2.19
- removed GD and XML modules that are now in separate packages
* Mon Oct 25 2004 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 2.14-1qilnx
- package created by autospec (rebuilt after SRPM loss)
* Wed Sep 03 2003 Silvan Calarco <silvan.calarco@qinet.it> 2.10-1qilnx
- First build