[packages/gvfs] use macro for common code
glen
glen at pld-linux.org
Sun Oct 18 14:14:33 CEST 2015
commit 58ca55e59eb07da3db665687d252c436223a3b27
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Oct 18 15:14:29 2015 +0300
use macro for common code
gvfs.spec | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/gvfs.spec b/gvfs.spec
index 25666d5..006b55c 100644
--- a/gvfs.spec
+++ b/gvfs.spec
@@ -355,12 +355,14 @@ install -d $RPM_BUILD_ROOT%{bash_compdir}
%clean
rm -rf $RPM_BUILD_ROOT
+# Reload .mount files
+%define reload_mount_files killall -USR1 gvfsd >/dev/null 2>&1 || :;
+
%post
%glib_compile_schemas
umask 022
%{_bindir}/gio-querymodules %{_libdir}/gio/modules
-# Reload .mount files:
-killall -USR1 gvfsd >/dev/null 2>&1 || :
+%reload_mount_files
%postun
if [ "$1" = "0" ]; then
@@ -372,26 +374,26 @@ exit 0
# Reload .mount files when single subpackage is installed:
%post afc
-killall -USR1 gvfsd >/dev/null 2>&1 || :
+%reload_mount_files
%post archive
-killall -USR1 gvfsd >/dev/null 2>&1 || :
+%reload_mount_files
%post goa
-killall -USR1 gvfsd >/dev/null 2>&1 || :
+%reload_mount_files
%post google
-killall -USR1 gvfsd >/dev/null 2>&1 || :
+%reload_mount_files
%post gphoto2
-killall -USR1 gvfsd >/dev/null 2>&1 || :
+%reload_mount_files
%post mtp
-killall -USR1 gvfsd >/dev/null 2>&1 || :
+%reload_mount_files
%post smb
%glib_compile_schemas
-killall -USR1 gvfsd >/dev/null 2>&1 || :
+%reload_mount_files
%postun smb
if [ "$1" = "0" ]; then
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gvfs.git/commitdiff/58ca55e59eb07da3db665687d252c436223a3b27
More information about the pld-cvs-commit
mailing list