File python-Tempita.spec of Package python-Tempita
#norootforbuild
#
%define real_name Tempita
#
#
Name: python-%{real_name}
Group: Development/Libraries/Python
Version: 0.4
Release: 0
License: MIT
Summary: A very small text templating language
Autoreqprov: on
Source: %{real_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-setuptools
Url: http://pythonpaste.org/tempita/
%{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
Tempita is a small templating language for text substitution.
This isn't meant to be the Next Big Thing in templating; it's just a handy little templating language for when your project outgrows string.Template or % substitution. It's small, it embeds Python in strings, and it doesn't do much else.
You can read about the language, the interface, and there's nothing more to learn about it.
%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 docs
%changelog
* Sun Nov 22 2009 - Ciaran Farrell <cfarrell1980@gmail.com> - 0.4
- Initial build for tg21