]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
- 1.742, cmake_on_off macros from libgit2.spec (other variant also seen in freerdp... auto/th/rpm-build-macros-1.742-1
authorAdam Gołębiowski <adamg@pld-linux.org>
Sun, 24 Mar 2019 11:43:57 +0000 (12:43 +0100)
committerAdam Gołębiowski <adamg@pld-linux.org>
Sun, 24 Mar 2019 11:43:57 +0000 (12:43 +0100)
rpm-build-macros.spec
rpm.macros

index 18293faae886acd58a90bd1c82f28188066cd47d..4116ba2dc78cf774a8dc39393b05777bb525269f 100644 (file)
@@ -1,4 +1,4 @@
-%define                rpm_macros_rev  1.741
+%define                rpm_macros_rev  1.742
 %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
index b97afe276863676e045baa2dbac5aa48cc677b71..8a26e75b7de9ffc45bfcfea0e3eeb85dbf52af1e 100644 (file)
@@ -433,6 +433,11 @@ LC_ALL=C.UTF-8 %{__meson} \
 %__true_false() %{expand:%%{?with_%{1}:true}%%{!?with_%{1}:false}}
 %__true_false_not() %{expand:%%{?with_%{1}:false}%%{!?with_%{1}:true}}
 
+# for use with cmake:
+# Usage: cmake_with BCOND_NAME [OPTION_NAME]
+# BuildRequires: rpmbuild(macros) >= 1.742
+%cmake_on_off() -D%{?2}%{!?2:%{1}}:BOOL=%{expand:%%{?with_%{1}:ON}%%{!?with_%{1}:OFF}}
+
 #-----------------------------------------------------------------
 
 # overload to insert debuginfo package
This page took 0.04538 seconds and 4 git commands to generate.