-
Notifications
You must be signed in to change notification settings - Fork 2
/
mesa.spec
481 lines (360 loc) · 10.2 KB
/
mesa.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
#
# Do NOT Edit the Auto-generated Part!
# Generated by: spectacle version 0.23
#
# >> macros
# << macros
Name: mesa
Summary: Mesa graphics libraries
Version: 8.0.1
Release: 0
Group: System/Libraries
License: MIT
URL: http://www.mesa3d.org/beta
Source0: MesaLib-%{version}.tar.bz2
Source1: mesa-rpmlintrc
Source100: mesa.yaml
Patch0: mesa-7.11-git-notimestamping.patch
BuildRequires: pkgconfig(glproto)
BuildRequires: pkgconfig(dri2proto) >= 1.1
BuildRequires: pkgconfig(xproto)
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(xxf86vm)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xfixes)
BuildRequires: pkgconfig(xdamage)
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(xmu)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(talloc)
BuildRequires: pkgconfig(libudev) >= 160
BuildRequires: pkgconfig autoconf automake
BuildRequires: expat-devel >= 2.0
BuildRequires: python
BuildRequires: libxml2-python
BuildRequires: bison
BuildRequires: flex
BuildRequires: makedepend
BuildRequires: llvm-devel
%description
Mesa is an open-source implementation of the OpenGL specification -
a system for rendering interactive 3D graphics.
%package libglapi
Summary: Mesa shared gl api library
Group: System/Libraries
Requires: %{name} = %{version}-%{release}
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
%description libglapi
Mesa shared gl api library.
%package libGLESv1
Summary: Mesa libGLESv1 runtime libraries
Group: System/Libraries
Requires: %{name} = %{version}-%{release}
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Provides: libGLESv1 = %{version}-%{release}
%description libGLESv1
Mesa libGLESv1 runtime library.
%package libGLESv2
Summary: Mesa libGLESv2 runtime libraries
Group: System/Libraries
Requires: %{name} = %{version}-%{release}
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Provides: libGLESv2 = %{version}-%{release}
%description libGLESv2
Mesa libGLESv2 runtime library.
%package libGLESv2-compat
Summary: Mesa libGLESv2 runtime compatibility library
Group: System/Libraries
Requires: %{name} = %{version}-%{release}
Requires: libGLESv2.so.2
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Provides: libGLESv2.so
%description libGLESv2-compat
Mesa libGLESv2 runtime compatibility library.
%package libEGL
Summary: Mesa libEGL runtime libraries and DRI drivers
Group: System/Libraries
Requires: %{name} = %{version}-%{release}
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Provides: libEGL = %{version}-%{release}
%description libEGL
Mesa libEGL runtime library.
%package libEGL-compat
Summary: Mesa libEGL runtime compatibility library
Group: System/Libraries
Requires: %{name} = %{version}-%{release}
Requires: libEGL.so.1
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Provides: libEGL.so
%description libEGL-compat
Mesa libEGL runtime compatibility library.
%package libglapi-devel
Summary: Mesa libglapi development package
Group: System/Libraries
Requires: %{name} = %{version}-%{release}
Requires: mesa-libglapi = %{version}-%{release}
Provides: libglapi-devel
%description libglapi-devel
Mesa libglapi development package.
%package libGLESv1-devel
Summary: Mesa libGLESv1 development package
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: mesa-libGLESv1 = %{version}-%{release}
Provides: libGLESv1-devel
%description libGLESv1-devel
Mesa libGLESv1 development packages
%package libGLESv2-devel
Summary: Mesa libGLESv2 development package
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: mesa-libGLESv2 = %{version}-%{release}
Provides: libGLESv2-devel
Obsoletes: mesa-libGLESv2-compat
%description libGLESv2-devel
Mesa libGLESv2 development packages
%package libEGL-devel
Summary: Mesa libEGL development package
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: mesa-libEGL = %{version}-%{release}
Provides: libEGL-devel
Obsoletes: mesa-libEGL-compat
%description libEGL-devel
Mesa libEGL development packages
%package libGL
Summary: Mesa libGL runtime libraries and DRI drivers
Group: System/Libraries
Requires: %{name} = %{version}-%{release}
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Provides: libGL = %{version}-%{release}
%description libGL
Mesa libGL runtime library.
%package libGL-devel
Summary: Mesa libGL development package
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: mesa-libGL = %{version}-%{release}
Requires: libX11-devel
Provides: libGL-devel
%description libGL-devel
Mesa libGL development packages
%package libGLU-devel
Summary: Mesa libGLU development package
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: mesa-libGLU = %{version}-%{release}
Requires: libGL-devel
Provides: libGLU-devel
%description libGLU-devel
Mesa libGLU development packages
%package libGLU
Summary: Mesa libGLU runtime library
Group: System/Libraries
Requires: %{name} = %{version}-%{release}
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
%description libGLU
Mesa libGLU runtime libraries
%package dri-drivers-devel
Summary: Mesa-based DRI development files
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description dri-drivers-devel
Mesa-based DRI driver development files.
%package dri-swrast-driver
Summary: Mesa-based DRI drivers
Group: Graphics/Display and Graphics Adaptation
Requires: %{name} = %{version}-%{release}
Provides: mesa-dri-drivers = %{version}-%{release}
%description dri-swrast-driver
Mesa-based swrast DRI driver.
%prep
%setup -q -n Mesa-%{version} -b1
# mesa-7.11-git-notimestamping.patch
%patch0 -p1
# >> setup
# << setup
%build
# >> build pre
# << build pre
%reconfigure --disable-static \
--with-x \
--enable-gallium-llvm \
--with-dri-drivers=swrast \
--with-state-trackers=egl \
--enable-glew=no \
--enable-glw=no \
--enable-glut=no \
--enable-gles1=yes \
--enable-gles2=yes \
--enable-egl=yes \
--enable-gallium-egl \
--enable-osmesa=no \
--with-gallium-drivers=swrast \
--with-egl-platforms=x11 \
--enable-glx-tls \
--enable-glx=yes \
--enable-dri
make %{?jobs:-j%jobs}
# >> build post
# << build post
%install
rm -rf %{buildroot}
# >> install pre
# << install pre
%make_install
# >> install post
# strip out undesirable headers
pushd $RPM_BUILD_ROOT%{_includedir}/GL
rm [a-fh-np-wyz]*.h
rm osmesa.h
popd
#remove egl_glx.so, which is broken
#pushd $RPM_BUILD_ROOT%{_libdir}
#rm -f egl/egl_glx.so
#popd
# << install post
%post libglapi -p /sbin/ldconfig
%postun libglapi -p /sbin/ldconfig
%post libGLESv1 -p /sbin/ldconfig
%postun libGLESv1 -p /sbin/ldconfig
%post libGLESv2 -p /sbin/ldconfig
%postun libGLESv2 -p /sbin/ldconfig
%post libGLESv2-compat -p /sbin/ldconfig
%postun libGLESv2-compat -p /sbin/ldconfig
%post libEGL -p /sbin/ldconfig
%postun libEGL -p /sbin/ldconfig
%post libEGL-compat -p /sbin/ldconfig
%postun libEGL-compat -p /sbin/ldconfig
%post libGL -p /sbin/ldconfig
%postun libGL -p /sbin/ldconfig
%post libGLU -p /sbin/ldconfig
%postun libGLU -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
# >> files
%{_libdir}/egl/egl_gallium.so
%{_libdir}/egl/st_GL.so
# << files
%files libglapi
%defattr(-,root,root,-)
# >> files libglapi
%{_libdir}/libglapi.so.0
%{_libdir}/libglapi.so.0.*
# << files libglapi
%files libGLESv1
%defattr(-,root,root,-)
# >> files libGLESv1
%{_libdir}/libGLESv1_CM.so.1
%{_libdir}/libGLESv1_CM.so.1.1.0
# << files libGLESv1
%files libGLESv2
%defattr(-,root,root,-)
# >> files libGLESv2
%{_libdir}/libGLESv2.so.2
%{_libdir}/libGLESv2.so.2.0.0
# << files libGLESv2
%files libGLESv2-compat
%defattr(-,root,root,-)
# >> files libGLESv2-compat
%{_libdir}/libGLESv2.so
# << files libGLESv2-compat
%files libEGL
%defattr(-,root,root,-)
# >> files libEGL
%{_libdir}/libEGL.so.1
%{_libdir}/libEGL.so.1.0
# << files libEGL
%files libEGL-compat
%defattr(-,root,root,-)
# >> files libEGL-compat
%{_libdir}/libEGL.so
# << files libEGL-compat
%files libglapi-devel
%defattr(-,root,root,-)
# >> files libglapi-devel
%{_libdir}/libglapi.so
# << files libglapi-devel
%files libGLESv1-devel
%defattr(-,root,root,-)
# >> files libGLESv1-devel
%{_libdir}/libGLESv1_CM.so
%{_includedir}/GLES/egl.h
%{_includedir}/GLES/gl.h
%{_includedir}/GLES/glext.h
%{_includedir}/GLES/glplatform.h
%{_libdir}/pkgconfig/glesv1_cm.pc
# << files libGLESv1-devel
%files libGLESv2-devel
%defattr(-,root,root,-)
# >> files libGLESv2-devel
%{_libdir}/libGLESv2.so
%{_includedir}/GLES2/gl2.h
%{_includedir}/GLES2/gl2ext.h
%{_includedir}/GLES2/gl2platform.h
%{_libdir}/pkgconfig/glesv2.pc
# << files libGLESv2-devel
%files libEGL-devel
%defattr(-,root,root,-)
# >> files libEGL-devel
%{_libdir}/libEGL.so
%dir %{_includedir}/EGL
%{_includedir}/EGL/egl.h
%{_includedir}/EGL/eglext.h
%{_includedir}/EGL/eglplatform.h
%{_includedir}/EGL/eglmesaext.h
%dir %{_includedir}/KHR
%{_includedir}/KHR/khrplatform.h
%{_libdir}/pkgconfig/egl.pc
# << files libEGL-devel
%files libGL
%defattr(-,root,root,-)
# >> files libGL
%{_libdir}/libGL.so.*
# << files libGL
%files libGL-devel
%defattr(-,root,root,-)
# >> files libGL-devel
%{_includedir}/GL/gl.h
%{_includedir}/GL/gl_mangle.h
%{_includedir}/GL/glext.h
%{_includedir}/GL/glx.h
%{_includedir}/GL/glx_mangle.h
%{_includedir}/GL/glxext.h
%dir %{_includedir}/GL/internal
%{_includedir}/GL/internal/dri_interface.h
%{_libdir}/libGL.so
%{_libdir}/pkgconfig/gl.pc
# << files libGL-devel
%files libGLU-devel
%defattr(-,root,root,-)
# >> files libGLU-devel
%{_libdir}/libGLU.so
%{_libdir}/pkgconfig/glu.pc
%{_includedir}/GL/glu.h
%{_includedir}/GL/glu_mangle.h
# << files libGLU-devel
%files libGLU
%defattr(-,root,root,-)
# >> files libGLU
%{_libdir}/libGLU.so.1
%{_libdir}/libGLU.so.1.3.*
# << files libGLU
%files dri-drivers-devel
%defattr(-,root,root,-)
# >> files dri-drivers-devel
%{_libdir}/pkgconfig/dri.pc
# << files dri-drivers-devel
%files dri-swrast-driver
%defattr(-,root,root,-)
# >> files dri-swrast-driver
%{_libdir}/dri/swrast_dri.so
# << files dri-swrast-driver