From f61e2432d6d3fda26247fbea25c3e2cab50ed4c2 Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Tue, 9 Aug 2016 11:48:07 +0200 Subject: [PATCH] rpm: do not unnecessarily spawn shells for scriptlets Signed-off-by: Nathan Cutler --- ceph.spec.in | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/ceph.spec.in b/ceph.spec.in index d670e1da03247..947e4dce9d93c 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1204,11 +1204,9 @@ fi %{_libdir}/librados_tp.so.* %endif -%post -n librados2 -/sbin/ldconfig +%post -n librados2 -p /sbin/ldconfig -%postun -n librados2 -/sbin/ldconfig +%postun -n librados2 -p /sbin/ldconfig %files -n librados-devel %defattr(-,root,root,-) @@ -1238,11 +1236,9 @@ fi %defattr(-,root,root,-) %{_libdir}/libradosstriper.so.* -%post -n libradosstriper1 -/sbin/ldconfig +%post -n libradosstriper1 -p /sbin/ldconfig -%postun -n libradosstriper1 -/sbin/ldconfig +%postun -n libradosstriper1 -p /sbin/ldconfig %files -n libradosstriper-devel %defattr(-,root,root,-) @@ -1281,11 +1277,9 @@ ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1 %defattr(-,root,root,-) %{_libdir}/librgw.so.* -%post -n librgw2 -/sbin/ldconfig +%post -n librgw2 -p /sbin/ldconfig -%postun -n librgw2 -/sbin/ldconfig +%postun -n librgw2 -p /sbin/ldconfig %files -n librgw-devel %defattr(-,root,root,-) @@ -1303,11 +1297,9 @@ ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1 %defattr(-,root,root,-) %{_libdir}/libcephfs.so.* -%post -n libcephfs1 -/sbin/ldconfig +%post -n libcephfs1 -p /sbin/ldconfig -%postun -n libcephfs1 -/sbin/ldconfig +%postun -n libcephfs1 -p /sbin/ldconfig %files -n libcephfs-devel %defattr(-,root,root,-) @@ -1361,11 +1353,9 @@ ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1 %defattr(-,root,root,-) %{_libdir}/libcephfs_jni.so.* -%post -n libcephfs_jni1 -/sbin/ldconfig +%post -n libcephfs_jni1 -p /sbin/ldconfig -%postun -n libcephfs_jni1 -/sbin/ldconfig +%postun -n libcephfs_jni1 -p /sbin/ldconfig %files -n libcephfs_jni-devel %defattr(-,root,root,-)