Skip to content

Commit

Permalink
rpm: do not unnecessarily spawn shells for scriptlets
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Cutler <ncutler@suse.com>
  • Loading branch information
smithfarm committed Aug 9, 2016
1 parent b7b0412 commit f61e243
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions ceph.spec.in
Expand Up @@ -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,-)
Expand Down Expand Up @@ -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,-)
Expand Down Expand Up @@ -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,-)
Expand All @@ -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,-)
Expand Down Expand Up @@ -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,-)
Expand Down

0 comments on commit f61e243

Please sign in to comment.