spec: add missing calls do ldconfig on %post and %postun 72/23672/2
authorRafal Krypa <r.krypa@samsung.com>
Tue, 1 Jul 2014 12:52:07 +0000 (14:52 +0200)
committerRafal Krypa <r.krypa@samsung.com>
Tue, 1 Jul 2014 12:52:07 +0000 (14:52 +0200)
The main package also contains a library, so it should call ldconfig.
Problem reported by rpmlint.

Change-Id: Id9fdd874f725e1793f155d2766b8a25fee2df4db
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
packaging/security-manager.spec

index 469511b..a2f615b 100644 (file)
@@ -83,6 +83,7 @@ ln -s ../security-manager-installer.socket %{buildroot}/%{_unitdir}/sockets.targ
 rm -rf %{buildroot}
 
 %post
+/sbin/ldconfig
 systemctl daemon-reload
 if [ $1 = 1 ]; then
     # installation
@@ -103,6 +104,7 @@ if [ $1 = 0 ]; then
 fi
 
 %postun
+/sbin/ldconfig
 if [ $1 = 0 ]; then
     # unistall
     systemctl daemon-reload