From 0ce8a30751b43e9c549d70c13c7a7efc28325ae45297cd5850d1326081581b56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 31 Aug 2020 10:14:39 +0000 Subject: [PATCH] Accepting request 830720 from home:Guillaume_G:branches:openSUSE:Factory:ARM - Fix installation path when NVX is not used (fix aarch64) OBS-URL: https://build.opensuse.org/request/show/830720 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autobahn?expand=0&rev=42 --- python-autobahn.changes | 5 +++++ python-autobahn.spec | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/python-autobahn.changes b/python-autobahn.changes index 7832f4f..a771b9d 100644 --- a/python-autobahn.changes +++ b/python-autobahn.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Aug 31 10:06:55 UTC 2020 - Guillaume GARDET + +- Fix installation path when NVX is not used (fix aarch64) + ------------------------------------------------------------------- Thu Aug 20 08:47:52 UTC 2020 - Guillaume GARDET diff --git a/python-autobahn.spec b/python-autobahn.spec index 1a6557e..65f8ad6 100644 --- a/python-autobahn.spec +++ b/python-autobahn.spec @@ -110,7 +110,11 @@ export AUTOBAHN_USE_NVX=true %python_install %python_clone -a %{buildroot}%{_bindir}/wamp %python_clone -a %{buildroot}%{_bindir}/xbrnetwork +%if %{with nvx_support} %python_expand %fdupes %{buildroot}%{$python_sitearch} +%else +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif %if %{with nvx_support} # It tries to test NVX, even if disabled @@ -131,7 +135,11 @@ export PY_IGNORE_IMPORTMISMATCH=1 %files %{python_files} %license LICENSE %doc README.rst +%if %{with nvx_support} %{python_sitearch}/* +%else +%{python_sitelib}/* +%endif %python_alternative %{_bindir}/wamp %python_alternative %{_bindir}/xbrnetwork