%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: python-cheetah Version: 2.0.1 Release: 1%{?dist} Summary: Template engine and code-generator Group: Development/Libraries License: MIT URL: http://cheetahtemplate.org/ Source: http://download.sourceforge.net/cheetahtemplate/Cheetah-%{version}.tar.gz BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: python-devel BuildRequires: python-setuptools-devel %description Cheetah is an open source template engine and code generation tool, written in Python. It can be used standalone or combined with other tools and frameworks. Web development is its principle use, but Cheetah is very flexible and is also being used to generate C++ game code, Java, sql, form emails and even Python code. %prep %setup -q -n Cheetah-%{version} %build export CHEETAH_USE_SETUPTOOLS=1 %{__python} setup.py build %install rm -rf %{buildroot} export CHEETAH_USE_SETUPTOOLS=1 %{__python} setup.py install -O1 --skip-build --root %{buildroot} %check export PATH="%{buildroot}/%{_bindir}:$PATH" export PYTHONPATH="%{buildroot}/%{python_sitearch}" %{__python} %{buildroot}/%{python_sitearch}/Cheetah/Tests/Test.py %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc CHANGES LICENSE README TODO %{_bindir}/cheetah %{_bindir}/cheetah-compile %dir %{python_sitearch}/Cheetah %{python_sitearch}/Cheetah/*.py %{python_sitearch}/Cheetah/*.pyc %{python_sitearch}/Cheetah/_namemapper.so %{python_sitearch}/Cheetah/*.pyo %dir %{python_sitearch}/Cheetah/Macros %{python_sitearch}/Cheetah/Macros/*.py %{python_sitearch}/Cheetah/Macros/*.pyc %{python_sitearch}/Cheetah/Macros/*.pyo %dir %{python_sitearch}/Cheetah/Templates %{python_sitearch}/Cheetah/Templates/*.py %{python_sitearch}/Cheetah/Templates/*.pyc %{python_sitearch}/Cheetah/Templates/*.tmpl %{python_sitearch}/Cheetah/Templates/*.pyo %dir %{python_sitearch}/Cheetah/Tests %{python_sitearch}/Cheetah/Tests/*.py %{python_sitearch}/Cheetah/Tests/*.pyc %{python_sitearch}/Cheetah/Tests/*.pyo %dir %{python_sitearch}/Cheetah/Tools %{python_sitearch}/Cheetah/Tools/*.py %{python_sitearch}/Cheetah/Tools/*.pyc %{python_sitearch}/Cheetah/Tools/*.txt %{python_sitearch}/Cheetah/Tools/*.pyo %dir %{python_sitearch}/Cheetah/Utils %{python_sitearch}/Cheetah/Utils/*.py %{python_sitearch}/Cheetah/Utils/*.pyc %{python_sitearch}/Cheetah/Utils/*.pyo %dir %{python_sitearch}/Cheetah/Utils/optik %{python_sitearch}/Cheetah/Utils/optik/*.py %{python_sitearch}/Cheetah/Utils/optik/*.pyc %{python_sitearch}/Cheetah/Utils/optik/*.pyo %dir %{python_sitearch}/Cheetah-%{version}-*.egg-info %{python_sitearch}/Cheetah-%{version}-*.egg-info/PKG-INFO %{python_sitearch}/Cheetah-%{version}-*.egg-info/*.txt %changelog * Tue Jan 22 2008 Mike Bonnet - 2.0.1-1 - update to the 2.0.1 release * Mon Oct 15 2007 Mike Bonnet - 2.0-1 - update to the 2.0 release * Tue Aug 21 2007 Mike Bonnet - 2.0-0.7.rc8 - rebuild for F8 * Thu May 3 2007 Mike Bonnet - 2.0-0.6.rc8 - bump release for rebuild * Mon Apr 23 2007 Mike Bonnet - 2.0-0.5.rc8 - update to 2.0rc8 * Mon Jan 8 2007 Mike Bonnet - 2.0-0.4.rc7 - use setuptools and install setuptools metadata * Sun Dec 10 2006 Mike Bonnet - 2.0-0.3.rc7 - rebuild against python 2.5 - remove obsolete python-abi Requires: * Mon Sep 11 2006 Mike Bonnet - 2.0-0.2.rc7 - un-%%ghost .pyo files * Thu Jul 13 2006 Mike Bonnet - 2.0-0.1.rc7 - update to 2.0rc7 - change %%release format to conform to Extras packaging guidelines * Sun May 21 2006 Mike Bonnet - 2.0-0.rc6.0 - update to 2.0rc6 - run the included test suite after install * Thu Feb 16 2006 Mike Bonnet - 1.0-2 - Rebuild for Fedora Extras 5 * Wed Dec 7 2005 Mike Bonnet - 1.0-1 - Initial version