summaryrefslogtreecommitdiffstats
path: root/redhat/applications/kkbswitch/kkbswitch.spec
diff options
context:
space:
mode:
authorFrançois Andriot <[email protected]>2021-01-30 14:34:02 +0100
committerFrançois Andriot <[email protected]>2021-01-30 22:29:41 +0100
commit6581dc50b83f203d65eac61c00a159ab2a6ddb5d (patch)
tree85c02d38ca9dcedc28798ee41c4b16ec7260e9bc /redhat/applications/kkbswitch/kkbswitch.spec
parent87e57a1a070839a44db16a0410ef57902db2df3e (diff)
downloadtde-packaging-6581dc50b83f203d65eac61c00a159ab2a6ddb5d.tar.gz
tde-packaging-6581dc50b83f203d65eac61c00a159ab2a6ddb5d.zip
RPM: massive update and cleanup
Diffstat (limited to 'redhat/applications/kkbswitch/kkbswitch.spec')
-rw-r--r--redhat/applications/kkbswitch/kkbswitch.spec11
1 files changed, 7 insertions, 4 deletions
diff --git a/redhat/applications/kkbswitch/kkbswitch.spec b/redhat/applications/kkbswitch/kkbswitch.spec
index b4ef8ddb4..d83aa58af 100644
--- a/redhat/applications/kkbswitch/kkbswitch.spec
+++ b/redhat/applications/kkbswitch/kkbswitch.spec
@@ -18,7 +18,7 @@
# TDE variables
%define tde_epoch 2
%if "%{?tde_version}" == ""
-%define tde_version 14.0.0
+%define tde_version 14.1.0
%endif
%define tde_pkg kkbswitch
%define tde_prefix /opt/trinity
@@ -156,12 +156,15 @@ export PATH="%{tde_bindir}:${PATH}"
%find_lang %{tde_pkg}
# Fix desktop icon location
-%__mkdir_p "%{?buildroot}%{tde_tdeappdir}"
-%__mv -f "%{?buildroot}%{tde_datadir}/applnk/"*"/%{tde_pkg}.desktop" "%{?buildroot}%{tde_tdeappdir}"
+if [ -d "%{?buildroot}%{tde_datadir}/applnk" ]; then
+ %__mkdir_p "%{?buildroot}%{tde_tdeappdir}"
+ %__mv -f "%{?buildroot}%{tde_datadir}/applnk/"*"/%{tde_pkg}.desktop" "%{?buildroot}%{tde_tdeappdir}"
+ %__rm -r "%{buildroot}%{tde_datadir}/applnk"
+fi
# Updates applications categories for openSUSE
%if 0%{?suse_version}
-%suse_update_desktop_file -r %{tde_pkg} System TrayIcon
+%suse_update_desktop_file -r "%{?buildroot}%{tde_tdeappdir}/%{tde_pkg}.desktop" System TrayIcon
%endif