summaryrefslogtreecommitdiffstats
path: root/redhat/applications/knights/knights.spec
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/applications/knights/knights.spec')
-rw-r--r--redhat/applications/knights/knights.spec9
1 files changed, 8 insertions, 1 deletions
diff --git a/redhat/applications/knights/knights.spec b/redhat/applications/knights/knights.spec
index 9bde2f66b..ad7bf843e 100644
--- a/redhat/applications/knights/knights.spec
+++ b/redhat/applications/knights/knights.spec
@@ -157,6 +157,13 @@ export PATH="%{tde_bindir}:${PATH}"
%find_lang %{tde_pkg}
+# Fix desktop icon location
+if [ -d "%{?buildroot}%{tde_datadir}/applnk" ]; then
+ %__mkdir_p "%{?buildroot}%{tde_tdeappdir}"
+ %__mv -f "%{?buildroot}%{tde_datadir}/applnk/Games/Board/knights.desktop" "%{?buildroot}%{tde_tdeappdir}"
+ %__rm -r "%{buildroot}%{tde_datadir}/applnk"
+fi
+
%clean
%__rm -rf %{buildroot}
@@ -165,7 +172,7 @@ export PATH="%{tde_bindir}:${PATH}"
%files -f %{tde_pkg}.lang
%defattr(-,root,root,-)
%{tde_bindir}/knights
-%{tde_datadir}/applnk/Games/Board/knights.desktop
+%{tde_tdeappdir}/knights.desktop
%{tde_datadir}/apps/knights
%{tde_tdedocdir}/HTML/*/knights
%{tde_datadir}/icons/hicolor/*/*/*.png