%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")} Name: python-catwalk Version: 2.0.2 Release: 1%{?dist} Summary: A way to view your models using TurboGears Group: Development/Languages License: MIT URL: http://code.google.com/p/tgtools/wiki/Catwalk Source0: http://pypi.python.org/packages/source/C/Catwalk/Catwalk-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-setuptools-devel BuildRequires: python-nose python-sprox python-tgext-admin Requires: python-sprox python-tgext-admin %description Catwalk is a database manipulation application built on top of TurboGears. With it you can easily interact with your application data model and manage your data. %prep %setup -q -n Catwalk-%{version} %build %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install -O1 --skip-build --root %{buildroot} # Disabled until chameleon.genshi is packaged #%check #PYTHONPATH=$(pwd) nosetests %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc %{python_sitelib}/Catwalk* %{python_sitelib}/catwalk/ %changelog * Mon Jun 01 2009 Luke Macken - 2.0.2-1 - Initial package