[packages/fuse] - added libao bcond for pulseaudio
witekfl
witekfl at pld-linux.org
Tue Mar 28 16:30:31 CEST 2017
commit c7190618b6130712db7f71e6b75cafe3100ec568
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date: Tue Mar 28 16:29:23 2017 +0200
- added libao bcond for pulseaudio
fuse.spec | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/fuse.spec b/fuse.spec
index fbcd836..9d56fce 100644
--- a/fuse.spec
+++ b/fuse.spec
@@ -5,12 +5,13 @@
%bcond_without gtk2 # GTK+ 2 version
%bcond_without gtk3 # GTK+ 3 version
%bcond_without sdl # SDL version
+%bcond_with libao # libao instead of alsa
#
Summary: Free Unix Spectrum Emulator
Summary(pl.UTF-8): Darmowy uniksowy emulator ZX Spectrum
Name: fuse
Version: 1.3.4
-Release: 1
+Release: 1.1
License: GPL v2+
Group: Applications/Emulators
Source0: http://downloads.sourceforge.net/fuse-emulator/%{name}-%{version}.tar.gz
@@ -20,13 +21,14 @@ Source1: ti_m397.rom
Patch0: fuse-1.1.1-2.patch
URL: http://fuse-emulator.sourceforge.net/
BuildRequires: SDL-devel >= 1.2.4
-BuildRequires: alsa-lib-devel
+%{!?with_libao:BuildRequires: alsa-lib-devel}
BuildRequires: autoconf >= 2.59-9
BuildRequires: automake
BuildRequires: glib2-devel >= 1:2.20.0
%{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.18.0}
%{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0}
%{?with_fb:BuildRequires: gpm-devel}
+%{?with_libao:BuildRequires: libao-devel}
BuildRequires: libjsw-devel
BuildRequires: libmount-devel
BuildRequires: libpng-devel
@@ -316,6 +318,10 @@ cd build-fb
../%configure \
--program-suffix=-fb \
--with-bash-completion-dir=%{bash_compdir} \
+%if %{with_libao}
+ --without-alsa \
+ --with-libao \
+%endif
--with-fb
%{__make}
cd ..
@@ -328,6 +334,10 @@ cd build-gtk2
../%configure \
--program-suffix=-gtk \
--with-bash-completion-dir=%{bash_compdir} \
+%if %{with_libao}
+ --without-alsa \
+ --with-libao \
+%endif
--with-gtk
%{__make}
cd ..
@@ -341,6 +351,10 @@ cd build-gtk3
--enable-gtk3 \
--program-suffix=-gtk3 \
--with-bash-completion-dir=%{bash_compdir} \
+%if %{with_libao}
+ --without-alsa \
+ --with-libao \
+%endif
--with-gtk
%{__make}
cd ..
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/fuse.git/commitdiff/c7190618b6130712db7f71e6b75cafe3100ec568
More information about the pld-cvs-commit
mailing list