File python-Jinja2.spec of Package python-Jinja2

#norootforbuild
#
%define real_name Jinja2
#
#
Name:           python-%{real_name}
Group:          Development/Libraries/Python
Version:        2.2.1
Release:        0
License:        BSD3c
Summary:        A small but fast and easy to use stand-alone template engine written in pure python
Autoreqprov:    on
Source:         %{real_name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-setuptools
BuildRequires:  python-Babel >= 0.8
BuildRequires:  python-devel
Requires:       python-Babel >= 0.8
Url:            http://jinja.pocoo.org/
%{py_requires}

# C optimizers mean we can't build noarch
#%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
Jinja2 is a template engine written in pure Python. It provides a Django inspired non-XML syntax but supports inline expressions and an optional sandboxed environment.

%prep
%setup -n %{real_name}-%{version}

%build
python setup.py build

%install
python setup.py --with-speedups 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 AUTHORS CHANGES docs examples LICENSE PKG-INFO TODO

%changelog

* Tue Nov 24 2009 - Ciaran Farrell <cfarrell1980@gmail.com> - 2.2.1
- Initial build for tg21

openSUSE Build Service is sponsored by