forked from pool/python-selenium
Accepting request 492714 from home:TheBlackCat:branches:devel:languages:python
- Update to version 3.4.1 - Implement single-spec version. OBS-URL: https://build.opensuse.org/request/show/492714 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-selenium?expand=0&rev=53
This commit is contained in:
@@ -16,20 +16,24 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-selenium
|
||||
Version: 3.0.2
|
||||
Version: 3.4.1
|
||||
Release: 0
|
||||
Url: https://github.com/SeleniumHQ/selenium
|
||||
Summary: Python bindings for Selenium
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
Source: https://pypi.io/packages/source/s/selenium/selenium-%{version}.tar.gz
|
||||
Source: https://files.pythonhosted.org/packages/source/s/selenium/selenium-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-rdflib
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module rdflib}
|
||||
Requires: python-rdflib
|
||||
ExclusiveArch: %ix86 x86_64
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Selenium Python Client Driver is a Python language binding for Selenium Remote
|
||||
@@ -43,18 +47,19 @@ add more "native" drivers.
|
||||
%setup -q -n selenium-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
# Avoid 64bit runtime dependencies on 32bit architectures:
|
||||
%ifarch %ix86
|
||||
rm %{buildroot}%{python_sitelib}/selenium/webdriver/firefox/amd64/x_ignore_nofocus.so
|
||||
%python_expand rm %{buildroot}%{$python_sitelib}/selenium/webdriver/firefox/amd64/x_ignore_nofocus.so
|
||||
%endif
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc py/README.rst py/CHANGES
|
||||
%doc README.rst CHANGES
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user