reduce CPE

This commit is contained in:
nazunalika 2021-12-11 16:59:44 -07:00
parent 909ece8efd
commit 420b21978b
Signed by: label
GPG Key ID: 6735C0E1BD65D048

View File

@ -10,7 +10,7 @@
%define distro_code Green Obsidian
%define major 8
%define minor 5
%define rocky_rel 1
%define rocky_rel 2
%define upstream_rel %{major}.%{minor}
%define rpm_license BSD-3-Clause
@ -138,7 +138,7 @@ VERSION_ID="%{major}.%{minor}"
PLATFORM_ID="platform:el%{major}"
PRETTY_NAME="%{distro_name} %{major}.%{minor} (%{distro_code})"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:rocky:rocky:%{major}:GA"
CPE_NAME="cpe:/o:rocky:rocky:%{base_release_version}:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
ROCKY_SUPPORT_PRODUCT="%{distro_name}"
@ -149,7 +149,7 @@ EOF
ln -s ../usr/lib/os-release %{buildroot}%{_sysconfdir}/os-release
# write cpe to /etc/system/release-cpe
echo "cpe:/o:rocky:rocky:%{major}.%{minor}:GA" > %{buildroot}%{_sysconfdir}/system-release-cpe
echo "cpe:/o:rocky:rocky:%{base_release_version}:GA" > %{buildroot}%{_sysconfdir}/system-release-cpe
# create /etc/issue and /etc/issue.net
echo '\S' > %{buildroot}%{_sysconfdir}/issue
@ -235,6 +235,9 @@ install -p -m 0644 %{SOURCE1226} %{buildroot}%{_sysconfdir}/yum.repos.d/
%{_sysconfdir}/pki/rpm-gpg/
%changelog
* Sat Dec 11 2021 Louis Abel <label@rockylinux.org> - 8.5-2
- Fix CPE to match upstreamed Rocky data
* Tue Oct 05 2021 Louis Abel <label@rockylinux.org> - 8.5-1
- 8.5 prepatory release