summaryrefslogtreecommitdiff
path: root/packaging/libva-intel-driver.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/libva-intel-driver.spec')
-rw-r--r--packaging/libva-intel-driver.spec13
1 files changed, 10 insertions, 3 deletions
diff --git a/packaging/libva-intel-driver.spec b/packaging/libva-intel-driver.spec
index 0cf466b..57c115e 100644
--- a/packaging/libva-intel-driver.spec
+++ b/packaging/libva-intel-driver.spec
@@ -1,4 +1,6 @@
%bcond_with wayland
+%bcond_with x
+
Name: libva-intel-driver
Version: 1.2.2
Release: 0
@@ -7,8 +9,10 @@ Group: System/Libraries
License: MIT
URL: http://freedesktop.org/wiki/Software/vaapi
Source0: %{name}-%{version}.tar.bz2
+%if %{with x}
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xfixes)
+%endif
BuildRequires: mesa-devel
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(libva)
@@ -22,15 +26,18 @@ BuildRequires: pkgconfig(wayland-client)
Intel Driver for Libva is a library providing the VA API video acceleration API.
%prep
-%setup -q
+%setup -q
%build
%autogen
-%configure --enable-x11 \
+%configure \
+%if %{with x}
+--enable-x11 \
+%endif
%if %{with wayland}
--enable-wayland \
%endif
- --enable-drm
+ --enable-drm
make %{?_smp_mflags}
%install