[packages/v4l-utils] update desktop database and icon cache

atler atler at pld-linux.org
Wed Dec 13 19:49:42 CET 2023


commit 8e5bbdd54ee91f14fd64c93829ee0afc83196587
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Dec 13 19:04:11 2023 +0100

    update desktop database and icon cache

 v4l-utils.spec | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/v4l-utils.spec b/v4l-utils.spec
index 3f277d7..6ada196 100644
--- a/v4l-utils.spec
+++ b/v4l-utils.spec
@@ -62,10 +62,13 @@ Summary:	Qt-based V4L2 capture and test utilities
 Summary(pl.UTF-8):	Oparte na Qt narzędzia V4L2 do przechwytywania obrazu i testowania
 License:	GPL v2+
 Group:		X11/Applications
+Requires(post,postun):	desktop-file-utils
+Requires(post,postun):	gtk-update-icon-cache
 Requires:	Qt5Core >= 5.0
 Requires:	Qt5Gui >= 5.0
 Requires:	Qt5OpenGL >= 5.0
 Requires:	Qt5Widgets >= 5.0
+Requires:	hicolor-icon-theme
 Requires:	libv4l = %{version}-%{release}
 
 %description qt
@@ -185,6 +188,14 @@ export EXCLUDE_FROM_STRIP="%{_noautostrip}"
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post qt
+%update_desktop_database_post
+%update_icon_cache hicolor
+
+%postun qt
+%update_desktop_database_postun
+%update_icon_cache hicolor
+
 # handle transition from libv4l 0.8.x (.so.0 used to be libraries, not symlinks)
 %pretrans -n libv4l
 for f in libv4l1 libv4l2 libv4lconvert ; do
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/v4l-utils.git/commitdiff/b876956ff967d56de0348dce722a5580ad81550b



More information about the pld-cvs-commit mailing list