Whamcloud - gitweb
LU-17028 build: add support for openEuler 20.03 LTS 56/51956/2
authorXinliang Liu <xinliang.liu@linaro.org>
Wed, 16 Aug 2023 07:53:02 +0000 (07:53 +0000)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 29 Aug 2023 18:54:50 +0000 (18:54 +0000)
Add build support for openEuler 20.03 LTS.
And e2fsprogs rpm conflicts with openEuler's e2fsprogs-help man rpm,
should obsolete to replace it.

Signed-off-by: Xinliang Liu <xinliang.liu@linaro.org>
Change-Id: I12348e02cfec918167b1949205b86274a1651c27
Reviewed-on: https://review.whamcloud.com/c/tools/e2fsprogs/+/51956
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
contrib/build-rpm
e2fsprogs-RHEL-7+.spec.in

index d9018ef..479290e 100644 (file)
@@ -75,7 +75,7 @@ if [ -z "$RELEASE" ]; then
 fi
 case "$DISTRO-$RELEASE" in
     AlmaLinux-[89]*) DISTRO=RHEL; RELEASE=7+;;
-    openEuler-2[2-9]*) DISTRO=RHEL; RELEASE=7+;;
+    openEuler-2[0-9]*) DISTRO=RHEL; RELEASE=7+;;
     RedHatEnterpriseServer-6*|CentOS-6*|Fedora-1[1-4]) DISTRO=RHEL; RELEASE=6;;
     RedHatEnterpriseServer-7*|Fedora-[1-3][0-9]) DISTRO=RHEL; RELEASE=7+;;
     RedHatEnterprise-[89]*|CentOS-[7-9]*) DISTRO=RHEL; RELEASE=7+;;
index c930a1f..a42250a 100644 (file)
@@ -21,6 +21,10 @@ Obsoletes: e4fsprogs < %{version}-%{release}
 Provides: e4fsprogs = %{version}-%{release}
 %endif
 
+%if 0%{?openEuler}
+Obsoletes: e2fsprogs-help < %{version}
+%endif
+
 BuildRequires: pkgconfig, texinfo, libselinux-devel, gcc
 BuildRequires: libsepol-devel
 BuildRequires: libblkid-devel