d2c775c
%{!?python_sitearch: %global python_sitearch %([ -x %{__python} ] && %{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)" || :)}
306f51e
306f51e
Name:           python-cheetah
01772c5
Version:        2.2.1
d2c775c
Release:        1%{?dist}
306f51e
Summary:        Template engine and code-generator
306f51e
306f51e
Group:          Development/Libraries
306f51e
License:        MIT
a25e296
URL:            http://cheetahtemplate.org/
c343d46
Source:         http://download.sourceforge.net/cheetahtemplate/Cheetah-%{version}.tar.gz
306f51e
89c0344
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
306f51e
d2c775c
BuildRequires: python
d2c775c
BuildRequires: python-devel
d2c775c
BuildRequires: python-setuptools
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
c343d46
%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
d2c775c
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
7004dab
7004dab
%check
7004dab
export PATH="%{buildroot}/%{_bindir}:$PATH"
c343d46
export PYTHONPATH="%{buildroot}/%{python_sitearch}"
c343d46
%{__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
c343d46
%dir %{python_sitearch}/Cheetah
d2c775c
%{python_sitearch}/Cheetah/*.py*
c343d46
%{python_sitearch}/Cheetah/_namemapper.so
c343d46
c343d46
%dir %{python_sitearch}/Cheetah/Macros
d2c775c
%{python_sitearch}/Cheetah/Macros/*.py*
c343d46
c343d46
%dir %{python_sitearch}/Cheetah/Templates
d2c775c
%{python_sitearch}/Cheetah/Templates/*.py*
c343d46
%{python_sitearch}/Cheetah/Templates/*.tmpl
c343d46
c343d46
%dir %{python_sitearch}/Cheetah/Tests
d2c775c
%{python_sitearch}/Cheetah/Tests/*.py*
c343d46
c343d46
%dir %{python_sitearch}/Cheetah/Tools
d2c775c
%{python_sitearch}/Cheetah/Tools/*.py*
c343d46
%{python_sitearch}/Cheetah/Tools/*.txt
c343d46
c343d46
%dir %{python_sitearch}/Cheetah/Utils
d2c775c
%{python_sitearch}/Cheetah/Utils/*.py*
c343d46
d2c775c
%dir %{python_sitearch}/Cheetah/contrib
d2c775c
%{python_sitearch}/Cheetah/contrib/*.py*
d2c775c
d2c775c
%dir %{python_sitearch}/Cheetah/contrib/markdown
d2c775c
%{python_sitearch}/Cheetah/contrib/markdown/*.py*
c343d46
c343d46
%dir %{python_sitearch}/Cheetah-%{version}-*.egg-info
c343d46
%{python_sitearch}/Cheetah-%{version}-*.egg-info/PKG-INFO
c343d46
%{python_sitearch}/Cheetah-%{version}-*.egg-info/*.txt
c32fd2d
306f51e
%changelog
d131484
* Fri Jun  5 2009 Mike Bonnet <mikeb@redhat.com> - 2.2.1-1
01772c5
- update to the 2.2.1 release
01772c5
d2c775c
* Mon May 18 2009 Mike Bonnet <mikeb@redhat.com> - 2.2.0-1
d2c775c
- update to the 2.2.0 release
d2c775c
- remove unneeded importHook() patch, it has been included upstream
d2c775c
66bb2c7
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-5
66bb2c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
66bb2c7
de64953
* Mon Dec 1 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 2.0.1-4
f6a4b61
- Fix cheetah enough that it will pass its unittests on python-2.6.  This has
f6a4b61
  actually been broken since py-2.5 and this fix is only a workaround.
f6a4b61
a1a95cd
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.0.1-3
a1a95cd
- Rebuild for Python 2.6
a1a95cd
1ca71bd
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.0.1-2
1ca71bd
- Autorebuild for GCC 4.3
1ca71bd
7d4559d
* Tue Dec  4 2007 Mike Bonnet <mikeb@redhat.com> - 2.0.1-1
7d4559d
- update to the 2.0.1 release
7d4559d
c343d46
* Mon Oct 15 2007 Mike Bonnet <mikeb@redhat.com> - 2.0-1
c343d46
- update to the 2.0 release
c343d46
89c0344
* Tue Aug 21 2007 Mike Bonnet <mikeb@redhat.com> - 2.0-0.7.rc8
89c0344
- rebuild for F8
89c0344
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