[packages/rpm-build-macros] - rel 1.728; __true_false rpm macro for -Ddocumentation=%{__true_false doc} usage

arekm arekm at pld-linux.org
Sat Oct 21 11:53:44 CEST 2017


commit d9ea8286c0a80ac367edbb765b1df79204928e7e
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Oct 21 11:53:33 2017 +0200

    - rel 1.728; __true_false rpm macro for -Ddocumentation=%{__true_false doc} usage

 rpm-build-macros.spec | 2 +-
 rpm.macros            | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/rpm-build-macros.spec b/rpm-build-macros.spec
index a076cb2..e8d71a1 100644
--- a/rpm-build-macros.spec
+++ b/rpm-build-macros.spec
@@ -1,4 +1,4 @@
-%define		rpm_macros_rev	1.727
+%define		rpm_macros_rev	1.728
 %define		find_lang_rev	1.40
 Summary:	PLD Linux RPM build macros
 Summary(pl.UTF-8):	Makra do budowania pakietów RPM dla Linuksa PLD
diff --git a/rpm.macros b/rpm.macros
index cec3abb..654d3d4 100644
--- a/rpm.macros
+++ b/rpm.macros
@@ -426,6 +426,9 @@ LC_ALL=C.UTF-8 %{__meson} \
 %__without_if() %{expand:%%{?with_%{1}:--without-%{?2}%{!?2:%{1}}}}
 %__with_without_not() %{expand:%%{!?with_%{1}:--with-%{?2}%{!?2:%{1}}%{?3:=%{3}}}%%{?with_%{1}:--without-%{?2}%{!?2:%{1}}}}
 
+# expands to true or false based on bcond; used with meson
+%__true_false() %{expand:%%{?with_%{1}:true}%%{!?with_%{1}:false}}
+
 #-----------------------------------------------------------------
 
 # overload to insert debuginfo package
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-macros.git/commitdiff/d9ea8286c0a80ac367edbb765b1df79204928e7e



More information about the pld-cvs-commit mailing list