fix(mesa): Deprecate libglapi (#3807) (#3861)

* Pull in upstream changes

Signed-off-by: Gilver <rockgrub@disroot.org>

* Bump release?

Signed-off-by: Gilver <rockgrub@disroot.org>

---------

Signed-off-by: Gilver <rockgrub@disroot.org>
(cherry picked from commit 86f887dcdc)
Signed-off-by: RockGrub <RockGrub@users.noreply.github.com>

# Conflicts:
#	anda/lib/mesa/mesa.spec
This commit is contained in:
Gilver
2025-03-11 00:13:44 -05:00
committed by GitHub
parent 138d56913d
commit 5873e1f7ac
+3 -20
View File
@@ -75,9 +75,8 @@ Summary: Mesa graphics libraries
# This should not break anything by default as the Mesa stream is ***EXPLICITLY***
# disabled by default, and has to be enabled manually. See `terra/release/terra-mesa.repo` for details.
Epoch: 1
%global ver 25.0.0-rc3
Version: %{lua:ver = string.gsub(rpm.expand("%{ver}"), "-", "~"); print(ver)}
Release: 3%?dist
Version: 25.0.1
Release: 2%?dist
License: MIT AND BSD-3-Clause AND SGI-B-2.0
URL: http://www.mesa3d.org
@@ -261,6 +260,7 @@ Recommends: %{name}-va-drivers%{?_isa}
Summary: Mesa-based VA-API video acceleration drivers
Requires: %{name}-filesystem%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Obsoletes: %{name}-vaapi-drivers < 22.2.0-5
Obsoletes: %{name}-libglapi < 25.0.0~rc2-1
%description va-drivers
%{summary}.
@@ -332,18 +332,6 @@ Provides: libxatracker-devel%{?_isa}
%{summary}.
%endif
%package libglapi
Summary: Mesa shared glapi
Provides: libglapi
Provides: libglapi%{?_isa}
# If mesa-dri-drivers are installed, they must match in version. This is here to prevent using
# older mesa-dri-drivers together with a newer mesa-libglapi or its dependants.
# See https://bugzilla.redhat.com/show_bug.cgi?id=2193135 .
Requires: (%{name}-dri-drivers%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} if %{name}-dri-drivers%{?_isa})
%description libglapi
%{summary}.
%if 0%{?with_opencl}
%package libOpenCL
Summary: Mesa OpenCL runtime library
@@ -507,7 +495,6 @@ popd
%dir %{_includedir}/GL/internal
%{_includedir}/GL/internal/dri_interface.h
%{_libdir}/pkgconfig/dri.pc
%{_libdir}/libglapi.so
%files libEGL
%{_datadir}/glvnd/egl_vendor.d/50_mesa.json
@@ -517,10 +504,6 @@ popd
%{_includedir}/EGL/eglext_angle.h
%{_includedir}/EGL/eglmesaext.h
%files libglapi
%{_libdir}/libglapi.so.0
%{_libdir}/libglapi.so.0.*
%files libOSMesa
%{_libdir}/libOSMesa.so.8*
%files libOSMesa-devel