use macros for ldconfig scriptlets

This commit is contained in:
Miroslav Lichvar 2018-05-22 13:53:25 +02:00
parent f5a0c3db7c
commit 50da251339
1 changed files with 2 additions and 2 deletions

View File

@ -101,13 +101,13 @@ find $RPM_BUILD_ROOT%{_libdir} -name '*.go' -exec touch -r "%{_specdir}/guile.sp
make %{?_smp_mflags} check make %{?_smp_mflags} check
%post %post
/sbin/ldconfig %?ldconfig
for i in guile r5rs; do for i in guile r5rs; do
/sbin/install-info %{_infodir}/${i}.info.gz %{_infodir}/dir &> /dev/null /sbin/install-info %{_infodir}/${i}.info.gz %{_infodir}/dir &> /dev/null
done done
: :
%postun -p /sbin/ldconfig %ldconfig_postun
%preun %preun
if [ "$1" = 0 ]; then if [ "$1" = 0 ]; then