File python-ClientForm.spec of Package python-ClientForm

#
# spec file for package python-clientform
#
# Copyright (c) 2013 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/
#
%define mod_name ClientForm

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:            https://pypi.python.org/pypi/ClientForm/
Source0:        https://pypi.python.org/packages/source/C/ClientForm/%{mod_name}-%{version}.tar.gz
BuildRequires:  python-setuptools
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch:      noarch
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

%files
%defattr(-,root,root,-)
%doc COPYING.txt GeneralFAQ.html README.html examples
%{python_sitelib}/%{mod_name}.py*
%{python_sitelib}/%{mod_name}-%{version}-py%{py_ver}.egg-info

%changelog
openSUSE Build Service is sponsored by