From 503cb5e51aca10ebe99dea844385f2538b7703f9dda7cc369755555c9d5939bf Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Fri, 9 Nov 2012 12:50:29 +0000 Subject: [PATCH] - We're not in Factory, so we can safely install the binary extension until this is solved otherwise (bnc#788988) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-selenium?expand=0&rev=33 --- python-selenium.changes | 6 ++++++ python-selenium.spec | 13 +++---------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/python-selenium.changes b/python-selenium.changes index 7744f99..96c7f14 100644 --- a/python-selenium.changes +++ b/python-selenium.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Nov 9 12:48:15 UTC 2012 - saschpe@suse.de + +- We're not in Factory, so we can safely install the binary extension + until this is solved otherwise (bnc#788988) + ------------------------------------------------------------------- Sat Nov 3 03:04:26 UTC 2012 - alexandre@exatati.com.br diff --git a/python-selenium.spec b/python-selenium.spec index 34e365a..b4bbcc3 100644 --- a/python-selenium.spec +++ b/python-selenium.spec @@ -15,9 +15,6 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} - Name: python-selenium Version: 2.26.0 Release: 0 @@ -30,11 +27,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel BuildRequires: python-distribute Requires: python-rdflib -%if 0%{?suse_version} -%py_requires -%if 0%{?suse_version} > 1110 -BuildArch: noarch -%endif +ExclusiveArch: %ix86 x86_64 +%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()")} %endif %description @@ -53,8 +48,6 @@ python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} -#rm -r %{buildroot}%{python_sitelib}/selenium/webdriver/ie/{win32,x64}/IEDriver.dll # Remove unused Windows DLLs -rm -r %{buildroot}%{python_sitelib}/selenium/webdriver/firefox/{amd64,x86}/x_ignore_nofocus.so # Don't install binary Firefox extension %files %defattr(-,root,root,-)