summaryrefslogtreecommitdiffstats
path: root/redhat/applications/kchmviewer
diff options
context:
space:
mode:
authorFrançois Andriot <[email protected]>2020-09-06 19:27:42 +0200
committerFrançois Andriot <[email protected]>2020-09-07 21:02:08 +0200
commit424e58e3209c8ce130983d7d38d4c1ad535d2dbc (patch)
treec3257e85dfcd1c8b9bd9a5c3d412c113a0e5c9a2 /redhat/applications/kchmviewer
parentead24dc5421b41a04a0c33dcd2a8e2e733cccc3c (diff)
downloadtde-packaging-424e58e3209c8ce130983d7d38d4c1ad535d2dbc.tar.gz
tde-packaging-424e58e3209c8ce130983d7d38d4c1ad535d2dbc.zip
RPM: update desktop and lang files location
Diffstat (limited to 'redhat/applications/kchmviewer')
-rw-r--r--redhat/applications/kchmviewer/kchmviewer.spec7
1 files changed, 5 insertions, 2 deletions
diff --git a/redhat/applications/kchmviewer/kchmviewer.spec b/redhat/applications/kchmviewer/kchmviewer.spec
index 68e7c71d7..693ec8e67 100644
--- a/redhat/applications/kchmviewer/kchmviewer.spec
+++ b/redhat/applications/kchmviewer/kchmviewer.spec
@@ -173,8 +173,11 @@ export PATH="%{tde_bindir}:${PATH}"
%__rm -f %{?buildroot}%{tde_libdir}/*.a
# Fix desktop icon location
-%__mkdir_p "%{?buildroot}%{tde_tdeappdir}"
-%__mv -f "%{?buildroot}%{tde_datadir}/applnk/kchmviewer.desktop" "%{?buildroot}%{tde_tdeappdir}/kchmviewer.desktop"
+if [ -d "%{?buildroot}%{tde_datadir}/applnk" ]; then
+ %__mkdir_p "%{?buildroot}%{tde_tdeappdir}"
+ %__mv -f "%{?buildroot}%{tde_datadir}/applnk/kchmviewer.desktop" "%{?buildroot}%{tde_tdeappdir}/kchmviewer.desktop"
+ %__rm -r "%{buildroot}%{tde_datadir}/applnk"
+fi
# Updates applications categories for openSUSE
echo "OnlyShowIn=TDE;" >>"%{?buildroot}%{tde_tdeappdir}/kchmviewer.desktop"