From 92972ffe7db6cbd64f320eb492e6ff600bced667 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 1 Jul 2018 12:22:53 +0100 Subject: [PATCH] Use simpler %ldconfig macro Signed-off-by: Igor Gnatenko --- mesa.spec | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/mesa.spec b/mesa.spec index 1605789..b523c4d 100644 --- a/mesa.spec +++ b/mesa.spec @@ -508,14 +508,12 @@ popd %{_includedir}/GLES3/gl32.h %{_libdir}/pkgconfig/glesv2.pc -%ldconfig_post libglapi -%ldconfig_postun libglapi +%ldconfig_scriptlets libglapi %files libglapi %{_libdir}/libglapi.so.0 %{_libdir}/libglapi.so.0.* -%ldconfig_post libOSMesa -%ldconfig_postun libOSMesa +%ldconfig_scriptlets libOSMesa %files libOSMesa %{_libdir}/libOSMesa.so.8* %files libOSMesa-devel @@ -524,8 +522,7 @@ popd %{_libdir}/libOSMesa.so %{_libdir}/pkgconfig/osmesa.pc -%ldconfig_post libgbm -%ldconfig_postun libgbm +%ldconfig_scriptlets libgbm %files libgbm %{_libdir}/libgbm.so.1 %{_libdir}/libgbm.so.1.* @@ -535,8 +532,7 @@ popd %{_libdir}/pkgconfig/gbm.pc %if %{?with_wayland_egl} -%ldconfig_post libwayland-egl -%ldconfig_postun libwayland-egl +%ldconfig_scriptlets libwayland-egl %files libwayland-egl %{_libdir}/libwayland-egl.so.1 %{_libdir}/libwayland-egl.so.1.* @@ -546,8 +542,7 @@ popd %endif %if 0%{?with_xa} -%ldconfig_post libxatracker -%ldconfig_postun libxatracker +%ldconfig_scriptlets libxatracker %files libxatracker %if %{with_hardware} %{_libdir}/libxatracker.so.2 @@ -565,8 +560,7 @@ popd %endif %if 0%{?with_opencl} -%ldconfig_post libOpenCL -%ldconfig_postun libOpenCL +%ldconfig_scriptlets libOpenCL %files libOpenCL %{_libdir}/libMesaOpenCL.so.* %{_sysconfdir}/OpenCL/vendors/mesa.icd