Use simpler %ldconfig macro

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-07-01 12:22:53 +01:00
parent 37e222b99d
commit 92972ffe7d
No known key found for this signature in database
GPG key ID: 695714BD1BBC5F4C

View file

@ -508,14 +508,12 @@ popd
%{_includedir}/GLES3/gl32.h %{_includedir}/GLES3/gl32.h
%{_libdir}/pkgconfig/glesv2.pc %{_libdir}/pkgconfig/glesv2.pc
%ldconfig_post libglapi %ldconfig_scriptlets libglapi
%ldconfig_postun libglapi
%files libglapi %files libglapi
%{_libdir}/libglapi.so.0 %{_libdir}/libglapi.so.0
%{_libdir}/libglapi.so.0.* %{_libdir}/libglapi.so.0.*
%ldconfig_post libOSMesa %ldconfig_scriptlets libOSMesa
%ldconfig_postun libOSMesa
%files libOSMesa %files libOSMesa
%{_libdir}/libOSMesa.so.8* %{_libdir}/libOSMesa.so.8*
%files libOSMesa-devel %files libOSMesa-devel
@ -524,8 +522,7 @@ popd
%{_libdir}/libOSMesa.so %{_libdir}/libOSMesa.so
%{_libdir}/pkgconfig/osmesa.pc %{_libdir}/pkgconfig/osmesa.pc
%ldconfig_post libgbm %ldconfig_scriptlets libgbm
%ldconfig_postun libgbm
%files libgbm %files libgbm
%{_libdir}/libgbm.so.1 %{_libdir}/libgbm.so.1
%{_libdir}/libgbm.so.1.* %{_libdir}/libgbm.so.1.*
@ -535,8 +532,7 @@ popd
%{_libdir}/pkgconfig/gbm.pc %{_libdir}/pkgconfig/gbm.pc
%if %{?with_wayland_egl} %if %{?with_wayland_egl}
%ldconfig_post libwayland-egl %ldconfig_scriptlets libwayland-egl
%ldconfig_postun libwayland-egl
%files libwayland-egl %files libwayland-egl
%{_libdir}/libwayland-egl.so.1 %{_libdir}/libwayland-egl.so.1
%{_libdir}/libwayland-egl.so.1.* %{_libdir}/libwayland-egl.so.1.*
@ -546,8 +542,7 @@ popd
%endif %endif
%if 0%{?with_xa} %if 0%{?with_xa}
%ldconfig_post libxatracker %ldconfig_scriptlets libxatracker
%ldconfig_postun libxatracker
%files libxatracker %files libxatracker
%if %{with_hardware} %if %{with_hardware}
%{_libdir}/libxatracker.so.2 %{_libdir}/libxatracker.so.2
@ -565,8 +560,7 @@ popd
%endif %endif
%if 0%{?with_opencl} %if 0%{?with_opencl}
%ldconfig_post libOpenCL %ldconfig_scriptlets libOpenCL
%ldconfig_postun libOpenCL
%files libOpenCL %files libOpenCL
%{_libdir}/libMesaOpenCL.so.* %{_libdir}/libMesaOpenCL.so.*
%{_sysconfdir}/OpenCL/vendors/mesa.icd %{_sysconfdir}/OpenCL/vendors/mesa.icd