%define product ClientForm %define version 0.2.2 %define tarname %product-%{version} %define pyver 2.4 %define __python /usr/bin/python2.4 Summary: Python module for handling HTML forms Name: python2.4-%product Version: %version Release: %mkrel 3 Source0: http://wwwsearch.sourceforge.net/ClientForm/src/%tarname.tar.bz2 Patch1: ClientForm-0.2.2-setuptool.patch License: BSD and ZPL Group: Applications/Development/Tools URL: http://wwwsearch.sourceforge.net/ClientForm/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: python2.4 >= 2.0 Requires: python2.4 >= 2.0 BuildArch: noarch %description ClientForm is a Python module for handling HTML forms on the client side, useful for parsing HTML forms, filling them in and returning the completed forms to the server. It developed from a port of Gisle Aas' Perl module HTML::Form, from the libwww-perl library, but the interface is not the same. %prep %setup -q -n %tarname %patch1 -p2 %build %__python setup.py build %install %__rm -rf %buildroot %__python setup.py install -O1 --skip-build --root=%{buildroot} --record=INSTALLED_FILES --single-version-externally-managed %clean %__rm -rf %buildroot %files -f INSTALLED_FILES %defattr(755,root,root) %doc COPY* GeneralFAQ.html INSTALL.txt MANIFEST.in README.* %changelog * Sat Jun 30 2007 Jean-Paul Smets 0.2.2-3mdv2007.1 - Find installed files using INSTALLED_FILES * Tue May 29 2007 Kazuhiko Shiozaki 0.2.2-2.1mdv2007.1 - Rebuild against python2.4 - Set BuildArch to noarch * Mon Jan 22 2007 Kevin Deldycke 0.2.2-2mdv2007.0 - Rebuild for Mandriva 2007.0 * Thu Aug 03 2006 Kevin Deldycke 0.2.2-1mdk - Initial package for Mandriva 2006.0. - Patch setuptool to get a recent version