From aa94c11bf5965072cae62c5c63c130f1ca339c89 Mon Sep 17 00:00:00 2001 From: Luke Yue Date: Fri, 18 Sep 2020 21:51:29 +0800 Subject: [PATCH] add marcos to fix build Signed-off-by: Luke Yue --- xfce4-panel.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/xfce4-panel.spec b/xfce4-panel.spec index d9df8e5..273ac56 100644 --- a/xfce4-panel.spec +++ b/xfce4-panel.spec @@ -5,7 +5,7 @@ Name: xfce4-panel Version: 4.14.4 -Release: 1%{?dist} +Release: 2 Summary: panel for Xfce4 desktop environment License: GPLv2+ and LGPLv2+ #Group: Development/Libraries @@ -60,7 +60,12 @@ plugins for xfce4-panel. sed -i 's|Icon=office-calendar|Icon=xfce4-clock|g' plugins/clock/clock.desktop.in.in %build -%configure --enable-gtk-doc --disable-static +%configure \ +%if !%{_with_vala} + --enable-vala=no \ +%endif + --enable-gtk-doc \ + --disable-static # Remove rpaths sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool -- Gitee