107 lines
3.8 KiB
RPMSpec
107 lines
3.8 KiB
RPMSpec
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
Name: perl-Template-Toolkit
|
|
Version: 3.101
|
|
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: https://www.cpan.org
|
|
Source: https://cpan.metacpan.org/modules/by-module/Template/Template-Toolkit-%{version}.tar.gz
|
|
License: GPL
|
|
Requires: perl >= %perl_major_ver
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libperl
|
|
BuildRequires: perl-AppConfig
|
|
BuildRequires: perl-Pod-POM
|
|
BuildRequires: perl-devel
|
|
## AUTOBUILDREQ-END
|
|
|
|
%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
|
|
* Tue Aug 16 2022 Automatic Build System <autodist@mambasoft.it> 3.101-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Apr 27 2022 Automatic Build System <autodist@mambasoft.it> 3.100-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Dec 14 2021 Automatic Build System <autodist@mambasoft.it> 3.010-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Feb 24 2021 Automatic Build System <autodist@mambasoft.it> 3.009-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Oct 28 2017 Automatic Build System <autodist@mambasoft.it> 2.27-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Wed Nov 09 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.26-2mamba
|
|
- rebuilt with perl 5.24
|
|
|
|
* Sun Oct 05 2014 Automatic Build System <autodist@mambasoft.it> 2.26-1mamba
|
|
- automatic update by autodist
|
|
|
|
* 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 |