[espeak] Conditional portaudio support, portaudio is disabled by default

Jaroslav Škarvada jskarvad at fedoraproject.org
Tue Mar 6 07:57:20 UTC 2012


commit 3c53b362a5eb6d6996cfcc519a8a14f047e2643c
Author: Jaroslav Škarvada <jskarvad at redhat.com>
Date:   Tue Mar 6 08:57:15 2012 +0100

    Conditional portaudio support, portaudio is disabled by default
    
      Resolves: rhbz#799137

 espeak.spec |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/espeak.spec b/espeak.spec
index 75483f6..90fc7c6 100644
--- a/espeak.spec
+++ b/espeak.spec
@@ -1,12 +1,15 @@
-%if 0%{?rhel}
-%global backend pulseaudio
-%else
+# package options
+%global with_portaudio no
+
+%if "%{with_portaudio}" == "yes"
 %global backend runtime
+%else
+%global backend pulseaudio
 %endif
 
 Name:           espeak
 Version:        1.46.02
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Software speech synthesizer (text-to-speech)
 
 Group:          Applications/Multimedia
@@ -17,7 +20,7 @@ Source1:        espeak.1
 Patch0:         espeak-1.23-makefile_nostaticlibs.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-%if ! 0%{?rhel}
+%if "%{with_portaudio}" == "yes"
 BuildRequires:  portaudio-devel
 %endif
 BuildRequires:  pulseaudio-libs-devel gcc-c++
@@ -110,6 +113,10 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Tue Mar  6 2012 Jaroslav Škarvada <jskarvad at redhat.com> - 1.46.02-3
+- Conditional portaudio support, portaudio is disabled by default
+  Resolves: rhbz#799137
+
 * Fri Jan 27 2012 Jaroslav Škarvada <jskarvad at redhat.com> - 1.46.02-2
 - Drop portaudio for RHEL
 


More information about the scm-commits mailing list