From 2bf5050a79be9beb06ba5a1b429b51cb5e30bf8a Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 11 Dec 2024 10:11:49 +0100 Subject: [PATCH] define dist as %{nil} instead of undefining it when building SRPM Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2331650 --- obal/data/modules/srpm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obal/data/modules/srpm.py b/obal/data/modules/srpm.py index 25b6af7c..81657e0e 100644 --- a/obal/data/modules/srpm.py +++ b/obal/data/modules/srpm.py @@ -96,7 +96,7 @@ def build_srpm(module, package, base_dir, sources_dir, scl=None, macros=None): command += ['--define', '_builddir %s' % build_dir] command += ['--define', '_srcrpmdir %s' % base_dir] command += ['--define', '_rpmdir %s' % base_dir] - command += ['--undefine', 'dist'] + command += ['--define', 'dist %{nil}'] if scl: command += ['--define', 'scl %s' % scl]