File python-clientform.spec of Package python-clientform

#
# spec file for package python-clientform
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           python-clientform
Version:        0.2.10
Release:        0
Summary:        Python module for client-side HTML forms
License:        BSD-3-Clause or ZPL-2.1
Group:          Development/Libraries/Python
Url:            http://wwwsearch.sourceforge.net/ClientForm/
# http://wwwsearch.sourceforge.net/ClientForm/src/ClientForm-%{version}.tar.gz
Source0:        ClientForm-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} >= 1120
BuildArch:      noarch
%endif
# keep this Provides as python-clientform has also been packaged as python-ClientForm in the past:
Provides:       python-ClientForm = %{version}
BuildRequires:  python-setuptools
%{py_requires}

%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 ClientForm-%{version}

%build
export CFLAGS="$RPM_OPT_FLAGS"
%__python setup.py build

%install
%__python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files -f INSTALLED_FILES
%defattr(-,root,root,-)
%doc COPYING.txt GeneralFAQ.html README.txt README.html examples

%changelog
openSUSE Build Service is sponsored by