14
0

Accepting request 1094321 from home:Guillaume_G:branches:devel:languages:python

- Fix packaging for non-x86_64 architectures

OBS-URL: https://build.opensuse.org/request/show/1094321
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-selenium?expand=0&rev=87
This commit is contained in:
2023-06-23 11:28:53 +00:00
committed by Git OBS Bridge
parent 7624c6fedd
commit 84ae223d6f
2 changed files with 5 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 21 08:09:17 UTC 2023 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Fix packaging for non-x86_64 architectures
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jun 9 06:29:05 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com> Fri Jun 9 06:29:05 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -61,13 +61,6 @@ cp %{SOURCE2} .
%install %install
%pyproject_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
# 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
%check %check
export PYTHONDONTWRITEBYTECODE=1 export PYTHONDONTWRITEBYTECODE=1