2 # - what should provide GL headers when %{with default_gl}? packages with khronos headers alone?
5 %bcond_with default_gl # build dispatcher as default libGL/libGLX/libGLESv1_CM/libGLESv2 provider
7 Summary: Vendor-neutral OpenGL dispatch library
8 Summary(pl.UTF-8): Niezależna od producenta biblioteka przekazująca wywołania OpenGL
14 #Source0Download: https://github.com/NVIDIA/libglvnd/releases
15 Source0: https://github.com/NVIDIA/libglvnd/archive/v%{version}/%{name}-%{version}.tar.gz
16 # Source0-md5: 564820301daf6b4c7d80cbfbc04efc8c
17 URL: https://github.com/NVIDIA/libglvnd
18 BuildRequires: autoconf >= 2.63
19 BuildRequires: automake >= 1:1.11
20 BuildRequires: libtool
21 BuildRequires: python >= 1:2.7
22 BuildRequires: python-modules >= 1:2.7
23 BuildRequires: xorg-lib-libX11-devel
24 BuildRequires: xorg-lib-libXext-devel
25 BuildRequires: xorg-proto-glproto-devel
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %if %{with default_gl}
29 %define gl_libdir %{_libdir}
31 %define gl_libdir %{_libdir}/%{name}
32 %define noautoprov_files %{_libdir}/%{name}
36 This is a work-in-progress implementation of the vendor-neutral
37 dispatch layer for arbitrating OpenGL API calls between multiple
38 vendors on a per-screen basis, as described by Andy Ritger's OpenGL
40 <https://github.com/aritger/linux-opengl-abi-proposal/blob/master/linux-opengl-abi-proposal.txt>.
42 Currently, only the GLX window-system API and OpenGL are supported,
43 but in the future this library may support EGL and OpenGL ES as well.
45 %description -l pl.UTF-8
46 Ten pakiet to (będąca w trakcie tworzenia) implementacja warstwy
47 przekazującej wywołania dowolnych wywołań API OpenGL między różnymi
48 producentami w zależności od ekranu, zgodnie z propozycją opisaną
50 <https://github.com/aritger/linux-opengl-abi-proposal/blob/master/linux-opengl-abi-proposal.txt>.
52 Obecnie obsługiwane jest tylko API systemu okienek GLX oraz OpenGL, w
53 przyszłości biblioteka może obsługiwać także EGL i OpenGL ES.
56 Summary: Header files for libglvnd interface
57 Summary(pl.UTF-8): Pliki nagłówkowe interfejsu libglvnd
58 Group: Development/Libraries
59 Requires: %{name} = %{version}-%{release}
61 Requires: OpenGL-devel
63 Requires: OpenGL-GLX-devel
66 Header files for libglvnd interface.
68 %description devel -l pl.UTF-8
69 Pliki nagłówkowe interfejsu libglvnd.
72 Summary: OpenGL 4.x interface glvnd libraries
73 Summary(pl.UTF-8): Biblioteki glvnd interfejsu OpenGL 4.x
75 Requires: %{name} = %{version}-%{release}
78 OpenGL 4.x interface glvnd libraries.
80 %description libGL -l pl.UTF-8
81 Biblioteki glvnd interfejsu OpenGL 4.x.
84 Summary: Development files for glvnd OpenGL 4.x interface
85 Summary(pl.UTF-8): Pliki programistyczne glvnd interfejsu OpenGL 4.x
86 Group: Development/Libraries
87 Requires: %{name}-libGL = %{version}-%{release}
88 #Requires: khronos-OpenGL-headers(?)
89 #%{?with_default_gl:Provides: OpenGL-devel = 4.?}
91 %description libGL-devel
92 Development files for glvnd OpenGL 4.x interface.
94 %description libGL-devel -l pl.UTF-8
95 Pliki programistyczne glvnd interfejsu OpenGL 4.x.
98 Summary: OpenGL ES 1, 2, 3 interface glvnd libraries
99 Summary(pl.UTF-8): Biblioteki glvnd interfejsów OpenGL ES 1, 2, 3
101 Requires: %{name} = %{version}-%{release}
104 OpenGL ES 1, 2, 3 interface glvnd libraries.
106 %description libGLES -l pl.UTF-8
107 Biblioteki glvnd interfejsów OpenGL ES 1, 2, 3.
109 %package libGLES-devel
110 Summary: Development files for glvnd OpenGL ES 1, 2, 3 interfaces
111 Summary(pl.UTF-8): Pliki programistyczne glvnd interfejsów OpenGL ES 1, 2, 3
112 Group: Development/Libraries
113 Requires: %{name}-libGLES = %{version}-%{release}
114 #Requires: khronos-OpenGLES-headers(?)
115 %if 0 && %{with default_gl}
116 Provides: OpenGLES-devel
117 Provides: OpenGLESv1-devel = 1.?
118 Provides: OpenGLESv2-devel = 2.?
119 Provides: OpenGLESv3-devel = 3.?
122 %description libGLES-devel
123 Development files for glvnd OpenGL ES 1, 2, 3 interfaces.
125 %description libGLES-devel -l pl.UTF-8
126 Pliki programistyczne glvnd interfejsów OpenGL ES 1, 2, 3.
138 --disable-silent-rules \
139 %{!?with_static_libs:--disable-static}
143 rm -rf $RPM_BUILD_ROOT
146 DESTDIR=$RPM_BUILD_ROOT
148 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
150 %if %{without default_gl}
151 install -d $RPM_BUILD_ROOT%{gl_libdir}
152 %{__mv} $RPM_BUILD_ROOT%{_libdir}/lib{GL,GLESv1_CM,GLESv2}.* $RPM_BUILD_ROOT%{gl_libdir}
156 rm -rf $RPM_BUILD_ROOT
158 %post -p /sbin/ldconfig
159 %postun -p /sbin/ldconfig
161 %post libGL -p /sbin/ldconfig
162 %postun libGL -p /sbin/ldconfig
164 %post libGLES -p /sbin/ldconfig
165 %postun libGLES -p /sbin/ldconfig
168 %defattr(644,root,root,755)
170 %attr(755,root,root) %{_libdir}/libGLdispatch.so.*.*.*
171 %attr(755,root,root) %ghost %{_libdir}/libGLdispatch.so.0
172 %if %{without default_gl}
173 %dir %{_libdir}/%{name}
177 %defattr(644,root,root,755)
178 %attr(755,root,root) %{_libdir}/libGLdispatch.so
180 %{_pkgconfigdir}/libglvnd.pc
183 %defattr(644,root,root,755)
184 %if %{with default_gl}
185 %attr(755,root,root) %{_libdir}/libGL.so.*.*.*
186 %attr(755,root,root) %ghost %{_libdir}/libGL.so.1
187 %attr(755,root,root) %{_libdir}/libGL.so
189 %attr(755,root,root) %{gl_libdir}/libGL.so.*.*.*
190 %attr(755,root,root) %{gl_libdir}/libGL.so.1
191 %attr(755,root,root) %{gl_libdir}/libGL.so
194 %attr(755,root,root) %{_libdir}/libGLX.so.*.*.*
195 %attr(755,root,root) %ghost %{_libdir}/libGLX.so.0
197 %attr(755,root,root) %{_libdir}/libOpenGL.so.*.*.*
198 %attr(755,root,root) %ghost %{_libdir}/libOpenGL.so.0
201 %defattr(644,root,root,755)
202 %attr(755,root,root) %{_libdir}/libGLX.so
203 %attr(755,root,root) %{_libdir}/libOpenGL.so
206 %defattr(644,root,root,755)
207 %if %{with default_gl}
208 %attr(755,root,root) %{_libdir}/libGLESv1_CM.so.*.*.*
209 %attr(755,root,root) %ghost %{_libdir}/libGLESv1_CM.so.1
210 %attr(755,root,root) %{_libdir}/libGLESv2.so.*.*.*
211 %attr(755,root,root) %ghost %{_libdir}/libGLESv2.so.2
213 %attr(755,root,root) %{gl_libdir}/libGLESv1_CM.so.*.*.*
214 %attr(755,root,root) %{gl_libdir}/libGLESv1_CM.so.1
215 %attr(755,root,root) %{gl_libdir}/libGLESv2.so.*.*.*
216 %attr(755,root,root) %{gl_libdir}/libGLESv2.so.2
220 %defattr(644,root,root,755)
221 %attr(755,root,root) %{gl_libdir}/libGLESv1_CM.so
222 %attr(755,root,root) %{gl_libdir}/libGLESv2.so