commit d0e14198b562d6cfc96d94b809863578094ef945
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Fri Oct 12 10:33:59 2018 +0100
Update scriptlets and buildroot macro
mjpegtools.spec | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/mjpegtools.spec b/mjpegtools.spec
index 4c2a962..ff0d30c 100644
--- a/mjpegtools.spec
+++ b/mjpegtools.spec
@@ -118,9 +118,9 @@ done
%install
%make_install
-rm -f $RPM_BUILD_ROOT{%{_infodir}/dir,%{_libdir}/lib*.la}
+rm -f %buildroot{%{_infodir}/dir,%{_libdir}/lib*.la}
# too broken/outdated to be useful in 1.[89].0 (and would come with dep chain)
-rm $RPM_BUILD_ROOT%{_bindir}/mpegtranscode
+rm %buildroot%{_bindir}/mpegtranscode
%post
@@ -130,13 +130,9 @@ rm $RPM_BUILD_ROOT%{_bindir}/mpegtranscode
[ $1 -eq 0 ] && \
/sbin/install-info --delete %{_infodir}/mjpeg-howto.info %{_infodir}/dir || :
-%post libs -p /sbin/ldconfig
+%ldconfig_scriptlets libs
-%postun libs -p /sbin/ldconfig
-
-%post lav -p /sbin/ldconfig
-
-%postun lav -p /sbin/ldconfig
+%ldconfig_scriptlets lav
%files