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
This commit is contained in:
parent
597c20613b
commit
ba5d38fa61
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user