From: Shaun Tancheff Date: Tue, 9 Jul 2019 20:02:40 +0000 (-0500) Subject: pkg-utils python sitelib for SLES15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=02fad9260aaa95cb7eb6f6e89c5d85f77123582c;p=zfs pkg-utils python sitelib for SLES15 Use python -Esc to set __python_sitelib. Reviewed-by: Neal Gompa Reviewed-by: Brian Behlendorf Signed-off-by: Shaun Tancheff Closes #8969 --- diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in index 0b16cd0e8..0864a72a1 100644 --- a/rpm/generic/zfs.spec.in +++ b/rpm/generic/zfs.spec.in @@ -99,6 +99,7 @@ %define __python_cffi_pkg python%{__python_pkg_version}-cffi %define __python_setuptools_pkg python%{__python_pkg_version}-setuptools %endif +%define __python_sitelib %(%{__python} -Esc "from distutils.sysconfig import get_python_lib; print(get_python_lib())") # By default python-pyzfs is enabled, with the exception of # RHEL 6 which by default uses Python 2.6 which is too old. @@ -474,8 +475,8 @@ systemctl --system daemon-reload >/dev/null || true %doc contrib/pyzfs/README %doc contrib/pyzfs/LICENSE %defattr(-,root,root,-) -%{python_sitelib}/libzfs_core/* -%{python_sitelib}/pyzfs* +%{__python_sitelib}/libzfs_core/* +%{__python_sitelib}/pyzfs* %endif %if 0%{?_initramfs}