Use ldconfig scriptlet macros

This commit is contained in:
Adam Jackson 2018-06-29 18:58:54 -04:00
parent 952eceed16
commit a3c47870c3

View File

@ -50,7 +50,7 @@
Name: mesa Name: mesa
Summary: Mesa graphics libraries Summary: Mesa graphics libraries
Version: 18.1.2 Version: 18.1.2
Release: 2%{?rctag:.%{rctag}}%{?dist} Release: 3%{?rctag:.%{rctag}}%{?dist}
License: MIT License: MIT
URL: http://www.mesa3d.org URL: http://www.mesa3d.org
@ -508,14 +508,14 @@ popd
%{_includedir}/GLES3/gl32.h %{_includedir}/GLES3/gl32.h
%{_libdir}/pkgconfig/glesv2.pc %{_libdir}/pkgconfig/glesv2.pc
%post libglapi -p /sbin/ldconfig %ldconfig_post libglapi
%postun libglapi -p /sbin/ldconfig %ldconfig_postun libglapi
%files libglapi %files libglapi
%{_libdir}/libglapi.so.0 %{_libdir}/libglapi.so.0
%{_libdir}/libglapi.so.0.* %{_libdir}/libglapi.so.0.*
%post libOSMesa -p /sbin/ldconfig %ldconfig_post libOSMesa
%postun libOSMesa -p /sbin/ldconfig %ldconfig_postun libOSMesa
%files libOSMesa %files libOSMesa
%{_libdir}/libOSMesa.so.8* %{_libdir}/libOSMesa.so.8*
%files libOSMesa-devel %files libOSMesa-devel
@ -524,8 +524,8 @@ popd
%{_libdir}/libOSMesa.so %{_libdir}/libOSMesa.so
%{_libdir}/pkgconfig/osmesa.pc %{_libdir}/pkgconfig/osmesa.pc
%post libgbm -p /sbin/ldconfig %ldconfig_post libgbm
%postun libgbm -p /sbin/ldconfig %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 +535,8 @@ popd
%{_libdir}/pkgconfig/gbm.pc %{_libdir}/pkgconfig/gbm.pc
%if %{?with_wayland_egl} %if %{?with_wayland_egl}
%post libwayland-egl -p /sbin/ldconfig %ldconfig_post libwayland-egl
%postun libwayland-egl -p /sbin/ldconfig %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 +546,8 @@ popd
%endif %endif
%if 0%{?with_xa} %if 0%{?with_xa}
%post libxatracker -p /sbin/ldconfig %ldconfig_post libxatracker
%postun libxatracker -p /sbin/ldconfig %ldconfig_postun libxatracker
%files libxatracker %files libxatracker
%if %{with_hardware} %if %{with_hardware}
%{_libdir}/libxatracker.so.2 %{_libdir}/libxatracker.so.2
@ -565,8 +565,8 @@ popd
%endif %endif
%if 0%{?with_opencl} %if 0%{?with_opencl}
%post libOpenCL -p /sbin/ldconfig %ldconfig_post libOpenCL
%postun libOpenCL -p /sbin/ldconfig %ldconfig_postun libOpenCL
%files libOpenCL %files libOpenCL
%{_libdir}/libMesaOpenCL.so.* %{_libdir}/libMesaOpenCL.so.*
%{_sysconfdir}/OpenCL/vendors/mesa.icd %{_sysconfdir}/OpenCL/vendors/mesa.icd
@ -665,6 +665,9 @@ popd
%{_includedir}/vulkan/ %{_includedir}/vulkan/
%changelog %changelog
* Fri Jun 29 2018 Adam Jackson <ajax@redhat.com> - 18.1.2-3
- Use ldconfig scriptlet macros
* Mon Jun 18 2018 Adam Jackson <ajax@redhat.com> - 18.1.2-2 * Mon Jun 18 2018 Adam Jackson <ajax@redhat.com> - 18.1.2-2
- Build mesa-vulkan-drivers everywhere - Build mesa-vulkan-drivers everywhere
- Build actual vulkan drivers on all but s390x - Build actual vulkan drivers on all but s390x