Backport fedora-release type of macros

This commit can be reverted if not used for 9.1
This commit is contained in:
Louis Abel 2022-08-01 20:59:14 -07:00
parent 0bb446aa2b
commit 156bb3bd32
Signed by: label
GPG Key ID: B37E62D143879B36
1 changed files with 12 additions and 2 deletions

View File

@ -23,6 +23,10 @@
%define rocky_rel 3%{?rllh:.%{rllh}}%{!?rllh:.1}
%define rpm_license BSD-3-Clause
%define dist .el%{major}
%define home_url https://rockylinux.org/
%define bug_url https://bugs.rockylinux.org/
%define debug_url https://debuginfod.rockylinux.org/
%define dist_vendor RESF
%define contentdir pub/rocky
%define sigcontent pub/sig
@ -221,8 +225,8 @@ PRETTY_NAME="%{distro_name} %{full_release_version}%{?rlstatement: %{rlstatement
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:%{major}::baseos"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
HOME_URL="%{home_url}"
BUG_REPORT_URL="%{bug_url}"
ROCKY_SUPPORT_PRODUCT="%{os_bug_name}"
ROCKY_SUPPORT_PRODUCT_VERSION="%{full_release_version}%{?rlstatement:-%{rlstatement}}"
REDHAT_SUPPORT_PRODUCT="%{distro_name}"
@ -255,6 +259,12 @@ cat > %{buildroot}%{_sysconfdir}/rpm/macros.dist << EOF
%%rhel %{major}
%%dist %%{!?distprefix0:%%{?distprefix}}%%{expand:%%{lua:for i=0,9999 do print("%%{?distprefix" .. i .."}") end}}.el%{major}%%{?distsuffix}%%{?with_bootstrap:%{__bootstrap}}
%%el%{major} 1
%%dist_vendor %{dist_vendor}
%%dist_name %{distro}
%%dist_home_url %{home_url}
%%dist_bug_report_url %{bug_url}
%%dist_debuginfod_url %{debug_url}
EOF
# Data directory