From fdbe4103d884811cdf71dbe0411f591f14ade087 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 22 Jun 2020 15:29:10 +0200 Subject: %rename: take a 2nd arg to set the VR to obsolete See mga#26801 too --- build.macros.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build.macros.in') diff --git a/build.macros.in b/build.macros.in index 318e8c9..bcbce72 100644 --- a/build.macros.in +++ b/build.macros.in @@ -320,8 +320,8 @@ export CFLAGS="%optflags"; export CXXFLAGS="%optflags"; export RPM_OPT_FLAGS="%o # Macro from conectiva %rename() \ -Obsoletes: %{1} < %{?epoch:%epoch}%{?!epoch:0}:%{version}-%{release} \ -Provides: %{1} = %{?epoch:%epoch}%{?!epoch:0}:%{version}-%{release} +Obsoletes: %{1} < %{?2:%2}%{?!2:%{?epoch:%epoch}%{?!epoch:0}:%{version}-%{release}} \ +Provides: %{1} = %{?2:%2}%{?!2:%{?epoch:%epoch}%{?!epoch:0}:%{version}-%{release}} # Shorthand for %{defined with_...} # macros provided by rpm 4.4, but buggy :( -- cgit v1.2.1