From ba5d38fa61575c020086a64d9b1fe8d85901780598dff5ddd8a944a89d14b6f4 Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Thu, 1 Oct 2020 11:48:54 +0000 Subject: [PATCH] work around missing %{python_sitearch} and %{python_sitelib} on SLE 15 SP2 This fixes the -python subpackage on SLE 15 SP2. Before this change, this package installed files into /svn and /libsvn in the root partition, rather than installing files within /usr/lib64/python3.6/site-packages/ For now, I am adding this workaround specifically for SLE 15 SP2 only because this is what I was able to test locally. I don't know whether other Suse versions are affected. And perhaps switching these macros to Python3 would break the build elsewhere? OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm:svn/subversion?expand=0&rev=335 --- subversion.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/subversion.spec b/subversion.spec index be9cfe2..b918ef3 100644 --- a/subversion.spec +++ b/subversion.spec @@ -30,6 +30,11 @@ %if ! %{defined _fillupdir} %define _fillupdir %{_localstatedir}/adm/fillup-templates %endif +#Compat macros for SLES 15 SP2 which does not support python_site{arch,lib} +%if 0%{?sle_version} == 150200 && !0%{?is_opensuse} + %define python_sitearch %{python3_sitearch} + %define python_sitelib %{python3_sitelib} +%endif %bcond_without gnome %bcond_with python_ctypes %bcond_with all_regression_tests