Enabled SELinux support (conditionally, on by default)

This commit is contained in:
Eugene Shatokhin 2014-12-19 20:15:56 +03:00
parent 90f53bd922
commit 9a72f0f994

View file

@ -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 \