From 9a72f0f9949477ecdaf3e475ddb89d1b4b1ef314 Mon Sep 17 00:00:00 2001 From: Eugene Shatokhin Date: Fri, 19 Dec 2014 20:15:56 +0300 Subject: [PATCH] Enabled SELinux support (conditionally, on by default) --- mesa.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mesa.spec b/mesa.spec index d40b1a4..6e875f2 100644 --- a/mesa.spec +++ b/mesa.spec @@ -8,6 +8,7 @@ %bcond_with va %bcond_without vdpau %bcond_without wayland +%bcond_without selinux %ifarch %{arm} %define dri_drivers "nouveau,r200,radeon" @@ -25,7 +26,7 @@ Summary: OpenGL 3.x compatible 3D graphics library Name: mesa Version: 10.3.3 -Release: 4 +Release: 5 License: MIT Group: System/Libraries Url: http://www.mesa3d.org @@ -88,6 +89,9 @@ BuildRequires: pkgconfig(dri3proto) BuildRequires: pkgconfig(xshmfence) BuildRequires: pkgconfig(xcb-dri3) BuildRequires: pkgconfig(xcb-present) +%if %{with selinux} +BuildRequires: libselinux-devel +%endif # [NB] Do not mark it noarch, otherwise rpm will be confused on where # to store debuginfo for the subpackages (all debug info should be stored @@ -565,6 +569,9 @@ autoreconf -vfi # version of Xorg, replace --enable-dri3 with --disable-dri3 below. %configure2_5x \ +%if %{with selinux} + --enable-selinux \ +%endif --enable-dri \ --enable-dri3 \ --enable-vdpau \