From cb7c5cc435aa4ac488951ba13bc7a82e6a802121 Mon Sep 17 00:00:00 2001 From: Viktor Malik Date: Thu, 6 Mar 2025 10:53:10 +0100 Subject: [PATCH] Make kernel tarball dist independent of %{dist} Resolves: RHEL-80792 There are situations when the kernel tarball dist is different from the package dist, e.g. when building via CentOS Stream during the exception phase (c9s will use .el9 while RHEL will use .el9_Z). Signed-off-by: Viktor Malik --- bpftool.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bpftool.spec b/bpftool.spec index 520db68..c73c9b0 100644 --- a/bpftool.spec +++ b/bpftool.spec @@ -5,14 +5,15 @@ # RHEL kernel version-release %define kver 5.14.0-557 -%define source linux-%{kver}%{?dist} +%define kdist .el9 +%define source linux-%{kver}%{kdist} Name: bpftool Version: 7.5.0 # Currently, bpftool built from kernel uses kernel's release version (500+). # In order to do the transition smoothly, raise it to a sufficiently big number. # Once bpftool moves to 7.6.0, reset the release to 1. -Release: 801%{?dist} +Release: 802%{?dist} Summary: Inspection and simple manipulation of eBPF programs and maps %global libname libbpf