[packages/xsane] update desktop database
atler
atler at pld-linux.org
Tue Sep 23 21:24:28 CEST 2025
commit 85811aaceca4e4676212fc277286c23e07fbaa29
Author: Jan Palus <atler at pld-linux.org>
Date: Tue Sep 23 21:23:27 2025 +0200
update desktop database
xsane.spec | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/xsane.spec b/xsane.spec
index 144d758..e41d4e4 100644
--- a/xsane.spec
+++ b/xsane.spec
@@ -54,6 +54,7 @@ BuildRequires: pkgconfig
BuildRequires: rpmbuild(macros) >= 1.527
BuildRequires: sane-backends-devel >= 1.0.0
BuildRequires: zlib-devel
+Requires(post,postun): desktop-file-utils
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _gimpplugindir %(gimptool --gimpplugindir 2>/dev/null)/plug-ins
@@ -128,6 +129,12 @@ ln -sf %{_bindir}/xsane $RPM_BUILD_ROOT%{_gimpplugindir}/xsane
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+%update_desktop_database_post
+
+%postun
+%update_desktop_database_postun
+
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc ICM.TODO xsane.{ACCELKEYS,AUTHOR,BUGS,CHANGES,LOGO,NEWS,ONLINEHELP,PROBLEMS,ROOT,TODO}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xsane.git/commitdiff/85811aaceca4e4676212fc277286c23e07fbaa29
More information about the pld-cvs-commit
mailing list