From: Jakub Bogusz Date: Fri, 27 Sep 2013 16:07:11 +0000 (+0200) Subject: - added pulseaudio bcond (default is alsa, like upstream) X-Git-Tag: auto/th/swfdec-0.9.2-3~2 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=577d52d69857c64148bc1cb528fd75a190597846;p=packages%2Fswfdec.git - added pulseaudio bcond (default is alsa, like upstream) --- diff --git a/swfdec.spec b/swfdec.spec index 0200116..6db35f4 100644 --- a/swfdec.spec +++ b/swfdec.spec @@ -1,6 +1,7 @@ # # Conditional build: %bcond_without apidocs # disable gtk-doc +%bcond_with pulseaudio # use pulseaudio instead of alsa %bcond_with vivified # build (internal) Vivified Flash Debugger # Summary: Flash animations rendering library @@ -14,7 +15,7 @@ Group: Libraries Source0: http://swfdec.freedesktop.org/download/swfdec/%{majver}/%{name}-%{version}.tar.gz # Source0-md5: 7be5e39236e2d6efa61a18e83e5ab73d URL: http://swfdec.freedesktop.org/wiki/ -BuildRequires: alsa-lib-devel >= 1.0 +%{!?with_pulseaudio:BuildRequires: alsa-lib-devel >= 1.0} BuildRequires: autoconf >= 2.58 BuildRequires: automake >= 1:1.6 BuildRequires: cairo-devel >= 1.6.0 @@ -31,6 +32,7 @@ BuildRequires: libtool %{?with_vivified:BuildRequires: ming-devel >= 0.4.0-0.beta5} BuildRequires: pango-devel >= 1:1.16 BuildRequires: pkgconfig +%{?with_pulseaudio:BuildRequires: pulseaudio-devel} BuildRequires: rpmbuild(macros) >= 1.357 BuildRequires: zlib-devel >= 1.1.4 Requires: cairo >= 1.6.0 @@ -151,9 +153,10 @@ Dokumentacja API swfdec. %{__automake} %configure \ --enable-gstreamer \ - --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ --enable-gtk \ + --enable-gtk-doc%{!?with_apidocs:=no} \ %{?with_vivified:--enable-vivified} \ + %{?with_pulseaudio:--with-audio=pulse} \ --with-html-dir=%{_gtkdocdir} %{__make} -j1