diff options
author | Shaun Tancheff <[email protected]> | 2019-07-09 15:02:40 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-07-09 13:02:40 -0700 |
commit | 02fad9260aaa95cb7eb6f6e89c5d85f77123582c (patch) | |
tree | a9ea5ee750cbc81bc0655ba04248ae5bf50be5b7 /rpm | |
parent | ab5036df1ccbe1b18c1ce6160b5829e8039d94ce (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} |