2010-05-26 13:26:46 +00:00
|
|
|
#
|
2011-07-08 11:24:36 +00:00
|
|
|
# spec file for package python-selenium
|
2010-05-26 13:26:46 +00:00
|
|
|
#
|
2017-03-20 15:47:03 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2010-05-26 13:26:46 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2015-04-23 11:05:52 +00:00
|
|
|
|
2010-05-26 13:26:46 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2015-04-23 11:05:52 +00:00
|
|
|
|
2017-05-08 14:21:26 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2009-09-21 21:16:00 +00:00
|
|
|
Name: python-selenium
|
2017-05-08 14:21:26 +00:00
|
|
|
Version: 3.4.1
|
2011-07-08 11:24:36 +00:00
|
|
|
Release: 0
|
2017-03-20 15:47:03 +00:00
|
|
|
Url: https://github.com/SeleniumHQ/selenium
|
2011-07-08 11:24:36 +00:00
|
|
|
Summary: Python bindings for Selenium
|
2012-01-04 23:26:08 +00:00
|
|
|
License: Apache-2.0
|
2011-07-08 11:24:36 +00:00
|
|
|
Group: Development/Languages/Python
|
2017-05-08 14:21:26 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/selenium/selenium-%{version}.tar.gz
|
2009-09-21 21:16:00 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-05-08 14:21:26 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module rdflib}
|
2011-07-08 11:24:36 +00:00
|
|
|
Requires: python-rdflib
|
2017-03-20 15:47:03 +00:00
|
|
|
ExclusiveArch: %ix86 x86_64
|
2017-05-08 14:21:26 +00:00
|
|
|
%python_subpackages
|
2011-07-08 11:24:36 +00:00
|
|
|
|
2009-09-21 21:16:00 +00:00
|
|
|
%description
|
2011-07-08 11:24:36 +00:00
|
|
|
Selenium Python Client Driver is a Python language binding for Selenium Remote
|
|
|
|
Control (version 1.0 and 2.0).
|
2009-09-21 21:16:00 +00:00
|
|
|
|
2011-07-08 11:24:36 +00:00
|
|
|
Currently the remote protocol, Firefox and Chrome for Selenium 2.0 are
|
|
|
|
supported, as well as the Selenium 1.0 bindings. As work will progresses we'll
|
|
|
|
add more "native" drivers.
|
2009-09-21 21:16:00 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n selenium-%{version}
|
|
|
|
|
|
|
|
%build
|
2017-05-08 14:21:26 +00:00
|
|
|
%python_build
|
2009-09-21 21:16:00 +00:00
|
|
|
|
|
|
|
%install
|
2017-05-08 14:21:26 +00:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2012-12-17 15:10:34 +00:00
|
|
|
# Avoid 64bit runtime dependencies on 32bit architectures:
|
2017-03-20 15:47:03 +00:00
|
|
|
%ifarch %ix86
|
2017-05-08 14:21:26 +00:00
|
|
|
%python_expand rm %{buildroot}%{$python_sitelib}/selenium/webdriver/firefox/amd64/x_ignore_nofocus.so
|
2015-07-16 08:19:37 +00:00
|
|
|
%endif
|
2011-07-08 11:24:36 +00:00
|
|
|
|
2017-05-08 14:21:26 +00:00
|
|
|
%files %{python_files}
|
2011-07-08 11:24:36 +00:00
|
|
|
%defattr(-,root,root,-)
|
2017-05-08 14:21:26 +00:00
|
|
|
%doc README.rst CHANGES
|
2011-07-08 11:24:36 +00:00
|
|
|
%{python_sitelib}/*
|
2009-09-21 21:16:00 +00:00
|
|
|
|
2011-07-08 11:24:36 +00:00
|
|
|
%changelog
|