diff options
author | François Andriot <albator78@libertysurf.fr> | 2020-09-06 19:27:42 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2020-09-07 21:02:08 +0200 |
commit | 424e58e3209c8ce130983d7d38d4c1ad535d2dbc (patch) | |
tree | c3257e85dfcd1c8b9bd9a5c3d412c113a0e5c9a2 /redhat/applications/kkbswitch | |
parent | ead24dc5421b41a04a0c33dcd2a8e2e733cccc3c (diff) | |
download | tde-packaging-424e58e3209c8ce130983d7d38d4c1ad535d2dbc.tar.gz tde-packaging-424e58e3209c8ce130983d7d38d4c1ad535d2dbc.zip |
RPM: update desktop and lang files location
Diffstat (limited to 'redhat/applications/kkbswitch')
-rw-r--r-- | redhat/applications/kkbswitch/kkbswitch.spec | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/redhat/applications/kkbswitch/kkbswitch.spec b/redhat/applications/kkbswitch/kkbswitch.spec index c6d7513ec..6a93d0aed 100644 --- a/redhat/applications/kkbswitch/kkbswitch.spec +++ b/redhat/applications/kkbswitch/kkbswitch.spec @@ -156,8 +156,11 @@ 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} |