%if 0%{?rhel} && 0%{?rhel} <= 6 %{!?__python2: %global __python2 /usr/bin/python2} %{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %endif %global modname pyramid_mako Name: python-pyramid-mako Version: 1.0a2 Release: 1%{?dist} Summary: Mako template bindings for the Pyramid web framework Group: Development/Libraries License: BSD URL: http://pypi.python.org/pypi/pyramid_mako Source0: http://pypi.python.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python-pyramid BuildRequires: python-mako ## For the test suite #BuildRequires: python-webtest #BuildRequires: python-nose #BuildRequires: python-coverage #BuildRequires: python-virtualenv Requires: python-pyramid Requires: python-mako %description These are bindings for the Mako templating system for the Pyramid web framework. %prep %setup -q -n %{modname}-%{version} # Remove bundled egg-info in case it exists rm -rf %{modname}.egg-info # Remove lingering .gitignore file. rm docs/.gitignore %build %{__python2} setup.py build %install %{__python2} setup.py install -O1 --skip-build --root=%{buildroot} ## Tests don't currently pass with the 1.0a2 tarball ## https://github.com/Pylons/pyramid_mako/issues/21 #%%check #%%{__python2} setup.py test %files %doc README.rst LICENSE.txt COPYRIGHT.txt CONTRIBUTORS.txt CHANGES.txt docs/ %{python2_sitelib}/%{modname}/ %{python2_sitelib}/%{modname}-%{version}* %changelog * Wed Mar 19 2014 Ralph Bean - 1.0a2-1 - Initial packaging for Fedora