Make kernel tarball dist independent of %{dist}

Resolves: RHEL-108999

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 (c10s will use .el10 while RHEL will use .el10_Y). OpenScanHub may
sometimes use .el10_Y, too.

Signed-off-by: Viktor Malik <vmalik@redhat.com>
This commit is contained in:
Viktor Malik 2025-08-13 12:02:11 +02:00
parent 63ecf2ea18
commit b6c972520a
No known key found for this signature in database
GPG Key ID: AF7A2E1F6EE74FB3

View File

@ -5,11 +5,12 @@
# RHEL kernel version-release
%define kver 6.12.0-103
%define source linux-%{kver}%{?dist}
%define kdist .el10
%define source linux-%{kver}%{kdist}
Name: libbpf
Version: 1.6.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Libbpf library
License: LGPL-2.1-only OR BSD-2-Clause