From fb886039f64e0353e0e1d6ba252109494b8496e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Fri, 16 Sep 2016 21:26:38 +0200 Subject: [PATCH] RPM packaging: fix kxmleditor on OBS (again) --- redhat/applications/kxmleditor/kxmleditor.spec | 8 ++++++-- 1 file 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