add conditional build with wayland
authorStephane Desneux <stephane.desneux@eurogiciel.fr>
Mon, 7 Oct 2013 14:55:29 +0000 (16:55 +0200)
committerEwan Le Bideau-Canévet <ewan.lebideau-canevet@open.eurogiciel.org>
Mon, 17 Nov 2014 15:02:57 +0000 (16:02 +0100)
Change-Id: I04e3fe0baa23f9fdef81248a66a0e550130b2bcc

packaging/gst-plugins-bad.spec

index 773e8f30862106f6d4f1db6e52bd06c3458819a1..1d4a0bc5e41940443ce905d0ff87effaa8280666 100644 (file)
@@ -1,3 +1,4 @@
+%bcond_with wayland
 Name:           gst-plugins-bad
 Version:        1.2.0
 Release:        0
@@ -27,6 +28,9 @@ BuildRequires:  pkgconfig(libexif) >= 0.6.16
 BuildRequires:  pkgconfig(libpng) >= 1.2
 BuildRequires:  pkgconfig(openssl) >= 0.9.5
 BuildRequires:  pkgconfig(sndfile) >= 1.0.16
+%if %{with wayland}
+BuildRequires:  pkgconfig(wayland-client) >= 1.0.0
+%endif
 BuildRequires:  pkgconfig(x11)
 Requires(post): glib2-tools
 Requires(postun): glib2-tools
@@ -252,7 +256,6 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/gstreamer-%{gst_branch}/libgstmpegpsmux.so
 %{_libdir}/gstreamer-%{gst_branch}/libgstdecklink.so
 %{_libdir}/gstreamer-%{gst_branch}/libgsteglglessink.so
-
 %{_libdir}/gstreamer-%{gst_branch}/libgstaccurip.so
 %{_libdir}/gstreamer-%{gst_branch}/libgstaiff.so
 %{_libdir}/gstreamer-%{gst_branch}/libgstaudiofxbad.so
@@ -266,6 +269,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/gstreamer-%{gst_branch}/libgstvideofiltersbad.so
 %{_libdir}/gstreamer-%{gst_branch}/libgstyadif.so
 
+%if %{with wayland}
+%{_libdir}/gstreamer-%{gst_branch}/libgstwaylandsink.so
+%endif
 
 %files -n libgstphotography
 %manifest %{name}.manifest