diff options
author | Brian Behlendorf <[email protected]> | 2019-01-13 10:02:33 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2019-01-13 10:02:33 -0800 |
commit | e34cd80d7942a0f26042c074f30044083c9f952f (patch) | |
tree | b5af23c0391b853af911fe2e0803a6a7a3054e9d | |
parent | 99b0b5bc3fe5a566d73ed2eed53137f97d684e84 (diff) |
Add pyzfs BuildRequires for mock(1)
When building pyzfs under mock the python-cffi and python-setuptools
packages need to be installed and have been added to the BuildRequires.
Reviewed-by: Neal Gompa <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #8265
-rw-r--r-- | rpm/generic/zfs.spec.in | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in index 533792989..44837f028 100644 --- a/rpm/generic/zfs.spec.in +++ b/rpm/generic/zfs.spec.in @@ -79,18 +79,21 @@ # is normally Python 3, but for RHEL <= 7 only Python 2 is provided. %if %{undefined __use_python} %if 0%{?rhel} && 0%{?rhel} <= 7 -%define __python /usr/bin/python2 -%define __python_pkg_version 2 -%define __python_cffi_pkg python-cffi +%define __python /usr/bin/python2 +%define __python_pkg_version 2 +%define __python_cffi_pkg python-cffi +%define __python_setuptools_pkg python-setuptools %else -%define __python /usr/bin/python3 -%define __python_pkg_version 3 -%define __python_cffi_pkg python3-cffi +%define __python /usr/bin/python3 +%define __python_pkg_version 3 +%define __python_cffi_pkg python3-cffi +%define __python_setuptools_pkg python3-setuptools %endif %else -%define __python %{__use_python} -%define __python_pkg_version %{__use_python_pkg_version} -%define __python_cffi_pkg python%{__python_pkg_version}-cffi +%define __python %{__use_python} +%define __python_pkg_version %{__use_python_pkg_version} +%define __python_cffi_pkg python%{__python_pkg_version}-cffi +%define __python_setuptools_pkg python%{__python_pkg_version}-setuptools %endif # By default python-pyzfs is enabled, with the exception of @@ -270,6 +273,8 @@ Requires: python%{__python_pkg_version} Requires: %{__python_cffi_pkg} %if 0%{?rhel}%{?fedora}%{?suse_version} BuildRequires: python%{__python_pkg_version}-devel +BuildRequires: %{__python_cffi_pkg} +BuildRequires: %{__python_setuptools_pkg} BuildRequires: libffi-devel %endif |