From 8206fad9e8545d2d3d984a4b32cc96a5162e0180 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Sat, 24 Nov 2018 16:50:17 +0000 Subject: Build %dist based on other macros This means temporary src.rpm generated on the main build node will have correct suffix. --- modules/buildsystem/templates/mgarepo.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/buildsystem/templates/mgarepo.conf b/modules/buildsystem/templates/mgarepo.conf index 49433465..fbe5109c 100644 --- a/modules/buildsystem/templates/mgarepo.conf +++ b/modules/buildsystem/templates/mgarepo.conf @@ -55,6 +55,7 @@ rpm-macros = global <%= d %> [macros global] # mkrel definition to be removed when rpm-setup is updated on main build node mkrel(c:) = %{-c: 0.%{-c*}.}%{1}%{?subrel:.%subrel}%{?distsuffix:%distsuffix}%{?!distsuffix:.mga}%{?distro_release:%distro_release} +dist = %{?distsuffix:%distsuffix}%{?!distsuffix:.mga}%{?distro_release:%distro_release} <%- distros.keys.sort.each{|d| -- cgit v1.2.1