From ae744e33434f307d6b627f442070b2c31a1fa579 Mon Sep 17 00:00:00 2001 From: chentingting Date: Sat, 24 Dec 2022 03:11:27 +0800 Subject: [PATCH] Add the centos-release soft link --- generic-release.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/generic-release.spec b/generic-release.spec index 3e5f516..8c2099a 100644 --- a/generic-release.spec +++ b/generic-release.spec @@ -6,7 +6,7 @@ %define generic_version 22.03 %define generic_patch_level LTS %define generic_patch_level_extend SP1 -%define generic_release 56 +%define generic_release 56.u1 %define builtin_release_version 1.0 %define current_arch %{_arch} @@ -52,11 +52,15 @@ cat << EOF >>$RPM_BUILD_ROOT/etc/os-release NAME="%{product_family}" VERSION="%{generic_version} (%{generic_patch_level}-%{generic_patch_level_extend})" ID="%{product_family}" +ID_LIKE="rhel centos openEuler" VERSION_ID="%{generic_version}" PRETTY_NAME="%{product_family} %{generic_version} (%{generic_patch_level}-%{generic_patch_level_extend})" ANSI_COLOR="0;31" EOF +ln -sf %{product_family}-release $RPM_BUILD_ROOT/etc/redhat-release +ln -sf %{product_family}-release $RPM_BUILD_ROOT/etc/centos-release +ln -sf %{product_family}-release $RPM_BUILD_ROOT/etc/openEuler-release mkdir -p -m 755 $RPM_BUILD_ROOT/etc/profile.d cp -a system-info.sh $RPM_BUILD_ROOT/etc/profile.d/ @@ -127,6 +131,11 @@ fi /usr/share/eula/eula.* %changelog +* Thu Dec 15 2022 chentingting - 1.0-56.u1 +- Type:bugfix +- CVE: +- DESC:Add the centos-release soft link + * Mon Dec 12 2022 wangkai - 1.0-56 - Delete package openEuler-performance -- Gitee