4 License: MIT and Apache-2.0 and SGI Free Software License B v2.0 and BSD-3-Clause
5 Summary: System for rendering interactive 3-D graphics
6 Url: http://www.mesa3d.org
7 Group: Graphics & UI Framework/Hardware Adaptation
8 Source: %{name}-%{version}.tar.gz
9 Source1001: %{name}.manifest
10 Source1002: 99-GPU-Acceleration.rules
14 BuildRequires: pkgconfig
15 BuildRequires: pkgconfig(expat)
16 BuildRequires: pkgconfig(libdrm) >= 2.4.75
17 BuildRequires: pkgconfig(libudev) > 150
18 BuildRequires: pkgconfig(wayland-client)
19 BuildRequires: pkgconfig(wayland-server)
20 BuildRequires: pkgconfig(wayland-protocols)
21 BuildRequires: pkgconfig(tpl-egl)
22 BuildRequires: pkgconfig(libtbm)
23 BuildRequires: pkgconfig(libtdm)
24 BuildRequires: pkgconfig(zlib)
25 BuildRequires: pkgconfig(dlog)
26 BuildRequires: pkgconfig(libsystemd)
28 BuildRequires: python3
29 BuildRequires: python3-mako
30 BuildRequires: pkgconfig(ttrace)
32 BuildRequires: pkgconfig(libdrm_intel) >= 2.4.24
35 %if "%{_with_emulator}" == "1"
40 Mesa is a 3-D graphics library with an API which is very similar to
41 that of OpenGL.* To the extent that Mesa utilizes the OpenGL command
42 syntax or state machine, it is being used with authorization from
43 Silicon Graphics, Inc.(SGI). However, the author does not possess an
44 OpenGL license from SGI, and makes no claim that Mesa is in any way a
45 compatible replacement for OpenGL or associated with SGI. Those who
46 want a licensed implementation of OpenGL should contact a licensed
49 Please do not refer to the library as MesaGL (for legal reasons). It's
50 just Mesa or The Mesa 3-D graphics library.
52 * OpenGL is a trademark of Silicon Graphics Incorporated.
55 %setup -q -n %{name}-%{version}
60 %{?asan:/usr/bin/gcc-unforce-options}
62 meson --prefix %{_prefix} build/ \
63 -Dc_link_args="-lttrace" \
64 -Dcpp_link_args="-lttrace" \
67 -Dgallium-vdpau=false \
69 -Dgallium-xvmc=false \
73 -Dplatforms="tizen,wayland,drm" \
75 -Dgallium-drivers="i915,swrast" \
79 -Dgallium-drivers="vc4,v3d,kmsro,swrast"
84 DESTDIR=%{buildroot} ninja -C build/ install
85 mkdir -p %{buildroot}%{_libdir}/driver
86 cp -a %{buildroot}%{_libdir}/libEGL* %{buildroot}%{_libdir}/driver
87 cp -a %{buildroot}%{_libdir}/libGLES* %{buildroot}%{_libdir}/driver
89 mkdir -p %{buildroot}%{_udevrulesdir}
90 cp 99-GPU-Acceleration.rules %{buildroot}%{_udevrulesdir}
92 %post -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
96 %define _unpackaged_files_terminate_build 0
97 %manifest %{name}.manifest
104 %{_udevrulesdir}/99-GPU-Acceleration.rules