|
|
306f51e |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(plat_specific=True)")}
|
|
|
306f51e |
|
|
|
306f51e |
Name: python-cheetah
|
|
|
7004dab |
Version: 2.0
|
|
|
715349a |
Release: 0.6.rc8%{?dist}
|
|
|
306f51e |
Summary: Template engine and code-generator
|
|
|
306f51e |
|
|
|
306f51e |
Group: Development/Libraries
|
|
|
306f51e |
License: MIT
|
|
|
a25e296 |
URL: http://cheetahtemplate.org/
|
|
|
0f37c59 |
Source: http://download.sourceforge.net/cheetahtemplate/Cheetah-%{version}rc8.tar.gz
|
|
|
306f51e |
|
|
|
306f51e |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
306f51e |
|
|
|
306f51e |
BuildRequires: python-devel
|
|
|
c32fd2d |
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
|
|
|
0f37c59 |
%setup -q -n Cheetah-%{version}rc8
|
|
|
306f51e |
|
|
|
306f51e |
%build
|
|
|
7004dab |
export CFLAGS="$RPM_OPT_FLAGS"
|
|
|
c32fd2d |
export CHEETAH_USE_SETUPTOOLS=1
|
|
|
7004dab |
%{__python} setup.py build
|
|
|
306f51e |
|
|
|
306f51e |
%install
|
|
|
7004dab |
rm -rf %{buildroot}
|
|
|
c32fd2d |
export CHEETAH_USE_SETUPTOOLS=1
|
|
|
c32fd2d |
%{__python} setup.py install --single-version-externally-managed -O1 --skip-build --root %{buildroot}
|
|
|
7004dab |
|
|
|
7004dab |
%check
|
|
|
7004dab |
export PATH="%{buildroot}/%{_bindir}:$PATH"
|
|
|
7004dab |
export PYTHONPATH="%{buildroot}/%{python_sitelib}"
|
|
|
7004dab |
%{__python} %{buildroot}/%{python_sitelib}/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 |
|
|
|
306f51e |
%dir %{python_sitelib}/Cheetah
|
|
|
306f51e |
%{python_sitelib}/Cheetah/*.py
|
|
|
306f51e |
%{python_sitelib}/Cheetah/*.pyc
|
|
|
306f51e |
%{python_sitelib}/Cheetah/_namemapper.so
|
|
|
48cd007 |
%{python_sitelib}/Cheetah/*.pyo
|
|
|
306f51e |
|
|
|
7004dab |
%dir %{python_sitelib}/Cheetah/Macros
|
|
|
7004dab |
%{python_sitelib}/Cheetah/Macros/*.py
|
|
|
7004dab |
%{python_sitelib}/Cheetah/Macros/*.pyc
|
|
|
48cd007 |
%{python_sitelib}/Cheetah/Macros/*.pyo
|
|
|
7004dab |
|
|
|
306f51e |
%dir %{python_sitelib}/Cheetah/Templates
|
|
|
306f51e |
%{python_sitelib}/Cheetah/Templates/*.py
|
|
|
306f51e |
%{python_sitelib}/Cheetah/Templates/*.pyc
|
|
|
306f51e |
%{python_sitelib}/Cheetah/Templates/*.tmpl
|
|
|
48cd007 |
%{python_sitelib}/Cheetah/Templates/*.pyo
|
|
|
306f51e |
|
|
|
306f51e |
%dir %{python_sitelib}/Cheetah/Tests
|
|
|
306f51e |
%{python_sitelib}/Cheetah/Tests/*.py
|
|
|
306f51e |
%{python_sitelib}/Cheetah/Tests/*.pyc
|
|
|
48cd007 |
%{python_sitelib}/Cheetah/Tests/*.pyo
|
|
|
306f51e |
|
|
|
306f51e |
%dir %{python_sitelib}/Cheetah/Tools
|
|
|
306f51e |
%{python_sitelib}/Cheetah/Tools/*.py
|
|
|
306f51e |
%{python_sitelib}/Cheetah/Tools/*.pyc
|
|
|
306f51e |
%{python_sitelib}/Cheetah/Tools/*.txt
|
|
|
48cd007 |
%{python_sitelib}/Cheetah/Tools/*.pyo
|
|
|
306f51e |
|
|
|
306f51e |
%dir %{python_sitelib}/Cheetah/Utils
|
|
|
306f51e |
%{python_sitelib}/Cheetah/Utils/*.py
|
|
|
306f51e |
%{python_sitelib}/Cheetah/Utils/*.pyc
|
|
|
48cd007 |
%{python_sitelib}/Cheetah/Utils/*.pyo
|
|
|
306f51e |
|
|
|
306f51e |
%dir %{python_sitelib}/Cheetah/Utils/optik
|
|
|
306f51e |
%{python_sitelib}/Cheetah/Utils/optik/*.py
|
|
|
306f51e |
%{python_sitelib}/Cheetah/Utils/optik/*.pyc
|
|
|
48cd007 |
%{python_sitelib}/Cheetah/Utils/optik/*.pyo
|
|
|
306f51e |
|
|
|
0f37c59 |
%dir %{python_sitelib}/Cheetah-%{version}rc8-*.egg-info
|
|
|
0f37c59 |
%{python_sitelib}/Cheetah-%{version}rc8-*.egg-info/PKG-INFO
|
|
|
0f37c59 |
%{python_sitelib}/Cheetah-%{version}rc8-*.egg-info/*.txt
|
|
|
c32fd2d |
|
|
|
306f51e |
%changelog
|
|
|
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
|