packaging: add conditional build with wayland
authorStephane Desneux <stephane.desneux@eurogiciel.fr>
Mon, 7 Oct 2013 14:55:29 +0000 (16:55 +0200)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Tue, 18 Nov 2014 14:00:32 +0000 (15:00 +0100)
Change-Id: I04e3fe0baa23f9fdef81248a66a0e550130b2bcc

packaging/gst-plugins-bad.spec

index 773e8f3..1d4a0bc 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