[packages/gimp] use macros for updating desktop database

atler atler at pld-linux.org
Sun Aug 20 18:19:50 CEST 2023


commit 9b90a569d4d3c9adec6b6c151b944962e3b1530f
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Aug 20 17:44:17 2023 +0200

    use macros for updating desktop database

 gimp.spec | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gimp.spec b/gimp.spec
index 6de5f1a..e47c794 100644
--- a/gimp.spec
+++ b/gimp.spec
@@ -96,6 +96,7 @@ BuildRequires:	xorg-lib-libXpm-devel
 BuildRequires:	xorg-lib-libXt-devel
 BuildRequires:	xz-devel >= 1:5.0.0
 BuildRequires:	zlib-devel
+Requires(post,postun):	desktop-file-utils
 Requires(post,postun):	gtk+2 >= 2:2.24.32
 Requires:	%{name}-libs = %{epoch}:%{version}-%{release}
 Requires:	OpenEXR >= 1.6.1
@@ -401,13 +402,11 @@ echo '.so gimptool-2.0.1' > $RPM_BUILD_ROOT%{_mandir}/man1/gimptool.1
 rm -rf $RPM_BUILD_ROOT
 
 %post
-umask 022
-[ ! -x %{_bindir}/update-desktop-database ] || %{_bindir}/update-desktop-database >/dev/null 2>&1 ||:
+%update_desktop_database_post
 %update_icon_cache hicolor
 
 %postun
-umask 022
-[ ! -x %{_bindir}/update-desktop-database ] || %{_bindir}/update-desktop-database >/dev/null 2>&1
+%update_desktop_database_postun
 %update_icon_cache hicolor
 
 %post	libs -p /sbin/ldconfig
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gimp.git/commitdiff/55a5066eb8a3bdb4ba048e7625ea17d190d5e8f1



More information about the pld-cvs-commit mailing list