%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: python-sprox Version: 0.5.5 Release: 1%{?dist} Summary: A package for creation of web widgets directly from database schema Group: Development/Languages License: MIT URL: http://sprox.org Source0: http://pypi.python.org/packages/source/s/sprox/sprox-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools-devel BuildRequires: python-tw-forms python-genshi python-sqlalchemy Requires: python-sqlalchemy >= 0.5 Requires: python-tw-forms >= 0.9.2 Requires: python-genshi >= 0.5 %description Sprox is a widget generation library that has a slightly different take on the problem of creating custom web content directly from database schemas. Sprox provides an easy way to create forms for web content which are: automatically generated, easy to customize, and validated. Sprox also has powerful tools to help you display your content the way you want to with table and record viewers. Sprox provides a way to fill your widgets, whether they are forms or other content with customizable data. %prep %setup -q -n sprox-%{version} %build %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install -O1 --skip-build --root %{buildroot} rm -fr %{buildroot}%{python_sitelib}/tests # python-tw-dojo needs to be packaged first... #%check #PYTHONPATH=$(pwd) nosetests %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc %{python_sitelib}/sprox* %changelog * Mon Jun 01 2009 Luke Macken - 0.5.5-1 - Initial package