[gstreamer1-vaapi] Provide Wayland support now that libva includes it

farnz farnz at fedoraproject.org
Wed Apr 9 09:08:08 UTC 2014


commit ea0fcb0210b37eab4c3a3241f2fbba5513141e9a
Author: Simon Farnsworth <simon.farnsworth at onelan.co.uk>
Date:   Wed Apr 9 10:07:39 2014 +0100

    Provide Wayland support now that libva includes it

 gstreamer1-vaapi.spec |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/gstreamer1-vaapi.spec b/gstreamer1-vaapi.spec
index f3b4698..af9c0f9 100644
--- a/gstreamer1-vaapi.spec
+++ b/gstreamer1-vaapi.spec
@@ -1,6 +1,6 @@
 Name:           gstreamer1-vaapi
 Version:        0.5.8
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        GStreamer plugins to use VA API video acceleration
 
 License:        LGPLv2+
@@ -17,6 +17,12 @@ BuildRequires:  libva-devel >= 1.1.0
 BuildRequires:  libdrm-devel
 BuildRequires:  libudev-devel
 BuildRequires:  libGL-devel
+%{!?_without_wayland:
+BuildRequires:  wayland-devel
+BuildRequires:  pkgconfig(wayland-client) >= 1
+BuildRequires:  pkgconfig(wayland-scanner) >= 1
+BuildRequires:  pkgconfig(wayland-server) >= 1
+}
 
 %description
 
@@ -46,7 +52,10 @@ chmod -x ./tests/test-filter.c ./gst-libs/gst/vaapi/gstvaapifilter.c ./gst-libs/
 
 # Wayland support in libva isn't present - gstreamer-vaapi can't support Wayland without it
 # https://bugzilla.redhat.com/show_bug.cgi?id=1051862
-%configure --enable-static=no --disable-wayland
+%configure \
+           --enable-static=no \
+           %{?_without_wayland:--disable-wayland}
+
 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
 
@@ -76,6 +85,9 @@ find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
 %{_libdir}/pkgconfig/gstreamer-vaapi*.pc
 
 %changelog
+* Wed Apr  9 2014 Simon Farnsworth <simon.farnsworth at onelan.co.uk> - 0.5.8-4
+- Provide Wayland support now that libva includes it
+
 * Fri Feb  7 2014 Simon Farnsworth <simon at farnz.org.uk> - 0.5.8-3
 - Fix typo in spec file - Patch1 and %patch0 don't go together
 


More information about the scm-commits mailing list