%bcond_with x
Name: libva
-Version: 1.2.1
+Version: 1.4.1
Release: 0
License: MIT
Summary: Video Acceleration (VA) API for Linux
Url: http://freedesktop.org/wiki/Software/vaapi
+#X-Vc-Url: git://anongit.freedesktop.org/libva
Group: Multimedia/Video
Source: %{name}-%{version}.tar.bz2
BuildRequires: gcc-c++
%autogen
%configure --enable-dummy-driver \
--enable-dummy-backend \
-%if %{with mesa} && %{with x}
+%if %{with x}
+%if %{with mesa}
--enable-glx \
%endif
+%else
+ --enable-x11=no \
+%endif
--enable-egl \
%if %{with wayland}
--enable-wayland \
%endif
-%if !%{with x}
- --enable-x11=no \
-%endif
--with-drivers-path=%{_libdir}/dri
make %{?_smp_mflags}
%{_bindir}/mpeg2vaenc
%if %{with x}
%{_bindir}/putsurface
-%{_bindir}/mpeg2transcode
%endif
%{_bindir}/loadjpeg
%if %{with wayland}