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