summaryrefslogtreecommitdiffstats
path: root/redhat/applications/knutclient/knutclient.spec
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2020-09-06 19:27:42 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2020-09-07 21:02:08 +0200
commit424e58e3209c8ce130983d7d38d4c1ad535d2dbc (patch)
treec3257e85dfcd1c8b9bd9a5c3d412c113a0e5c9a2 /redhat/applications/knutclient/knutclient.spec
parentead24dc5421b41a04a0c33dcd2a8e2e733cccc3c (diff)
downloadtde-packaging-424e58e3209c8ce130983d7d38d4c1ad535d2dbc.tar.gz
tde-packaging-424e58e3209c8ce130983d7d38d4c1ad535d2dbc.zip
RPM: update desktop and lang files location
Diffstat (limited to 'redhat/applications/knutclient/knutclient.spec')
-rw-r--r--redhat/applications/knutclient/knutclient.spec9
1 files changed, 8 insertions, 1 deletions
diff --git a/redhat/applications/knutclient/knutclient.spec b/redhat/applications/knutclient/knutclient.spec
index 7fe001aba..7c6b03804 100644
--- a/redhat/applications/knutclient/knutclient.spec
+++ b/redhat/applications/knutclient/knutclient.spec
@@ -150,6 +150,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/Utilities/knutclient.desktop" "%{buildroot}%{tde_tdeappdir}/%{tde_pkg}.desktop"
+ %__rm -r "%{buildroot}%{tde_datadir}/applnk"
+fi
+
# Links duplicate files
%fdupes "%{?buildroot}%{tde_datadir}"
@@ -162,7 +169,7 @@ export PATH="%{tde_bindir}:${PATH}"
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README
%{tde_bindir}/knutclient
-%{tde_datadir}/applnk/Utilities/knutclient.desktop
+%{tde_tdeappdir}/knutclient.desktop
%{tde_datadir}/apps/knutclient/knutclientui.rc
%{tde_datadir}/apps/knutclient
%{tde_tdedocdir}/HTML/cs/knutclient