From 2485d124187b75a78337b20f882a21f4e53bcd00 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 24 Jan 2008 01:36:30 +0000 Subject: [PATCH] - invoke fix-info-dir via /sbin/postshell where possible to avoid extra /bin/sh dep Changed files: commoncpp2.spec -> 1.17 --- commoncpp2.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commoncpp2.spec b/commoncpp2.spec index a5a44a6..ac98f33 100644 --- a/commoncpp2.spec +++ b/commoncpp2.spec @@ -89,11 +89,11 @@ rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig -%post devel -[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 +%post devel -p /sbin/postshell +-/usr/sbin/fix-info-dir -c %{_infodir} -%postun devel -[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 +%postun devel -p /sbin/postshell +-/usr/sbin/fix-info-dir -c %{_infodir} %files %defattr(644,root,root,755) -- 2.43.0