summaryrefslogtreecommitdiffstats
path: root/redhat/applications/kpicosim
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/applications/kpicosim')
-rw-r--r--redhat/applications/kpicosim/kpicosim.spec9
1 files changed, 8 insertions, 1 deletions
diff --git a/redhat/applications/kpicosim/kpicosim.spec b/redhat/applications/kpicosim/kpicosim.spec
index fe2aa1881..5f67d98d5 100644
--- a/redhat/applications/kpicosim/kpicosim.spec
+++ b/redhat/applications/kpicosim/kpicosim.spec
@@ -139,6 +139,13 @@ export PATH="%{tde_bindir}:${PATH}"
%find_lang %{tde_pkg}
+# Move desktop icon to XDG directory
+if [ -d "%{buildroot}%{tde_datadir}/applnk" ]; then
+ %__mkdir_p %{buildroot}%{tde_tdeappdir}
+ %__mv "%{buildroot}%{tde_datadir}/applnk/Development/kpicosim.desktop" "%{buildroot}%{tde_tdeappdir}/%{tde_pkg}.desktop"
+ %__rm -r "%{buildroot}%{tde_datadir}/applnk"
+fi
+
%clean
%__rm -rf %{buildroot}
@@ -148,7 +155,7 @@ export PATH="%{tde_bindir}:${PATH}"
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README
%{tde_bindir}/kpicosim
-%{tde_datadir}/applnk/Development/kpicosim.desktop
+%{tde_tdeappdir}/kpicosim.desktop
%{tde_datadir}/apps/katepart/syntax/psm.xml
%{tde_datadir}/apps/kpicosim
%{tde_tdedocdir}/HTML/en/kpicosim