[PATCH] sawfish: spec file update for KDE



This patch uses %{_kde4_appsdir} macro instead of `kde4-config --install
data`. If it is missing we fallback to %{_datadir}/kde4/apps.


--- sawfish/sawfish.spec.in.orig	2010-01-03 14:16:58.000000000 +0200
+++ sawfish/sawfish.spec.in	2010-01-03 14:22:27.000000000 +0200
@@ -13,10 +13,10 @@
 Provides: windowmanager
 
 %define rep_execdir %(pkg-config librep --variable=repcommonexecdir)
-%if %(kde4-config; echo $?)
-%define kde_apps %{_datadir}/kde4/apps/
+%if %{?_kde4_appsdir:1}%{!?_kde4_appsdir:0}
+%define kde_apps %{_kde4_appsdir}
 %else
-%define kde_apps %(kde4-config --install data)
+%define kde_apps %{_datadir}/kde4/apps
 %endif
 
 %description


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]