[packages/Mesa] - separated -dri-devel from -libGL-devel, release 2

qboosh qboosh at pld-linux.org
Sat May 15 08:54:59 CEST 2021


commit 37d71b735d68f2142cb5da6ae10c87c96649a066
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat May 15 08:57:06 2021 +0200

    - separated -dri-devel from -libGL-devel, release 2

 Mesa.spec | 36 ++++++++++++++++++++++++++++--------
 1 file changed, 28 insertions(+), 8 deletions(-)
---
diff --git a/Mesa.spec b/Mesa.spec
index 9a4ad91..7c05342 100644
--- a/Mesa.spec
+++ b/Mesa.spec
@@ -72,7 +72,7 @@ Summary:	Free OpenGL implementation
 Summary(pl.UTF-8):	Wolnodostępna implementacja standardu OpenGL
 Name:		Mesa
 Version:	21.1.0
-Release:	1
+Release:	2
 License:	MIT (core) and others - see license.html file
 Group:		X11/Libraries
 #Source0:	ftp://ftp.freedesktop.org/pub/mesa/mesa-%{version}.tar.xz
@@ -262,11 +262,11 @@ Summary:	Header files for Mesa3D libGL library
 Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki libGL z projektu Mesa3D
 License:	MIT
 Group:		X11/Development/Libraries
-Requires:	libdrm-devel >= %{libdrm_ver}
 %if %{with glvnd}
 Requires:	libglvnd-libGL-devel >= %{libglvnd_ver}
 %else
 Requires:	%{name}-libGL = %{version}-%{release}
+Requires:	libdrm-devel >= %{libdrm_ver}
 Requires:	libxcb-devel >= 1.13
 Requires:	pkgconfig(xcb-dri2) >= 1.8
 Requires:	pkgconfig(xcb-glx) >= 1.8.1
@@ -529,6 +529,25 @@ Khronos platform header file.
 %description khrplatform-devel -l pl.UTF-8
 Plik nagłówkowy platformy Khronos.
 
+%package dri-devel
+Summary:	Direct Rendering Infrastructure interface header file
+Summary(pl.UTF-8):	Plik nagłówkowy interfejsu DRI (Direct Rendering Infrastructure)
+Group:		Development/Libraries
+Requires:	libdrm-devel >= %{libdrm_ver}
+# <GL/gl.h>
+%if %{with glvnd}
+Requires:	libglvnd-libGL-devel >= %{libglvnd_ver}
+Conflicts:	Mesa-libGL-devel < 22.1.0-2
+%else
+Requires:	Mesa-libGL-devel = %{version}-%{release}
+%endif
+
+%description dri-devel
+Direct Rendering Infrastructure interface header file.
+
+%description dri-devel -l pl.UTF-8
+Plik nagłówkowy interfejsu DRI (Direct Rendering Infrastructure).
+
 %package libXvMC-nouveau
 Summary:	Mesa implementation of XvMC API for NVidia adapters
 Summary(pl.UTF-8):	Implementacja Mesa API XvMC dla kart NVidia
@@ -1616,9 +1635,6 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/GL/glxext.h
 %{_pkgconfigdir}/gl.pc
 %endif
-%dir %{_includedir}/GL/internal
-%{_includedir}/GL/internal/dri_interface.h
-%{_pkgconfigdir}/dri.pc
 
 %files libGLES
 %defattr(644,root,root,755)
@@ -1712,14 +1728,18 @@ rm -rf $RPM_BUILD_ROOT
 %{_pkgconfigdir}/xatracker.pc
 %endif
 
-%if %{with egl}
-%if %{without glvnd}
+%if %{with egl} && %{without glvnd}
 %files khrplatform-devel
 %defattr(644,root,root,755)
 %dir %{_includedir}/KHR
 %{_includedir}/KHR/khrplatform.h
 %endif
-%endif
+
+%files dri-devel
+%defattr(644,root,root,755)
+%dir %{_includedir}/GL/internal
+%{_includedir}/GL/internal/dri_interface.h
+%{_pkgconfigdir}/dri.pc
 
 ### drivers: XvMC
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/Mesa.git/commitdiff/37d71b735d68f2142cb5da6ae10c87c96649a066



More information about the pld-cvs-commit mailing list