summaryrefslogtreecommitdiffstats
path: root/redhat
diff options
context:
space:
mode:
authorFrançois Andriot <[email protected]>2016-09-16 21:26:38 +0200
committerFrançois Andriot <[email protected]>2016-09-16 21:26:38 +0200
commitfb886039f64e0353e0e1d6ba252109494b8496e3 (patch)
tree31fc68396d8787c5967ad537347b970226974454 /redhat
parent23482ea6282244e796d7c2ff0212ac707cacddc7 (diff)
downloadtde-packaging-fb886039f64e0353e0e1d6ba252109494b8496e3.tar.gz
tde-packaging-fb886039f64e0353e0e1d6ba252109494b8496e3.zip
RPM packaging: fix kxmleditor on OBS (again)
Diffstat (limited to 'redhat')
-rw-r--r--redhat/applications/kxmleditor/kxmleditor.spec8
1 files changed, 6 insertions, 2 deletions
diff --git a/redhat/applications/kxmleditor/kxmleditor.spec b/redhat/applications/kxmleditor/kxmleditor.spec
index edb69dbf9..cf0447a98 100644
--- a/redhat/applications/kxmleditor/kxmleditor.spec
+++ b/redhat/applications/kxmleditor/kxmleditor.spec
@@ -135,9 +135,13 @@ export PATH="%{tde_bindir}:${PATH}"
%find_lang %{tde_pkg}
+# Move desktop icon to correct location
+%__mkdir_p "%{?buildroot}%{tde_tdeappdir}"
+%__mv -f "%{?buildroot}%{tde_datadir}/applnk/"*"/%{tde_pkg}.desktop" "%{?buildroot}%{tde_tdeappdir}"
+
# Updates applications categories for openSUSE
%if 0%{?suse_version}
-%suse_update_desktop_file -G "XML Editor" -r "%{buildroot}%{tde_datadir}/applnk/Applications/kxmleditor.desktop" Utility Editor
+%suse_update_desktop_file -G "XML Editor" -r "%{tde_pkg}" Utility Editor
%endif
@@ -152,7 +156,7 @@ export PATH="%{tde_bindir}:${PATH}"
%{tde_tdelibdir}/libkxmleditorpart.so
%{tde_tdelibdir}/libkxmleditorpart.so.1
%{tde_tdelibdir}/libkxmleditorpart.so.1.0.0
-%{tde_datadir}/applnk/Applications/kxmleditor.desktop
+%{tde_tdeappdir}/kxmleditor.desktop
%{tde_datadir}/apps/kxmleditor/
%{tde_tdedocdir}/HTML/en/kxmleditor/
%{tde_datadir}/icons/hicolor/*/apps/kxmleditor.png