[fedfs-utils] - some more spec file changes as detailed in the packaging guildlines.

Ian Kent iankent at fedoraproject.org
Thu Aug 2 08:19:07 UTC 2012


commit 1fe091ad6c618032e75d106971844b3dacfe84f3
Author: Ian Kent <ikent at redhat.com>
Date:   Thu Aug 2 16:18:53 2012 +0800

    - some more spec file changes as detailed in the packaging guildlines.

 fedfs-utils.spec |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/fedfs-utils.spec b/fedfs-utils.spec
index 7c16b03..47e2fb1 100644
--- a/fedfs-utils.spec
+++ b/fedfs-utils.spec
@@ -1,6 +1,6 @@
 Name:           fedfs-utils
 Version:        0.8.0
-Release:        6%{?dist}
+Release:        7%{?dist}
 Summary:        Utilities for mounting and managing FedFS
 
 Group:          System Environment/Daemons
@@ -208,6 +208,10 @@ Currently, the Linux FedFS implementation supports only NFS version 4
 referrals. More on NFS version 4 referrals can be found in RFC 3530.
 FedFS may support other network file system protocols in the future.
 
+%post lib -p /sbin/ldconfig
+
+%postun lib -p /sbin/ldconfig
+
 %files lib
 # We need to include this in the lib package because it is
 # dlopen()ed by the junction support code in nfs-utils.
@@ -252,7 +256,7 @@ getent passwd fedfs >/dev/null || \
     -c "FedFS Server User" fedfs
 exit 0
 
-%post
+%post server
 if [ $1 -eq 1 ]; then
 	# Initial installation
 	%{_bindir}/systemctl daemon-reload >/dev/null 2>&1 || :
@@ -260,14 +264,14 @@ if [ $1 -eq 1 ]; then
 	#%{_bindir}/systemctl enable %{unit_name}.service >/dev/null 2>&1 || :
 fi
 
-%preun
+%preun server
 if [ $1 -eq 0 ] ; then
 	#Package removal, not upgrade
 	%{_bindir}/systemctl --no-reload disable %{unit_name}.service > /dev/null 2>&1 || :
 	%{_bindir}/systemctl stop %{unit_name}.service > /dev/null 2>&1 || :
 fi
 
-%postun
+%postun server
 %{_bindir}/systemctl daemon-reload >/dev/null 2>&1 || :
 if [ $1 -ge 1 ] ; then
     # Package upgrade, not uninstall
@@ -336,6 +340,9 @@ FedFS may support other network file system protocols in the future.
 %{_mandir}/man8/nsdb-*
 
 %changelog
+* Thu Aug 2 2012 Ian Kent <ikent at redhat.com> - 0.8.0-7
+- some more spec file changes as detailed in the packaging guildlines.
+
 * Thu Aug 2 2012 Ian Kent <ikent at redhat.com> - 0.8.0-6
 - add missing systemd scriplets.
 


More information about the scm-commits mailing list