]> git.pld-linux.org Git - packages/sox.git/commitdiff
- bcond_off_alsa
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 3 Feb 2001 22:20:03 +0000 (22:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    sox.spec -> 1.7

sox.spec

index d717715b1f6c82f7f415b2233473a2c05519de56..7a033d4a190688c9b2255754ae15fa98adc99f3d 100644 (file)
--- a/sox.spec
+++ b/sox.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+# bcond_off_alsa - without ALSA support
+#
 Summary:       A general purpose sound file conversion tool.
 Name:          sox
 Version:       12.17
@@ -10,7 +14,7 @@ Patch0:               sox-12.15-paths.patch
 Patch1:                sox-makefile.patch
 Patch2:                sox-play.patch 
 BuildRequires: libgsm-devel
-BuildRequires: alsa-driver-devel
+%{!?bcond_off_alsa:BuildRequires:      alsa-driver-devel}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -41,7 +45,9 @@ SoX.
 %patch2 -p1
 
 %build
-%configure --with-alsa-dsp --with-oss-dsp
+%configure --with-oss-dsp \
+       %{!?bcond_off_alsa:--with-alsa-dsp}
+
 %{__make} PREFIX=%{_prefix} RPM_OPT_FLAGS="$RPM_OPT_FLAGS" 
 
 %install
This page took 0.048905 seconds and 4 git commands to generate.