From 85fc83ec7fb397026ac1dd3e9cea5aed5f62fbf5 Mon Sep 17 00:00:00 2001 From: Maciej Wereski Date: Fri, 10 Jul 2015 12:00:14 +0200 Subject: [PATCH] Build conditionally with kdbus Change-Id: Ia96847ae9906392be4baa7140c76f8be1537371b Signed-off-by: Maciej Wereski --- packaging/glib2.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packaging/glib2.spec b/packaging/glib2.spec index 812ec87..cb12266 100644 --- a/packaging/glib2.spec +++ b/packaging/glib2.spec @@ -1,10 +1,12 @@ -%define baseline 2.40 +%bcond_with kdbus +%define baseline 2.43 %define with_systemtap 0 %define keepstatic 1 +%define release_flags %{?with_kdbus:+kdbus} Name: glib2 Version: 2.43.1 -Release: 0 +Release: 0%{?release_flags} # FIXME: find out if tapsets should really be in devel package or in main package Summary: General-Purpose Utility Library License: LGPL-2.1+ @@ -186,6 +188,9 @@ NOCONFIGURE=1 ./autogen.sh %if 0%{?with_systemtap} --enable-systemtap \ %endif +%if %{with kdbus} + --enable-kdbus \ +%endif --with-pcre=system %{__make} %{?_smp_mflags} V=1 -- 2.7.4