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/knmap | |
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/knmap')
-rw-r--r-- | redhat/applications/knmap/knmap.spec | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/redhat/applications/knmap/knmap.spec b/redhat/applications/knmap/knmap.spec index 30274d2bc..81528820d 100644 --- a/redhat/applications/knmap/knmap.spec +++ b/redhat/applications/knmap/knmap.spec @@ -159,9 +159,11 @@ fi %find_lang %{tde_pkg} # Move desktop icon to XDG directory -%__mkdir_p %{buildroot}%{tde_tdeappdir} -%__mv "%{buildroot}%{tde_datadir}/applnk/"*"/%{tde_pkg}.desktop" "%{buildroot}%{tde_tdeappdir}/%{tde_pkg}.desktop" -%__rm -r "%{buildroot}%{tde_datadir}/applnk" +if [ -d "%{buildroot}%{tde_datadir}/applnk" ]; then + %__mkdir_p %{buildroot}%{tde_tdeappdir} + %__mv "%{buildroot}%{tde_datadir}/applnk/"*"/%{tde_pkg}.desktop" "%{buildroot}%{tde_tdeappdir}/%{tde_pkg}.desktop" + %__rm -r "%{buildroot}%{tde_datadir}/applnk" +fi # Updates applications categories for openSUSE %if 0%{?suse_version} |