%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: python-formalchemy Version: 1.0.1 Release: 1%{?dist} Summary: Generate HTML forms from a SqlAlchemy database mapping Group: Development/Languages License: MIT URL: http://formalchemy.googlecode.com/files/FormAlchemy-1.0.1.tar.gz Source0: http://formalchemy.googlecode.com/files/FormAlchemy-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel %description FormAlchemy makes it easier to generate HTML forms for a SQLAlchemy-mapped database. It auto-generates input fields from a given model, and allows for customization for the cases where it can't read the developer's mind. %prep %setup -q -n FormAlchemy-%{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 * Fri Oct 17 2008 David Malcolm - 1.0.1-1 - initial packaging