From ead3480ec86e5b1092eb54b2fe0c96d1ef1947ec94b6c415973411d8da2c6e48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 20 Aug 2020 08:37:25 +0000 Subject: [PATCH] Accepting request 828037 from home:Guillaume_G:branches:openSUSE:Factory:ARM - Package x_ignore_nofocus.so on supported architectures only OBS-URL: https://build.opensuse.org/request/show/828037 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-selenium?expand=0&rev=83 --- python-selenium.changes | 5 +++++ python-selenium.spec | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/python-selenium.changes b/python-selenium.changes index 704916d..b9ee017 100644 --- a/python-selenium.changes +++ b/python-selenium.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 20 08:30:39 UTC 2020 - Guillaume GARDET + +- Package x_ignore_nofocus.so on supported architectures only + ------------------------------------------------------------------- Wed Jun 24 10:38:52 UTC 2020 - Guillaume GARDET diff --git a/python-selenium.spec b/python-selenium.spec index b947348..e59a5e0 100644 --- a/python-selenium.spec +++ b/python-selenium.spec @@ -55,8 +55,11 @@ supported, as well as the Selenium 1.0 bindings. %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -# Avoid 64bit runtime dependencies on 32bit architectures: -%ifarch %{ix86} %arm +# Do not package .so built for foreign architectures +%ifnarch %{ix86} x86_64 +%python_expand rm %{buildroot}%{$python_sitelib}/selenium/webdriver/firefox/x86/x_ignore_nofocus.so +%endif +%ifnarch x86_64 %python_expand rm %{buildroot}%{$python_sitelib}/selenium/webdriver/firefox/amd64/x_ignore_nofocus.so %endif