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)
27 BuildRequires: python3
28 BuildRequires: python3-mako
29 BuildRequires: pkgconfig(ttrace)
31 BuildRequires: pkgconfig(libdrm_intel) >= 2.4.24
34 %if "%{_with_emulator}" == "1"
39 Mesa is a 3-D graphics library with an API which is very similar to
40 that of OpenGL.* To the extent that Mesa utilizes the OpenGL command
41 syntax or state machine, it is being used with authorization from
42 Silicon Graphics, Inc.(SGI). However, the author does not possess an
43 OpenGL license from SGI, and makes no claim that Mesa is in any way a
44 compatible replacement for OpenGL or associated with SGI. Those who
45 want a licensed implementation of OpenGL should contact a licensed
48 Please do not refer to the library as MesaGL (for legal reasons). It's
49 just Mesa or The Mesa 3-D graphics library.
51 * OpenGL is a trademark of Silicon Graphics Incorporated.
54 %setup -q -n %{name}-%{version}
59 %{?asan:/usr/bin/gcc-unforce-options}
61 meson --prefix %{_prefix} build/ \
62 -Dc_link_args="-lttrace" \
63 -Dcpp_link_args="-lttrace" \
66 -Dgallium-vdpau=false \
68 -Dgallium-xvmc=false \
72 -Dplatforms="tizen,wayland,drm" \
74 -Dgallium-drivers="i915,swrast" \
78 -Dgallium-drivers="vc4,v3d,kmsro,swrast"
83 DESTDIR=%{buildroot} ninja -C build/ install
84 mkdir -p %{buildroot}%{_libdir}/driver
85 cp -a %{buildroot}%{_libdir}/libEGL* %{buildroot}%{_libdir}/driver
86 cp -a %{buildroot}%{_libdir}/libGLES* %{buildroot}%{_libdir}/driver
88 mkdir -p %{buildroot}/etc/udev/rules.d
89 cp 99-GPU-Acceleration.rules %{buildroot}/etc/udev/rules.d
91 %post -p /sbin/ldconfig
92 %postun -p /sbin/ldconfig
95 %define _unpackaged_files_terminate_build 0
96 %manifest %{name}.manifest
103 /etc/udev/rules.d/99-GPU-Acceleration.rules