From: Szymon Siwek Date: Tue, 2 Jan 2007 20:12:34 +0000 (+0000) Subject: - added bcond libresample - audacity uses one of libsamplerate, libresample X-Git-Tag: auto/ac/audacity-1_3_2-2~1 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=2bde87a7216cad456a3d769ec758d3e3049f396c;p=packages%2Faudacity.git - added bcond libresample - audacity uses one of libsamplerate, libresample Changed files: audacity.spec -> 1.65 --- diff --git a/audacity.spec b/audacity.spec index 6b6303f..ec21eb7 100644 --- a/audacity.spec +++ b/audacity.spec @@ -1,5 +1,6 @@ # TODO: # internal portaudio crashes when only OSS is available on startup +%bcond_with libresample # using libresample (default libsamplerate) Summary: Audacity - manipulate digital audio waveforms Summary(pl): Audacity - narzêdzie do obróbki plików d¼wiêkowych Summary(ru): Êðîññïëàòôîðìåííûé çâóêîâîé ðåäàêòîð @@ -28,8 +29,8 @@ BuildRequires: gettext-devel BuildRequires: libid3tag-devel >= 0.15.0b-2 BuildRequires: libjpeg-devel BuildRequires: libmad-devel >= 0.14.2b-4 -BuildRequires: libresample-devel >= 0.1.3 -BuildRequires: libsamplerate-devel >= 0.1.2 +%{?with_libresample:BuildRequires: libresample-devel >= 0.1.3} +%{!?with_libresample:BuildRequires: libsamplerate-devel >= 0.1.2} BuildRequires: libsndfile-devel >= 1.0.0 BuildRequires: libstdc++-devel BuildRequires: libvorbis-devel >= 1:1.0 @@ -83,10 +84,15 @@ cd ../.. export WX_CONFIG="`which wx-gtk2-unicode-config`" %configure \ +%if %{with libresample} + --with-libresample=system \ +%else + --with-libresample=no \ + --with-libsamplerate=system \ +%endif --with-help \ --with-id3tag=system \ --with-libmad=system \ - --with-libsamplerate=system \ --with-libsndfile=system \ --with-libflac=system \ --with-vorbis=system