1 |
rtp |
18133 |
%define bootstrap 0 |
2 |
|
|
%{?_without_bootstrap: %global bootstrap 0} |
3 |
|
|
%{?_with_bootstrap: %global bootstrap 1} |
4 |
|
|
|
5 |
tv |
135155 |
%if "%distro_section" == "tainted" |
6 |
|
|
%global build_plf 1 |
7 |
|
|
%else |
8 |
|
|
%global build_plf 0 |
9 |
|
|
%endif |
10 |
|
|
|
11 |
pterjan |
5340 |
# (cg) Cheater... |
12 |
|
|
%define Werror_cflags %nil |
13 |
|
|
|
14 |
|
|
# (aco) Needed for the dri drivers |
15 |
|
|
%define _disable_ld_no_undefined 1 |
16 |
|
|
|
17 |
cjw |
398478 |
# http://cgit.freedesktop.org/mesa/mesa/commit/?h=9.1&id=38e728498b8ef63bb7dce77c64af11c98ec2efa4 |
18 |
tmb |
400079 |
%define git 0 |
19 |
tv |
469145 |
%define git_branch 9.2 |
20 |
mikala |
112356 |
%define with_hardware 1 |
21 |
|
|
|
22 |
blino |
289603 |
%define opengl_ver 3.0 |
23 |
blino |
289598 |
|
24 |
tv |
472610 |
%define relc 0 |
25 |
pterjan |
5340 |
%define name mesa |
26 |
tv |
556550 |
%define fversion 10.0.1 |
27 |
|
|
%define version 10.0.1 |
28 |
tmb |
564877 |
%define rel 2 |
29 |
pterjan |
5340 |
|
30 |
|
|
%define release %mkrel %{rel} |
31 |
|
|
%define src_type tar.bz2 |
32 |
tv |
173693 |
#define vsuffix %{expand:} |
33 |
|
|
%define vsuffix %nil |
34 |
pterjan |
5340 |
|
35 |
|
|
%if %{relc} |
36 |
|
|
%define release %mkrel 0.rc%{relc}.%{rel} |
37 |
|
|
%define vsuffix -rc%{relc} |
38 |
|
|
%define src_type tar.bz2 |
39 |
|
|
%endif |
40 |
|
|
|
41 |
|
|
%if %{git} |
42 |
|
|
%if %{relc} |
43 |
mikala |
123310 |
%define release %mkrel 0.rc%{relc}.1.git%{git}.%{rel} |
44 |
pterjan |
5340 |
%else |
45 |
|
|
%define release %mkrel 0.git%{git}.%{rel} |
46 |
|
|
%endif |
47 |
|
|
%endif |
48 |
|
|
|
49 |
|
|
%define makedepend %{_bindir}/gccmakedep |
50 |
|
|
|
51 |
|
|
%define eglname mesaegl |
52 |
|
|
%define glname mesagl |
53 |
|
|
%define glwname mesaglw |
54 |
tv |
88442 |
%define glesv1name mesaglesv1 |
55 |
|
|
%define glesv2name mesaglesv2 |
56 |
tv |
88445 |
%define openvgname mesaopenvg |
57 |
mikala |
112356 |
%define glapiname glapi |
58 |
blino |
215979 |
%define gbmname gbm |
59 |
|
|
%define waylandeglname wayland-egl |
60 |
tv |
88442 |
|
61 |
pterjan |
5340 |
%define eglmajor 1 |
62 |
|
|
%define glmajor 1 |
63 |
|
|
%define glwmajor 1 |
64 |
tv |
88442 |
%define glesv1major 1 |
65 |
|
|
%define glesv2major 2 |
66 |
tv |
88445 |
%define openvgmajor 1 |
67 |
mikala |
112356 |
%define glapimajor 0 |
68 |
blino |
215979 |
%define gbmmajor 1 |
69 |
|
|
%define waylandeglmajor 1 |
70 |
blino |
289617 |
%define osmesamajor 8 |
71 |
tv |
88442 |
|
72 |
pterjan |
5340 |
%define libeglname %mklibname %{eglname} %{eglmajor} |
73 |
|
|
%define libglname %mklibname %{glname} %{glmajor} |
74 |
|
|
%define libglwname %mklibname %{glwname} %{glwmajor} |
75 |
tv |
88442 |
%define libglesv1name %mklibname %{glesv1name}_ %{glesv1major} |
76 |
|
|
%define libglesv2name %mklibname %{glesv2name}_ %{glesv2major} |
77 |
tv |
88445 |
%define libopenvgname %mklibname %{openvgname} %{openvgmajor} |
78 |
mikala |
112356 |
%define libglapiname %mklibname %{glapiname} %{glapimajor} |
79 |
blino |
215979 |
%define libgbmname %mklibname %{gbmname} %{gbmmajor} |
80 |
|
|
%define libwaylandeglname %mklibname %{waylandeglname} %{waylandeglmajor} |
81 |
anssi |
278008 |
%define libosmesaname %mklibname osmesa %{osmesamajor} |
82 |
pterjan |
5340 |
|
83 |
|
|
%define dridrivers %mklibname dri-drivers |
84 |
|
|
|
85 |
anssi |
278008 |
%define osmesadevel %mklibname osmesa -d |
86 |
|
|
|
87 |
pterjan |
5340 |
# Architecture-independent Virtual provides: |
88 |
|
|
%define libeglname_virt lib%{eglname} |
89 |
|
|
%define libglname_virt lib%{glname} |
90 |
|
|
%define libglwname_virt lib%{glwname} |
91 |
tv |
88442 |
%define libglesv1name_virt lib%{glesv1name} |
92 |
|
|
%define libglesv2name_virt lib%{glesv2name} |
93 |
tv |
88445 |
%define libopenvgname_virt lib%{openvgname} |
94 |
mikala |
112356 |
%define libglapiname_virt lib%{glapiname} |
95 |
blino |
215979 |
%define libgbmname_virt lib%{gbmname} |
96 |
|
|
%define libwaylandeglname_virt lib%{waylandeglname} |
97 |
pterjan |
5340 |
|
98 |
|
|
%define oldlibglname %mklibname MesaGL 1 |
99 |
|
|
|
100 |
|
|
%define mesasrcdir %{_prefix}/src/Mesa/ |
101 |
|
|
%define driver_dir %{_libdir}/dri |
102 |
|
|
|
103 |
tv |
88451 |
%define enable_egl 1 |
104 |
blino |
215979 |
%define enable_wayland 1 |
105 |
pterjan |
5340 |
|
106 |
|
|
#FIXME: (for 386/485) unset SSE, MMX and 3dnow flags |
107 |
|
|
#FIXME: (for >=i586) disable sse |
108 |
|
|
# SSE seems to have problem on some apps (gtulpas) for probing. |
109 |
tv |
207029 |
%define dri_drivers_i386 "i915,i965,nouveau,r200,radeon,swrast" |
110 |
pterjan |
5340 |
%define dri_drivers_x86_64 %{dri_drivers_i386} |
111 |
tv |
207029 |
%define dri_drivers_ppc "r200,radeon,swrast" |
112 |
pterjan |
5340 |
%define dri_drivers_ppc64 "" |
113 |
tv |
207029 |
%define dri_drivers_ia64 "i915,i965,mga,r200,radeon,swrast" |
114 |
|
|
%define dri_drivers_alpha "r200,radeon,swrast" |
115 |
|
|
%define dri_drivers_sparc "ffb,radeon,swrast" |
116 |
|
|
%define dri_drivers_mipsel "r200,radeon,swrast" |
117 |
rtp |
302732 |
%define dri_drivers_arm "nouveau,r200,radeon,swrast" |
118 |
pterjan |
5340 |
%define dri_drivers %{expand:%{dri_drivers_%{_arch}}} |
119 |
|
|
|
120 |
|
|
Name: %{name} |
121 |
|
|
Version: %{version} |
122 |
|
|
Release: %{release} |
123 |
blino |
289598 |
Summary: OpenGL %{opengl_ver} compatible 3D graphics library |
124 |
pterjan |
5340 |
Group: System/Libraries |
125 |
|
|
|
126 |
mikala |
127466 |
BuildRequires: pkgconfig(xfixes) >= 4.0.3 |
127 |
|
|
BuildRequires: pkgconfig(xt) >= 1.0.5 |
128 |
|
|
BuildRequires: pkgconfig(xmu) >= 1.0.3 |
129 |
|
|
BuildRequires: pkgconfig(x11) >= 1.3.3 |
130 |
|
|
BuildRequires: pkgconfig(xdamage) >= 1.1.1 |
131 |
pterjan |
5340 |
BuildRequires: libexpat-devel >= 2.0.1 |
132 |
|
|
BuildRequires: gccmakedep |
133 |
|
|
BuildRequires: x11-proto-devel >= 7.3 |
134 |
tv |
554634 |
BuildRequires: pkgconfig(libdrm) >= 2.4.49 |
135 |
pterjan |
5340 |
|
136 |
mikala |
127466 |
BuildRequires: pkgconfig(xext) >= 1.1.1 |
137 |
|
|
BuildRequires: pkgconfig(xxf86vm) >= 1.1.0 |
138 |
|
|
BuildRequires: pkgconfig(xi) >= 1.3 |
139 |
|
|
BuildRequires: pkgconfig(talloc) |
140 |
tv |
88443 |
BuildRequires: libxml2-python |
141 |
tmb |
35532 |
BuildRequires: makedepend |
142 |
dmorgan |
106004 |
BuildRequires: bison flex |
143 |
tv |
469143 |
BuildRequires: libelf-devel |
144 |
tv |
469141 |
BuildRequires: llvm-devel > 3.3-1 |
145 |
mikala |
127466 |
BuildRequires: pkgconfig(libudev) |
146 |
blino |
270761 |
BuildRequires: pkgconfig(vdpau) |
147 |
blino |
215979 |
%if %{enable_wayland} |
148 |
|
|
BuildRequires: wayland-devel |
149 |
|
|
%endif |
150 |
pterjan |
5340 |
|
151 |
|
|
URL: http://www.mesa3d.org |
152 |
|
|
%if %{git} |
153 |
cjw |
336175 |
Source0: %{name}-%{git}.tar.bz2 |
154 |
blino |
289278 |
# (blino) snapshot of 9.0 branch |
155 |
cjw |
336175 |
#Source0: %{name}-%{git_branch}-%{git}.tar.bz2 |
156 |
pterjan |
5340 |
%else |
157 |
tv |
303797 |
Source0: ftp://ftp.freedesktop.org/pub/mesa/%version/MesaLib-%{fversion}%{vsuffix}.%{src_type} |
158 |
pterjan |
5340 |
%endif |
159 |
|
|
Source3: make-git-snapshot.sh |
160 |
tmb |
491931 |
# (tmb) disable as it breaks the build |
161 |
|
|
#Patch0: MesaLib-9.2.0-rc1-automake-1.14.patch |
162 |
pterjan |
5340 |
|
163 |
|
|
# Instructions to setup your repository clone |
164 |
|
|
# git://git.freedesktop.org/git/mesa/mesa |
165 |
|
|
# git checkout mesa_7_5_branch |
166 |
|
|
# git branch mdv-cherry-picks |
167 |
|
|
# git am ../02??-*.patch |
168 |
|
|
# git branch mdv-redhat |
169 |
|
|
# git am ../03??-*.patch |
170 |
|
|
# git branch mdv-patches |
171 |
|
|
# git am ../09??-*.patch |
172 |
|
|
# In order to update to the branch via patches, issue this command: |
173 |
|
|
# git format-patch --start-number 100 mesa_7_5_1..mesa_7_5_branch | sed 's/^0\([0-9]\+\)-/Patch\1: 0\1-/' |
174 |
|
|
|
175 |
tmb |
564877 |
# Upstream git |
176 |
|
|
Patch101: 0101-r600g-sb-fix-stack-size-computation-on-evergreen.patch |
177 |
|
|
Patch102: 0102-mesa-fix-interpretation-of-glClearBuffer-drawbuffer.patch |
178 |
|
|
Patch103: 0103-dri_util-Don-t-assume-__DRIcontext-driverPrivate-is-.patch |
179 |
|
|
Patch104: 0104-mesa-Fix-error-code-generation-in-glBeginConditional.patch |
180 |
|
|
Patch105: 0105-Use-line-number-information-from-entire-function-exp.patch |
181 |
|
|
Patch106: 0106-i965-Fix-3DSTATE_PUSH_CONSTANT_ALLOC_PS-packet-creat.patch |
182 |
|
|
Patch107: 0107-i915-Add-support-for-gl_FragData-0-reads.patch |
183 |
|
|
Patch108: 0108-st-mesa-use-pipe_sampler_view_release.patch |
184 |
|
|
Patch109: 0109-llvmpipe-use-pipe_sampler_view_release-to-avoid-segf.patch |
185 |
|
|
Patch110: 0110-clover-Remove-unused-variable.patch |
186 |
|
|
Patch111: 0111-pipe_loader-sw-close-dev-lib-when-initialization-fai.patch |
187 |
|
|
Patch112: 0112-radeon-compute-Stop-leaking-LLVMContexts-in-radeon_l.patch |
188 |
|
|
Patch113: 0113-r600-compute-Free-compiled-kernels-when-deleting-com.patch |
189 |
|
|
Patch114: 0114-r600-compute-Use-the-correct-FREE-macro-when-deletin.patch |
190 |
|
|
Patch115: 0115-radeon-llvm-Free-target-data-at-end-of-optimization.patch |
191 |
|
|
Patch116: 0116-st-vdpau-Destroy-context-when-initialization-fails.patch |
192 |
|
|
Patch117: 0117-r600-pipe-Stop-leaking-context-start_compute_cs_cmd..patch |
193 |
|
|
Patch118: 0118-r600g-fix-SUMO2-pci-id.patch |
194 |
|
|
Patch119: 0119-Revert-mesa-Remove-GLXContextID-typedef-from-glx.h.patch |
195 |
|
|
Patch120: 0120-glcpp-error-on-multiple-else-elif-directives.patch |
196 |
|
|
Patch121: 0121-st-mesa-fix-glClear-with-multiple-colorbuffers-and-d.patch |
197 |
|
|
Patch122: 0122-i965-gen6-Fix-HiZ-hang-in-WebGL-Google-Maps.patch |
198 |
|
|
Patch123: 0123-glsl-Teach-ir_variable_refcount-about-ir_loop-counte.patch |
199 |
|
|
Patch124: 0124-glsl-Fix-inconsistent-assumptions-about-ir_loop-coun.patch |
200 |
|
|
Patch125: 0125-nv50-fix-a-small-leak-on-context-destroy.patch |
201 |
|
|
|
202 |
pterjan |
5340 |
# Cherry picks |
203 |
|
|
# git format-patch --start-number 200 mesa_7_5_branch..mdv-cherry-picks |
204 |
|
|
Patch201: 0201-revert-fix-glxinitializevisualconfigfromtags-handling.patch |
205 |
tmb |
411326 |
|
206 |
blino |
289280 |
# (blino) should be pushed to 9.0 branch upstream |
207 |
tv |
303796 |
#Patch202: 0202-radeon-llvm-Cleanup-makefile.patch |
208 |
|
|
#Patch203: 0203-radeon-llvm-Remove-R600InstrInfo.td-from-TD_FILES.patch |
209 |
pterjan |
5340 |
|
210 |
tv |
88247 |
# Patches "liberated" from Fedora: |
211 |
pterjan |
5340 |
# http://cvs.fedoraproject.org/viewvc/rpms/mesa/devel/ |
212 |
|
|
# git format-patch --start-number 300 mdv-cherry-picks..mdv-redhat |
213 |
|
|
|
214 |
blino |
278732 |
# Patches from ChromiumOS |
215 |
|
|
# http://git.chromium.org/gitweb/?p=chromiumos/overlays/chromiumos-overlay.git;a=tree;f=media-libs/mesa/files;hb=HEAD |
216 |
|
|
|
217 |
blino |
271493 |
# Mageia/Mandriva patches |
218 |
pterjan |
5340 |
# git format-patch --start-number 900 mdv-redhat..mdv-patches |
219 |
blino |
271493 |
# (blino) llvmpipe test programs link fails when ld --as-needed option is used, reported as fdo #52167 |
220 |
cjw |
388874 |
#Patch901: 0901-gallium-only-link-static-archives-between-ld-start-e.patch |
221 |
pterjan |
5340 |
|
222 |
tv |
88440 |
#------------------------------------------------------------------------------ |
223 |
|
|
|
224 |
|
|
# package mesa |
225 |
pterjan |
5340 |
License: MIT |
226 |
|
|
Requires: %{libglname} = %{version}-%{release} |
227 |
|
|
Provides: hackMesa = %{version} |
228 |
|
|
Obsoletes: hackMesa <= %{version} |
229 |
|
|
Provides: Mesa = %{version} |
230 |
|
|
Obsoletes: Mesa < %{version} |
231 |
|
|
|
232 |
|
|
%package -n %{libglname} |
233 |
|
|
Summary: Files for Mesa (GL and GLX libs) |
234 |
|
|
Group: System/Libraries |
235 |
tv |
88247 |
Obsoletes: %{oldlibglname} < 6.4 |
236 |
pterjan |
5340 |
Provides: %{oldlibglname} = %{version}-%{release} |
237 |
|
|
Provides: %{libglname_virt} = %{version}-%{release} |
238 |
|
|
Requires: %{dridrivers} >= %{version}-%{release} |
239 |
tv |
135172 |
%if %{build_plf} |
240 |
|
|
Requires: %mklibname txc-dxtn |
241 |
|
|
%endif |
242 |
pterjan |
5340 |
|
243 |
|
|
# (anssi) Forces the upgrade of x11-server-common to happen before |
244 |
|
|
# alternatives removal, which allows x11-server-common to grab the symlink. |
245 |
|
|
Conflicts: x11-server-common < 1.3.0.0-17 |
246 |
|
|
|
247 |
|
|
%package -n %{dridrivers} |
248 |
|
|
Summary: Mesa DRI drivers |
249 |
|
|
Group: System/Libraries |
250 |
blino |
274132 |
# do not require exact release to avoid conflicts when having |
251 |
|
|
# x86_64 dri drivers from tainted and i586 dri drivers from core |
252 |
|
|
Requires: mesa = %{version} |
253 |
pterjan |
5340 |
Conflicts: %{_lib}MesaGL1 < 7.7-5 |
254 |
anssi |
181478 |
Obsoletes: %{_lib}dri-drivers-experimental < 7.11.2-4 |
255 |
|
|
Provides: %{_lib}dri-drivers-experimental = %{version}-%{release} |
256 |
pterjan |
5340 |
|
257 |
|
|
%package -n %{libglname}-devel |
258 |
|
|
Summary: Development files for Mesa (OpenGL compatible 3D lib) |
259 |
|
|
Group: Development/C |
260 |
tv |
88237 |
Requires: %{libglname} = %{version}-%{release} |
261 |
pterjan |
5340 |
Provides: lib%{glname}-devel = %{version}-%{release} |
262 |
|
|
Provides: %{glname}-devel = %{version}-%{release} |
263 |
|
|
Provides: GL-devel |
264 |
|
|
Obsoletes: %{oldlibglname}-devel < 6.4 |
265 |
|
|
Provides: %{oldlibglname}-devel = %{version}-%{release} |
266 |
|
|
Provides: libMesaGL-devel = %{version}-%{release} |
267 |
|
|
Provides: MesaGL-devel = %{version}-%{release} |
268 |
tv |
88438 |
Provides: libgl-devel |
269 |
pterjan |
5340 |
|
270 |
tv |
88433 |
%if %{enable_egl} |
271 |
|
|
%package -n %{libeglname} |
272 |
|
|
Summary: Files for Mesa (EGL libs) |
273 |
|
|
Group: System/Libraries |
274 |
|
|
Provides: %{libeglname_virt} = %{version}-%{release} |
275 |
|
|
|
276 |
|
|
%package -n %{libeglname}-devel |
277 |
|
|
Summary: Development files for Mesa (EGL libs) |
278 |
|
|
Group: Development/C |
279 |
tv |
88439 |
Requires: %{libeglname} = %{version}-%{release} |
280 |
tv |
88433 |
Provides: EGL-devel |
281 |
tv |
88438 |
Provides: lib%{eglname}-devel |
282 |
|
|
Provides: %{eglname}-devel |
283 |
|
|
Provides: libegl-devel |
284 |
tv |
88433 |
%endif |
285 |
|
|
|
286 |
anssi |
278008 |
%package -n %{libosmesaname} |
287 |
|
|
Summary: Mesa offscreen rendering library |
288 |
|
|
Group: System/Libraries |
289 |
|
|
|
290 |
|
|
%package -n %{osmesadevel} |
291 |
|
|
Summary: Development files for libosmesa |
292 |
|
|
Group: Development/C |
293 |
|
|
Requires: %{libosmesaname} = %{version}-%{release} |
294 |
|
|
Provides: osmesa-devel = %{version}-%{release} |
295 |
|
|
Conflicts: MesaGL-devel < 8.1.0-0.git20120727.3 |
296 |
|
|
|
297 |
mikala |
112356 |
%package -n %{libglapiname} |
298 |
|
|
Summary: Files for mesa (glapi libs) |
299 |
|
|
Group: System/Libraries |
300 |
|
|
Provides: %{libglapiname_virt} = %{version}-%{release} |
301 |
tv |
88442 |
|
302 |
mikala |
112356 |
%package -n %{libglapiname}-devel |
303 |
|
|
Summary: Development files for glapi libs |
304 |
|
|
Group: Development/C |
305 |
|
|
Requires: %{libglapiname_virt} = %{version}-%{release} |
306 |
|
|
Provides: lib%{glapiname}-devel |
307 |
|
|
Provides: %{libglapiname}-devel |
308 |
|
|
|
309 |
tv |
88442 |
%package -n %{libglesv1name} |
310 |
|
|
Summary: Files for Mesa (glesv1 libs) |
311 |
|
|
Group: System/Libraries |
312 |
|
|
Provides: %{libglesv1name_virt} = %{version}-%{release} |
313 |
|
|
|
314 |
|
|
%package -n %{libglesv1name}-devel |
315 |
|
|
Summary: Development files for glesv1 libs |
316 |
|
|
Group: Development/C |
317 |
|
|
Requires: %{libglesv1name} = %{version}-%{release} |
318 |
|
|
Provides: lib%{glesv1name}-devel |
319 |
|
|
Provides: %{glesv1name}-devel |
320 |
|
|
Provides: libglesv1-devel |
321 |
|
|
|
322 |
|
|
%package -n %{libglesv2name} |
323 |
|
|
Summary: Files for Mesa (glesv2 libs) |
324 |
|
|
Group: System/Libraries |
325 |
|
|
Provides: %{libglesv2name_virt} = %{version}-%{release} |
326 |
|
|
|
327 |
|
|
%package -n %{libglesv2name}-devel |
328 |
|
|
Summary: Development files for glesv2 libs |
329 |
|
|
Group: Development/C |
330 |
|
|
Requires: %{libglesv2name} = %{version}-%{release} |
331 |
blino |
216556 |
Requires: %{libeglname}-devel = %{version}-%{release} |
332 |
tv |
88442 |
Provides: lib%{glesv2name}-devel |
333 |
|
|
Provides: %{glesv2name}-devel |
334 |
|
|
Provides: libglesv2-devel |
335 |
|
|
|
336 |
tv |
88445 |
%package -n %{libopenvgname} |
337 |
|
|
Summary: Files for MESA (OpenVG libs) |
338 |
|
|
Group: System/Libraries |
339 |
|
|
Provides: %{libopenvgname_virt} = %{version}-%{release} |
340 |
|
|
|
341 |
|
|
%package -n %{libopenvgname}-devel |
342 |
|
|
Summary: Development files vor OpenVG libs |
343 |
|
|
Group: Development/C |
344 |
|
|
Requires: %{libopenvgname} = %{version}-%{release} |
345 |
|
|
Provides: lib%{openvgname}-devel |
346 |
|
|
Provides: %{openvgname}-devel |
347 |
|
|
Provides: libopenvg-devel |
348 |
|
|
|
349 |
blino |
215979 |
%if %{enable_wayland} |
350 |
|
|
%package -n %{libgbmname} |
351 |
|
|
Summary: Files for Mesa (gbm libs) |
352 |
|
|
Group: System/Libraries |
353 |
|
|
Provides: %{libgbmname_virt} = %{version}-%{release} |
354 |
|
|
|
355 |
|
|
%package -n %{libgbmname}-devel |
356 |
|
|
Summary: Development files for Mesa (gbm libs) |
357 |
|
|
Group: Development/C |
358 |
|
|
Requires: %{libgbmname} = %{version}-%{release} |
359 |
|
|
Provides: lib%{gbmname}-devel |
360 |
|
|
Provides: %{gbmname}-devel |
361 |
|
|
|
362 |
|
|
%package -n %{libwaylandeglname} |
363 |
|
|
Summary: Files for Mesa (Wayland EGL libs) |
364 |
|
|
Group: System/Libraries |
365 |
|
|
Provides: %{libwaylandeglname_virt} = %{version}-%{release} |
366 |
|
|
|
367 |
|
|
%package -n %{libwaylandeglname}-devel |
368 |
|
|
Summary: Development files for Mesa (Wayland EGL libs) |
369 |
|
|
Group: Development/C |
370 |
|
|
Requires: %{libwaylandeglname} = %{version}-%{release} |
371 |
|
|
Provides: lib%{waylandeglname}-devel |
372 |
|
|
Provides: %{waylandeglname}-devel |
373 |
|
|
%endif |
374 |
|
|
|
375 |
tv |
301233 |
%package -n %{_lib}vdpau-driver-nouveau |
376 |
blino |
270761 |
Summary: VDPAU plugin for nouveau driver |
377 |
blino |
300616 |
Group: System/Libraries |
378 |
tv |
302568 |
# temporary: |
379 |
|
|
%rename vdpau-driver-nouveau |
380 |
blino |
270761 |
|
381 |
tv |
301233 |
%package -n %{_lib}vdpau-driver-r600 |
382 |
blino |
270761 |
Summary: VDPAU plugin for r600 driver |
383 |
blino |
300616 |
Group: System/Libraries |
384 |
tv |
302568 |
# temporary: |
385 |
|
|
%rename vdpau-driver-r600 |
386 |
blino |
270761 |
|
387 |
tv |
301233 |
%package -n %{_lib}vdpau-driver-radeonsi |
388 |
blino |
289282 |
Summary: VDPAU plugin for radeonsi driver |
389 |
|
|
Group: System/Libraries |
390 |
tv |
302568 |
# temporary: |
391 |
|
|
%rename vdpau-driver-radeonsi |
392 |
blino |
289282 |
|
393 |
pterjan |
5340 |
%package common-devel |
394 |
|
|
Summary: Meta package for mesa devel |
395 |
|
|
Group: Development/C |
396 |
tv |
88247 |
Provides: Mesa-common-devel = %{version}-%{release} |
397 |
pterjan |
5340 |
Provides: hackMesa-common-devel = %{version} |
398 |
tv |
88247 |
Obsoletes: Mesa-common-devel < %{version} |
399 |
pterjan |
5340 |
Obsoletes: hackMesa-common-devel < %{version} |
400 |
|
|
Requires: %{libglname}-devel = %{version} |
401 |
blino |
289355 |
Requires: mesaglu-devel |
402 |
tv |
135156 |
Requires: freeglut-devel |
403 |
tv |
88442 |
Requires: %{libeglname}-devel = %{version} |
404 |
|
|
Requires: %{libglesv1name}-devel = %{version} |
405 |
|
|
Requires: %{libglesv2name}-devel = %{version} |
406 |
pterjan |
5340 |
|
407 |
tv |
88440 |
#------------------------------------------------------------------------------ |
408 |
pterjan |
5340 |
|
409 |
|
|
%description |
410 |
blino |
289598 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
411 |
tv |
135173 |
%if %{build_plf} |
412 |
pterjan |
5340 |
|
413 |
tv |
135173 |
This package is in the "tainted" section because it enables some |
414 |
|
|
OpenGL extentions that are covered by software patents. |
415 |
|
|
%endif |
416 |
|
|
|
417 |
pterjan |
5340 |
%description common-devel |
418 |
|
|
Mesa common metapackage devel |
419 |
|
|
|
420 |
|
|
%if %{enable_egl} |
421 |
|
|
%description -n %{libeglname} |
422 |
blino |
289598 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
423 |
pterjan |
5340 |
EGL parts. |
424 |
|
|
|
425 |
|
|
%description -n %{libeglname}-devel |
426 |
blino |
289598 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
427 |
pterjan |
5340 |
EGL development parts. |
428 |
|
|
%endif |
429 |
|
|
|
430 |
|
|
%description -n %{libglname} |
431 |
blino |
289598 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
432 |
pterjan |
5340 |
GL and GLX parts. |
433 |
|
|
|
434 |
tv |
135155 |
%if %{build_plf} |
435 |
|
|
This package is in the "tainted" section because it enables some |
436 |
|
|
OpenGL extentions that are covered by software patents. |
437 |
|
|
%endif |
438 |
|
|
|
439 |
pterjan |
5340 |
%description -n %{dridrivers} |
440 |
blino |
289598 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
441 |
pterjan |
5340 |
DRI drivers. |
442 |
|
|
|
443 |
|
|
%description -n %{libglname}-devel |
444 |
blino |
289598 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
445 |
pterjan |
5340 |
|
446 |
|
|
This package contains the headers needed to compile Mesa programs. |
447 |
|
|
|
448 |
tv |
88442 |
%description -n %{libglesv1name} |
449 |
|
|
OpenGL ES is a low-level, lightweight API for advanced embedded graphics using |
450 |
|
|
well-defined subset profiles of OpenGL. |
451 |
|
|
|
452 |
|
|
This package provides the OpenGL ES library version 1. |
453 |
|
|
|
454 |
anssi |
278008 |
%description -n %{libosmesaname} |
455 |
|
|
Mesa offscreen rendering libraries for rendering OpenGL into |
456 |
|
|
application-allocated blocks of memory. |
457 |
|
|
|
458 |
|
|
%description -n %{osmesadevel} |
459 |
|
|
This package contains the headers needed to compile programs against |
460 |
|
|
the Mesa offscreen rendering library. |
461 |
|
|
|
462 |
mikala |
112356 |
%description -n %{libglapiname} |
463 |
|
|
This packages provides the glapi shared library used by gallium. |
464 |
|
|
|
465 |
|
|
%description -n %{libglapiname}-devel |
466 |
|
|
This package contains the headers needed to compile programes against glapi shared library. |
467 |
|
|
|
468 |
tv |
88442 |
%description -n %{libglesv1name}-devel |
469 |
|
|
This package contains the headers needed to compile OpenGL ES 1 programs. |
470 |
|
|
|
471 |
|
|
%description -n %{libglesv2name} |
472 |
|
|
OpenGL ES is a low-level, lightweight API for advanced embedded graphics using |
473 |
|
|
well-defined subset profiles of OpenGL. |
474 |
|
|
|
475 |
|
|
This package provides the OpenGL ES library version 2. |
476 |
|
|
|
477 |
|
|
%description -n %{libglesv2name}-devel |
478 |
|
|
This package contains the headers needed to compile OpenGL ES 2 programs. |
479 |
|
|
|
480 |
tv |
88445 |
%description -n %{libopenvgname} |
481 |
|
|
OpenVG is a royalty-free, cross-platform API that provides a low-level hardware |
482 |
|
|
acceleration interface for vector graphics libraries such as Flash and SVG. |
483 |
|
|
|
484 |
|
|
%description -n %{libopenvgname}-devel |
485 |
|
|
Development files for OpenVG library. |
486 |
|
|
|
487 |
blino |
215979 |
%if %{enable_wayland} |
488 |
|
|
%description -n %{libgbmname} |
489 |
blino |
289598 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
490 |
blino |
215979 |
GBM (Graphics Buffer Manager) parts. |
491 |
|
|
|
492 |
|
|
%description -n %{libgbmname}-devel |
493 |
blino |
289598 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
494 |
blino |
215979 |
GBM (Graphics Buffer Manager) development parts. |
495 |
|
|
|
496 |
|
|
%description -n %{libwaylandeglname} |
497 |
blino |
289598 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
498 |
blino |
215979 |
Wayland EGL platform parts. |
499 |
|
|
|
500 |
|
|
%description -n %{libwaylandeglname}-devel |
501 |
blino |
289598 |
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library. |
502 |
blino |
215979 |
Wayland EGL platform development parts. |
503 |
|
|
%endif |
504 |
|
|
|
505 |
tv |
301233 |
%description -n %{_lib}vdpau-driver-nouveau |
506 |
blino |
270761 |
This packages provides a VPDAU plugin to enable video acceleration |
507 |
|
|
with the nouveau driver. |
508 |
|
|
|
509 |
tv |
301233 |
%description -n %{_lib}vdpau-driver-r600 |
510 |
blino |
270761 |
This packages provides a VPDAU plugin to enable video acceleration |
511 |
|
|
with the r600 driver. |
512 |
|
|
|
513 |
tv |
301233 |
%description -n %{_lib}vdpau-driver-radeonsi |
514 |
blino |
289282 |
This packages provides a VPDAU plugin to enable video acceleration |
515 |
|
|
with the radeonsi driver. |
516 |
|
|
|
517 |
tv |
88440 |
#------------------------------------------------------------------------------ |
518 |
|
|
|
519 |
pterjan |
5340 |
%prep |
520 |
|
|
%if %{git} |
521 |
cjw |
336175 |
%setup -q -n mesa-%{git} |
522 |
|
|
#setup -q -n mesa-%{git_branch}-%{git} |
523 |
pterjan |
5340 |
%else |
524 |
tv |
303797 |
%setup -q -n Mesa-%{fversion}%{vsuffix} |
525 |
pterjan |
5340 |
%endif |
526 |
|
|
|
527 |
blino |
278731 |
%apply_patches |
528 |
pterjan |
5340 |
|
529 |
anssi |
332631 |
# Duplicate source tree for OSMesa, since building both versions out-of-tree |
530 |
|
|
# would break build. - Anssi 12/2012 |
531 |
cjw |
336233 |
all=$(ls) |
532 |
|
|
mkdir -p build-osmesa |
533 |
|
|
cp -al $all build-osmesa |
534 |
anssi |
332631 |
|
535 |
pterjan |
5340 |
%build |
536 |
cjw |
336175 |
# (re)generate auto* generated files using our autotools and libtoolize |
537 |
|
|
autoreconf -vfi |
538 |
|
|
|
539 |
tv |
551068 |
# for bin/test-driver: |
540 |
|
|
automake --add-missing |
541 |
|
|
|
542 |
anssi |
278008 |
# fix build - TODO: should this be fixed in llvm somehow, or maybe the library |
543 |
|
|
# symlinks should be moved to %{_libdir}? -Anssi 08/2012 |
544 |
|
|
export LDFLAGS="-L%{_libdir}/llvm" |
545 |
|
|
|
546 |
|
|
%configure2_5x --enable-dri \ |
547 |
|
|
--enable-glx \ |
548 |
pterjan |
5340 |
--with-dri-driverdir=%{driver_dir} \ |
549 |
|
|
--with-dri-drivers="%{dri_drivers}" \ |
550 |
|
|
%if %{enable_egl} |
551 |
|
|
--enable-egl \ |
552 |
|
|
%else |
553 |
|
|
--disable-egl \ |
554 |
|
|
%endif |
555 |
blino |
215979 |
%if %{enable_wayland} |
556 |
|
|
--with-egl-platforms=x11,wayland,drm \ |
557 |
|
|
--enable-gbm \ |
558 |
|
|
--enable-shared-glapi \ |
559 |
|
|
%endif |
560 |
tv |
88442 |
--enable-gles1 \ |
561 |
|
|
--enable-gles2 \ |
562 |
tv |
88445 |
--enable-openvg \ |
563 |
mikala |
112356 |
--enable-gallium-egl \ |
564 |
blino |
270761 |
--disable-xvmc \ |
565 |
|
|
--enable-vdpau \ |
566 |
mikala |
112356 |
%if %{with_hardware} |
567 |
blino |
289282 |
--with-gallium-drivers=r300,r600,radeonsi,nouveau,swrast \ |
568 |
mikala |
112356 |
--enable-gallium-llvm \ |
569 |
|
|
%else |
570 |
|
|
--disable-gallium-llvm \ |
571 |
|
|
--with-gallium-drivers=swrast \ |
572 |
|
|
%endif |
573 |
tv |
135155 |
%if %{build_plf} |
574 |
|
|
--enable-texture-float \ |
575 |
|
|
%endif |
576 |
blino |
270723 |
# end of configure options |
577 |
pterjan |
5340 |
|
578 |
anssi |
332631 |
|
579 |
|
|
# Build OSMesa separately, since we want to build OSMesa without shared-glapi, |
580 |
|
|
# since doing that causes OSMesa to miss the OpenGL symbols. |
581 |
|
|
# See e.g. https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1066599 |
582 |
|
|
# -Anssi 12/2012 |
583 |
|
|
|
584 |
cjw |
336233 |
pushd build-osmesa |
585 |
|
|
autoreconf -vfi |
586 |
|
|
%configure2_5x \ |
587 |
|
|
--enable-osmesa \ |
588 |
|
|
--disable-dri \ |
589 |
|
|
--disable-glx \ |
590 |
|
|
--disable-egl \ |
591 |
|
|
--disable-shared-glapi \ |
592 |
|
|
--without-gallium-drivers |
593 |
|
|
popd |
594 |
anssi |
332631 |
|
595 |
anssi |
165988 |
%make |
596 |
cjw |
388874 |
%make -C build-osmesa || ( %make -C build-osmesa/src/mesa/program libprogram.la && %make -C build-osmesa ) |
597 |
pterjan |
5340 |
|
598 |
|
|
%install |
599 |
cjw |
336233 |
%makeinstall_std -C build-osmesa |
600 |
tv |
88249 |
%makeinstall_std |
601 |
pterjan |
5340 |
|
602 |
blino |
216556 |
# FIXME: strip will likely break the hardlink |
603 |
pterjan |
5340 |
# (blino) hardlink libGL files in %{_libdir}/mesa |
604 |
|
|
# to prevent proprietary driver installers from removing them |
605 |
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/mesa |
606 |
|
|
pushd $RPM_BUILD_ROOT%{_libdir}/mesa |
607 |
|
|
for l in ../libGL.so.*; do cp -a $l .; done |
608 |
|
|
popd |
609 |
|
|
|
610 |
|
|
%ifarch %{x86_64} |
611 |
|
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/dri |
612 |
|
|
%endif |
613 |
|
|
|
614 |
blino |
270761 |
# .so files are not needed by vdpau |
615 |
|
|
rm -f %{buildroot}%{_libdir}/vdpau/libvdpau_*.so |
616 |
|
|
|
617 |
blino |
271144 |
# .la files are not needed by mesa |
618 |
|
|
find %{buildroot} -name '*.la' -exec rm {} \; |
619 |
|
|
|
620 |
anssi |
181478 |
# use swrastg if built (Anssi 12/2011) |
621 |
|
|
[ -e %{buildroot}%{_libdir}/dri/swrastg_dri.so ] && mv %{buildroot}%{_libdir}/dri/swrast{g,}_dri.so |
622 |
|
|
|
623 |
tv |
88440 |
#------------------------------------------------------------------------------ |
624 |
|
|
|
625 |
pterjan |
5340 |
%files |
626 |
|
|
%defattr(-,root,root) |
627 |
blino |
271481 |
%doc docs/COPYING |
628 |
blino |
271500 |
%config(noreplace) %{_sysconfdir}/drirc |
629 |
pterjan |
5340 |
|
630 |
|
|
%files -n %{dridrivers} |
631 |
|
|
%defattr(-,root,root) |
632 |
|
|
%doc docs/COPYING |
633 |
|
|
%ifnarch ppc64 |
634 |
|
|
%dir %{_libdir}/dri |
635 |
blino |
271495 |
# (blino) new mesa 8.1 build system seems to use a static libglsl |
636 |
|
|
#%{_libdir}/dri/libglsl.so |
637 |
pterjan |
5340 |
%{_libdir}/dri/*_dri.so |
638 |
|
|
%endif |
639 |
|
|
|
640 |
tv |
88433 |
%files -n %{libglname} |
641 |
|
|
%defattr(-,root,root) |
642 |
|
|
%doc docs/COPYING |
643 |
|
|
%{_libdir}/libGL.so.* |
644 |
|
|
%dir %{_libdir}/mesa |
645 |
tv |
88434 |
%{_libdir}/mesa/libGL.so.%{glmajor}* |
646 |
tv |
88433 |
|
647 |
|
|
%if %{enable_egl} |
648 |
|
|
%files -n %{libeglname} |
649 |
|
|
%defattr(-,root,root) |
650 |
tv |
88442 |
%doc docs/COPYING |
651 |
tv |
88434 |
%{_libdir}/libEGL.so.%{eglmajor}* |
652 |
tv |
88442 |
%dir %{_libdir}/egl |
653 |
blino |
215979 |
%if !%{enable_wayland} |
654 |
|
|
# st_GL, built only when shared glapi is not enabled |
655 |
mikala |
112356 |
%{_libdir}/egl/st_GL.so |
656 |
blino |
215979 |
%endif |
657 |
mikala |
127466 |
%{_libdir}/egl/egl_gallium.so |
658 |
tv |
88441 |
%endif |
659 |
tv |
88433 |
|
660 |
anssi |
278008 |
%files -n %{libosmesaname} |
661 |
|
|
%defattr(-,root,root) |
662 |
|
|
%{_libdir}/libOSMesa.so.%{osmesamajor}* |
663 |
|
|
|
664 |
mikala |
112356 |
%files -n %{libglapiname} |
665 |
|
|
%defattr(-,root,root) |
666 |
|
|
%{_libdir}/libglapi.so.%{glapimajor}* |
667 |
|
|
|
668 |
tv |
88442 |
%files -n %{libglesv1name} |
669 |
|
|
%defattr(-,root,root) |
670 |
|
|
%doc docs/COPYING |
671 |
|
|
%{_libdir}/libGLESv1_CM.so.%{glesv1major}* |
672 |
|
|
|
673 |
|
|
%files -n %{libglesv2name} |
674 |
|
|
%defattr(-,root,root) |
675 |
|
|
%doc docs/COPYING |
676 |
|
|
%{_libdir}/libGLESv2.so.%{glesv2major}* |
677 |
|
|
|
678 |
tv |
88445 |
%files -n %{libopenvgname} |
679 |
|
|
%defattr(-,root,root) |
680 |
|
|
%doc docs/COPYING |
681 |
|
|
%{_libdir}/libOpenVG.so.%{openvgmajor}* |
682 |
|
|
|
683 |
blino |
215979 |
%if %{enable_wayland} |
684 |
|
|
%files -n %{libgbmname} |
685 |
|
|
%{_libdir}/libgbm.so.%{gbmmajor} |
686 |
blino |
271141 |
%{_libdir}/libgbm.so.%{gbmmajor}.* |
687 |
blino |
215979 |
%{_libdir}/gbm/gbm_*.so |
688 |
cjw |
388874 |
%{_libdir}/gallium-pipe/pipe_*.so |
689 |
tv |
88445 |
|
690 |
blino |
215979 |
%files -n %{libwaylandeglname} |
691 |
|
|
%{_libdir}/libwayland-egl.so.%{waylandeglmajor} |
692 |
blino |
271141 |
%{_libdir}/libwayland-egl.so.%{waylandeglmajor}.* |
693 |
blino |
215979 |
%endif |
694 |
|
|
|
695 |
|
|
|
696 |
pterjan |
5340 |
%files -n %{libglname}-devel |
697 |
|
|
%defattr(-,root,root) |
698 |
|
|
%doc docs/COPYING |
699 |
anssi |
278008 |
%dir %{_includedir}/GL |
700 |
pterjan |
5340 |
%{_includedir}/GL/gl.h |
701 |
|
|
%{_includedir}/GL/glext.h |
702 |
|
|
%{_includedir}/GL/gl_mangle.h |
703 |
|
|
%{_includedir}/GL/wglext.h |
704 |
|
|
%{_includedir}/GL/glx.h |
705 |
|
|
%{_includedir}/GL/glxext.h |
706 |
|
|
%{_includedir}/GL/glx_mangle.h |
707 |
|
|
%{_libdir}/libGL.so |
708 |
tv |
88436 |
%{_libdir}/pkgconfig/gl.pc |
709 |
|
|
%{_libdir}/pkgconfig/dri.pc |
710 |
pterjan |
5340 |
|
711 |
|
|
#FIXME: check those headers |
712 |
cjw |
336175 |
#{_includedir}/GL/vms_x_fix.h |
713 |
pterjan |
5340 |
%{_includedir}/GL/wmesa.h |
714 |
|
|
%dir %{_includedir}/GL/internal |
715 |
|
|
%{_includedir}/GL/internal/dri_interface.h |
716 |
|
|
|
717 |
|
|
%files common-devel |
718 |
|
|
%defattr(-,root,root) |
719 |
|
|
|
720 |
tv |
88441 |
%if %{enable_egl} |
721 |
tv |
88433 |
%files -n %{libeglname}-devel |
722 |
|
|
%defattr(-,root,root) |
723 |
tv |
88442 |
%doc docs/COPYING |
724 |
|
|
%{_includedir}/EGL |
725 |
|
|
%{_includedir}/KHR |
726 |
tv |
88433 |
%{_libdir}/libEGL.so |
727 |
tv |
88436 |
%{_libdir}/pkgconfig/egl.pc |
728 |
tv |
88433 |
%endif |
729 |
pterjan |
5340 |
|
730 |
anssi |
278008 |
%files -n %{osmesadevel} |
731 |
|
|
%defattr(-,root,root) |
732 |
|
|
%dir %{_includedir}/GL |
733 |
|
|
%{_includedir}/GL/osmesa.h |
734 |
|
|
%{_libdir}/libOSMesa.so |
735 |
|
|
%{_libdir}/pkgconfig/osmesa.pc |
736 |
|
|
|
737 |
mikala |
112356 |
%files -n %{libglapiname}-devel |
738 |
|
|
%defattr(-,root,root) |
739 |
|
|
%{_libdir}/libglapi.so |
740 |
pterjan |
5340 |
|
741 |
tv |
88442 |
%files -n %{libglesv1name}-devel |
742 |
|
|
%defattr(-,root,root) |
743 |
|
|
%{_includedir}/GLES |
744 |
|
|
%{_libdir}/libGLESv1_CM.so |
745 |
|
|
%{_libdir}/pkgconfig/glesv1_cm.pc |
746 |
tv |
88433 |
|
747 |
tv |
88442 |
%files -n %{libglesv2name}-devel |
748 |
|
|
%defattr(-,root,root) |
749 |
|
|
%{_includedir}/GLES2 |
750 |
cjw |
336175 |
%{_includedir}/GLES3 |
751 |
tv |
88442 |
%{_libdir}/libGLESv2.so |
752 |
|
|
%{_libdir}/pkgconfig/glesv2.pc |
753 |
tv |
88445 |
|
754 |
|
|
%files -n %{libopenvgname}-devel |
755 |
|
|
%defattr(-,root,root) |
756 |
|
|
%{_includedir}/VG |
757 |
|
|
%{_libdir}/libOpenVG.so |
758 |
|
|
%{_libdir}/pkgconfig/vg.pc |
759 |
blino |
215979 |
|
760 |
|
|
%if %{enable_wayland} |
761 |
|
|
%files -n %{libgbmname}-devel |
762 |
|
|
%{_includedir}/gbm.h |
763 |
|
|
%{_libdir}/libgbm.so |
764 |
|
|
%{_libdir}/pkgconfig/gbm.pc |
765 |
|
|
|
766 |
|
|
%files -n %{libwaylandeglname}-devel |
767 |
|
|
%{_libdir}/libwayland-egl.so |
768 |
|
|
%{_libdir}/pkgconfig/wayland-egl.pc |
769 |
|
|
%endif |
770 |
blino |
270761 |
|
771 |
tv |
301233 |
%files -n %{_lib}vdpau-driver-nouveau |
772 |
blino |
270761 |
%{_libdir}/vdpau/libvdpau_nouveau.so.* |
773 |
|
|
|
774 |
tv |
301233 |
%files -n %{_lib}vdpau-driver-r600 |
775 |
blino |
270761 |
%{_libdir}/vdpau/libvdpau_r600.so.* |
776 |
|
|
|
777 |
tv |
301233 |
%files -n %{_lib}vdpau-driver-radeonsi |
778 |
blino |
289282 |
%{_libdir}/vdpau/libvdpau_radeonsi.so.* |
779 |
|
|
|