%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: python-tw-forms Version: 0.9.2 Release: 1%{?dist} Summary: Web Widgets for building and validating forms Group: Development/Languages License: MIT URL: http://toscawidgets.org Source0: http://pypi.python.org/packages/source/t/tw.forms/tw.forms-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel python-setuptools-devel Requires: python-toscawidgets >= 0.9.3 Requires: python-formencode >= 1.0.1 %description Web Widgets for building and validating forms. (former ToscaWidgetsForms) %prep %setup -q -n tw.forms-%{version} %build python setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) #%doc %{python_sitelib}/* %changelog * Tue Oct 21 2008 Luke Macken - 0.9.2-1 - Initial package