forked from pool/python-zope.testbrowser
- Initial version
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.testbrowser?expand=0&rev=1
This commit is contained in:
70
python-zope.testbrowser.spec
Normal file
70
python-zope.testbrowser.spec
Normal file
@@ -0,0 +1,70 @@
|
||||
#
|
||||
# spec file for package python-zope.testbrowser
|
||||
#
|
||||
# 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/
|
||||
|
||||
|
||||
Name: python-zope.testbrowser
|
||||
Version: 4.0.2
|
||||
Release: 0
|
||||
License: ZPL-2.1
|
||||
Summary: Programmable browser for functional black-box tests
|
||||
Url: http://pypi.python.org/pypi/zope.testbrowser
|
||||
Group: Development/Languages/Python
|
||||
Source: http://pypi.python.org/packages/source/z/zope.testbrowser/zope.testbrowser-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-distribute
|
||||
# Test requirements:
|
||||
#BuildRequires: python-mechanize
|
||||
#BuildRequires: python-pytz
|
||||
#BuildRequires: python-zope.interface
|
||||
#BuildRequires: python-zope.schema
|
||||
#BuildRequires: python-zope.testing
|
||||
#BuildRequires: python-WebTest
|
||||
Requires: python-mechanize
|
||||
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}
|
||||
|
||||
#NOTE(saschpe): Check broken test imports
|
||||
#%%check
|
||||
#python setup.py test
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYRIGHT.txt LICENSE.txt README.txt
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user