mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-06-01 03:34:10 +03:00
rpm: add support for openEuler
OpenEuler uses the same package manager DNF as RHEL/Fedora. And it is similar to RHEL/Fedora. OpenEuler Linux is becoming the mainstream Linux distro in China. So adding support for it makes sense for the users. For more details about it see: https://www.openeuler.org/en/. Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Damian Szuberski <szuberskidamian@gmail.com> Signed-off-by: Xinliang Liu <xinliang.liu@linaro.org> Closes #14222 Conflicts: rpm/generic/zfs.spec.in
This commit is contained in:
committed by
Brian Behlendorf
parent
7043742828
commit
41fb4e071c
@@ -1,6 +1,6 @@
|
||||
%{?!packager: %define packager Brian Behlendorf <behlendorf1@llnl.gov>}
|
||||
|
||||
%if ! 0%{?rhel}%{?fedora}%{?mageia}%{?suse_version}
|
||||
%if ! 0%{?rhel}%{?fedora}%{?mageia}%{?suse_version}%{?openEuler}
|
||||
%define not_rpm 1
|
||||
%endif
|
||||
|
||||
@@ -28,7 +28,7 @@ Requires(post): dkms >= 2.2.0.3
|
||||
Requires(preun): dkms >= 2.2.0.3
|
||||
Requires: gcc, make, perl, diffutils
|
||||
Requires(post): gcc, make, perl, diffutils
|
||||
%if 0%{?rhel}%{?fedora}%{?mageia}%{?suse_version}
|
||||
%if 0%{?rhel}%{?fedora}%{?mageia}%{?suse_version}%{?openEuler}
|
||||
Requires: kernel-devel >= @ZFS_META_KVER_MIN@, kernel-devel <= @ZFS_META_KVER_MAX@.999
|
||||
Requires(post): kernel-devel >= @ZFS_META_KVER_MIN@, kernel-devel <= @ZFS_META_KVER_MAX@.999
|
||||
Obsoletes: spl-dkms <= %{version}
|
||||
@@ -36,7 +36,7 @@ Obsoletes: spl-dkms <= %{version}
|
||||
Provides: %{module}-kmod = %{version}
|
||||
AutoReqProv: no
|
||||
|
||||
%if (0%{?fedora}%{?suse_version}) || (0%{?rhel} && 0%{?rhel} < 9)
|
||||
%if (0%{?fedora}%{?suse_version}%{?openEuler}) || (0%{?rhel} && 0%{?rhel} < 9)
|
||||
# We don't directly use it, but if this isn't installed, rpmbuild as root can
|
||||
# crash+corrupt rpmdb
|
||||
# See issue #12071
|
||||
|
||||
Reference in New Issue
Block a user