%{!?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]")} %define module tg_expanding_form_widget Name: python-tgexpandingformwidget Version: 0.1.3 Release: 4%{?dist} Summary: A repeating form widget for TurboGears Group: Development/Languages License: MIT URL: http://www.psychofx.com/TGExpandingFormWidget/ Source0: http://www.psychofx.com/TGExpandingFormWidget/download/TGExpandingFormWidget-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel python-setuptools %description TGExpandingFormWidget is a type of repeating form widget for TurboGears. It contains groups of widgets which are repeated on the page. The user is able to dynamically add or remove widget groups as required before submitting the form. %prep %setup -q -n TGExpandingFormWidget-%{version} %build %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc LICENSE.txt %{python_sitelib}/* %changelog * Thu Jan 17 2008 Rob Crittenden - 0.1.3-4 - Add python-devel and pytnon-setuptools to BuildRequires - Updated tarball. It changed upstream without updating the version. It now includes its own setup.py - Package LICENCE.txt as documentation * Wed Jan 16 2008 Rob Crittenden - 0.1.3-3 - Build from the tar.gz source instead of the egg - Provide setup.py since the upstream doesn't include it * Tue Nov 13 2007 Rob Crittenden - 0.1.3-2 - Rename to python-tgexpandingformwidget - Used tgfastdata rpm as new template for spec * Thu Nov 8 2007 Rob Crittenden - 0.1.3-1 - Initial creation