diff options
author | Shaun Tancheff <[email protected]> | 2019-07-09 15:02:40 -0500 |
---|---|---|
committer | Tony Hutter <[email protected]> | 2019-09-25 11:27:49 -0700 |
commit | c3a3c5a30fea98f640e23b0f3c2c10d5606ba9fc (patch) | |
tree | dc85e353d4fb6fa35d0a1d81576f9db6db452ead /rpm | |
parent | ccd8125e450c2968b2878fd887da7fac5b9a49f1 (diff) |
pkg-utils python sitelib for SLES15
Use python -Esc to set __python_sitelib.
Reviewed-by: Neal Gompa <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Shaun Tancheff <[email protected]>
Closes #8969
Diffstat (limited to 'rpm')
-rw-r--r-- | rpm/generic/zfs.spec.in | 5 |
1 files changed, 3 insertions, 2 deletions
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} |