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 15, 2016
1 parent 9391e0c commit ef4cd5f
Showing 1 changed file with 11 additions and 22 deletions.
33 changes: 11 additions & 22 deletions ceph.spec.in
Expand Up @@ -1237,11 +1237,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 @@ -1276,11 +1274,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 All @@ -1301,8 +1297,7 @@ fi
mkdir -p /usr/lib64/qemu/
ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1

%postun -n librbd1
/sbin/ldconfig
%postun -n librbd1 -p /sbin/ldconfig

%files -n librbd-devel
%defattr(-,root,root,-)
Expand All @@ -1319,11 +1314,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 @@ -1346,11 +1339,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 @@ -1418,11 +1409,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 ef4cd5f

Please sign in to comment.