From 6cc2254a2ed3207871303366448e87c4eaf462e9 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sun, 21 Jul 2002 08:42:35 +0000 Subject: [PATCH] added macros: %subst_with, %subst_enable --- platform.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform.in b/platform.in index 5c408e6..d842a4e 100644 --- a/platform.in +++ b/platform.in @@ -446,6 +446,10 @@ @alt@%if_enabled() %if %{expand:%%{?_enable_%{1}:1}%%{!?_enable_%{1}:0}} @alt@%if_disabled() %if %{expand:%%{?_disable_%{1}:1}%%{!?_disable_%{1}:0}} @alt@ +@alt@# substitute with/without/enable/disable macros. +@alt@%subst_with() %{expand:%%{?_with_%{1}:%%{_with_%{1}}}} %{expand:%%{?_without_%{1}:%%{_without_%{1}}}} +@alt@%subst_enable() %{expand:%%{?_enable_%{1}:%%{_enable_%{1}}}} %{expand:%%{?_disable_%{1}:%%{_disable_%{1}}}} +@alt@ @alt@# Fetch name/serial/version/release fields. @alt@%get_version() %(rpm -q --qf '%%{VERSION}' %1 2>/dev/null) @alt@%get_release() %(rpm -q --qf '%%{RELEASE}' %1 2>/dev/null)