From de6d0b09a5023caf8c939795b67e792cb25fbf42 Mon Sep 17 00:00:00 2001 From: nazunalika Date: Sat, 11 Dec 2021 16:54:26 -0700 Subject: [PATCH] reduce CPE --- SPECS/rocky-release.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SPECS/rocky-release.spec b/SPECS/rocky-release.spec index d229242..ff9b35b 100644 --- a/SPECS/rocky-release.spec +++ b/SPECS/rocky-release.spec @@ -209,7 +209,7 @@ VERSION_ID="%{full_release_version}" PLATFORM_ID="platform:el%{major}" PRETTY_NAME="%{distro_name} %{full_release_version}%{?rlstatement: %{rlstatement}} (%{distro_code})" ANSI_COLOR="0;32" -CPE_NAME="cpe:/o:rocky:rocky:%{full_release_version}" +CPE_NAME="cpe:/o:rocky:rocky:%{base_release_version}" HOME_URL="https://rockylinux.org/" BUG_REPORT_URL="https://bugs.rockylinux.org/" ROCKY_SUPPORT_PRODUCT="%{distro_name}" @@ -220,7 +220,7 @@ EOF ln -s ../usr/lib/os-release %{buildroot}%{_sysconfdir}/os-release # write cpe to /etc/system/release-cpe -echo "cpe:/o:rocky:rocky:%{full_release_version}:GA" > %{buildroot}%{_sysconfdir}/system-release-cpe +echo "cpe:/o:rocky:rocky:%{base_release_version}" > %{buildroot}%{_sysconfdir}/system-release-cpe # create /etc/issue and /etc/issue.net, /etc/issue.d echo '\S' > %{buildroot}%{_sysconfdir}/issue