[packages/Mesa] - added opengl bcond
qboosh
qboosh at pld-linux.org
Sat May 30 12:25:01 CEST 2026
commit 5f6da701f7208907532208e485d44622c2ad6774
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri May 29 19:04:32 2026 +0200
- added opengl bcond
Mesa.spec | 20 +++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/Mesa.spec b/Mesa.spec
index 869aaf0..8a5d742 100644
--- a/Mesa.spec
+++ b/Mesa.spec
@@ -9,6 +9,7 @@
%bcond_without gallium_rusticl # gallium OpenCL frontend
%bcond_without gallium_zink # gallium zink driver (based on vulkan)
%bcond_without egl # EGL libraries
+%bcond_without opengl # OpenGL (desktop/ES) and DRI libraries
%bcond_without gbm # Graphics Buffer Manager
%bcond_without glvnd # OpenGL vendor neutral dispatcher support
%bcond_without va # VA library
@@ -608,7 +609,9 @@ Sterownik X.org DRI Gallium.
Summary: VA driver for Gallium State Tracker
Summary(pl.UTF-8): Sterowniki VA do Gallium
Group: Libraries
+%if %{with opengl}
Requires: %{name}-libgallium%{?_isa} = %{version}-%{release}
+%endif
Requires: libva(va-api)%{?_isa} >= %{va_api_major}.%{va_api_minor}
%if %{with va}
%if %{with gallium_nouveau}
@@ -918,14 +921,15 @@ export RUSTFLAGS="%{rpmrustflags} --target=%rust_target"
%{?with_gallium_rusticl:-Dgallium-rusticl=true -Drust_std=2021} \
-Dgallium-va=%{__enabled_disabled va} \
-Dgbm=%{__enabled_disabled gbm} \
- -Dgles1=enabled \
- -Dgles2=enabled \
+ -Dgles1=%{__enabled_disabled opengl} \
+ -Dgles2=%{__enabled_disabled opengl} \
-Dglvnd=%{__enabled_disabled glvnd} \
-Dintel-rt=%{__enabled_disabled intel_rt} \
-Dlibunwind=enabled \
-Dllvm=enabled \
-Dlmsensors=%{__enabled_disabled lm_sensors} \
-Dmicrosoft-clc=disabled \
+ -Dopengl=%{__true_false opengl} \
-Dplatforms=x11%{?with_wayland:,wayland} \
-Dshader-cache=enabled \
-Dshared-llvm=enabled \
@@ -957,7 +961,7 @@ rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_libdir}/gbm
%endif
-%if %{without glvnd}
+%if %{with opengl} && %{without glvnd}
# remove "OS ABI: Linux 2.4.20" tag, so private copies (nvidia or fglrx),
# set up via /etc/ld.so.conf.d/*.conf will be preferred over this
strip -R .note.ABI-tag $RPM_BUILD_ROOT%{_libdir}/libGL.so.*.*
@@ -1012,6 +1016,7 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/EGL/eglmesaext.h
%endif
+%if %{with opengl}
%files libGL
%defattr(644,root,root,755)
%doc docs/{*.rst,README.UVD,features.txt,relnotes/*.rst}
@@ -1061,6 +1066,7 @@ rm -rf $RPM_BUILD_ROOT
%{_pkgconfigdir}/glesv1_cm.pc
%{_pkgconfigdir}/glesv2.pc
%endif
+%endif
%if %{with gallium_rusticl}
%files Rusticl-icd
@@ -1071,9 +1077,11 @@ rm -rf $RPM_BUILD_ROOT
%ghost %{_libdir}/libRusticlOpenCL.so.1
%endif
+%if %{with opengl}
%files libgallium
%defattr(644,root,root,755)
%{_libdir}/libgallium-%{version}.so
+%endif
%if %{with gbm}
%files libgbm
@@ -1101,11 +1109,13 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/KHR/khrplatform.h
%endif
+%if %{with opengl}
%files dri-devel
%defattr(644,root,root,755)
%dir %{_includedir}/GL/internal
%{_includedir}/GL/internal/dri_interface.h
%{_pkgconfigdir}/dri.pc
+%endif
%if %{with gallium}
%files dri-driver
@@ -1194,6 +1204,10 @@ rm -rf $RPM_BUILD_ROOT
%if %{with va}
%files -n libva-driver-gallium
%defattr(644,root,root,755)
+%if %{without opengl}
+%{_libdir}/libva/dri/gallium_drv_video.so
+%endif
+# symlinks to libgallium or gallium_drv_video
%if %{with gallium_radeon}
%{_libdir}/libva/dri/r600_drv_video.so
%{_libdir}/libva/dri/radeonsi_drv_video.so
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/Mesa.git/commitdiff/dd7d9c63aee270e32ceffc2e414c7e89d2a5cf0a
More information about the pld-cvs-commit
mailing list