diff options
Diffstat (limited to 'rpm')
-rw-r--r-- | rpm/generic/zfs.spec.in | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in index edc7df62f..0db067ae0 100644 --- a/rpm/generic/zfs.spec.in +++ b/rpm/generic/zfs.spec.in @@ -216,6 +216,26 @@ Requires: dracut This package contains a dracut module used to construct an initramfs image which is ZFS aware. +%if 0%{?_pyzfs} +%package -n pyzfs +Summary: Python wrapper for libzfs_core +Group: Development/Languages/Python +License: Apache-2.0 +BuildArch: noarch +Requires: libzfs2 = %{version} +Requires: libnvpair1 = %{version} +Requires: libffi +Requires: python >= 2.7 +Requires: python-cffi +%if 0%{?rhel}%{?fedora}%{?suse_version} +BuildRequires: python-devel +BuildRequires: libffi-devel +%endif + +%description -n pyzfs +This package provides a python wrapper for the libzfs_core C library. +%endif + %if 0%{?_initramfs} %package initramfs Summary: Initramfs module @@ -383,6 +403,15 @@ systemctl --system daemon-reload >/dev/null || true %doc contrib/dracut/README.dracut.markdown %{_dracutdir}/modules.d/* +%if 0%{?_pyzfs} +%files -n pyzfs +%doc contrib/pyzfs/README +%doc contrib/pyzfs/LICENSE +%defattr(-,root,root,-) +%{python_sitelib}/libzfs_core/* +%{python_sitelib}/pyzfs* +%endif + %if 0%{?_initramfs} %files initramfs %doc contrib/initramfs/README.initramfs.markdown |