File python-zope.testbrowser.spec of Package python-zope.testbrowser

#
# spec file for package python-zope.testbrowser
#
# Copyright (c) 2015 SUSE LINUX 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-zope.testbrowser
Version:        4.0.4
Release:        0
Summary:        Programmable browser for functional black-box tests
License:        ZPL-2.1
Group:          Development/Languages/Python
Url:            http://pypi.python.org/pypi/zope.testbrowser
Source:         http://pypi.python.org/packages/source/z/zope.testbrowser/zope.testbrowser-%{version}.zip
BuildRequires:  fdupes
BuildRequires:  python-devel
BuildRequires:  python-setuptools
BuildRequires:  unzip
# Test requirements:
# BuildRequires:  python-WebTest
# BuildRequires:  python-zope.testing
# runtime requirements
BuildRequires:  python-mechanize >= 0.2.0
BuildRequires:  python-pytz
BuildRequires:  python-zope.interface
BuildRequires:  python-zope.schema
Requires:       python-mechanize >= 0.2.0
Requires:       python-pytz
Requires:       python-zope.interface
Requires:       python-zope.schema
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%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

%description
zope.testbrowser provides an easy-to-use programmable web browser
with special focus on testing.  It is used in Zope, but it's not Zope
specific at all.  For instance, it can be used to test or otherwise
interact with any web site.

%prep
%setup -q -n zope.testbrowser-%{version}

%build
python setup.py build

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

#NOTE(saschpe): Check broken doctests:
#%%check
#python setup.py test

%files
%defattr(-,root,root,-)
%doc CHANGES.rst COPYRIGHT.rst LICENSE.rst README.rst
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by