File python-Cheetah.spec of Package python-Cheetah
#norootforbuild
#
%define real_name Cheetah
#
#
Name: python-%{real_name}
Group: Development/Libraries/Python
Version: 2.4.2.1
Release: 0
License: MIT
Summary: Cheetah is a template engine and code generation tool
Autoreqprov: on
Source: %{real_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-setuptools python-devel
Url: http://www.cheetahtemplate.org/
%{py_requires}
#%define py_vers %(%{__python} -c 'import sys; print int(10*float(sys.version[:3]))')
#%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
#BuildArch: noarch
#%else
#%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
#%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)")}
#%endif
%description
Cheetah is an open source template engine and code generation tool.
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 -n %{real_name}-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc LICENSE CHANGES README.markdown
%changelog
* Tue Jul 21 2010 - Gregor Dschung <dschung@cs.uni-kl.de> - 2.4.2.1
- cloned from OBS-project home:malcolmlewis:Miscellanous
- updated to python-Cheetah 2.4.2.1
* Sun Nov 22 2009 - Ciaran Farrell <cfarrell1980@gmail.com> - 2.4.0
- Initial build for tg21