[packages/audacity] - resampling library defaults to soxr now - updated some BRs

qboosh qboosh at pld-linux.org
Sat Jun 8 22:29:37 CEST 2013


commit 368545c29f2dcbfda1b5427b4da55b1eb2023ea2
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jun 8 22:29:30 2013 +0200

    - resampling library defaults to soxr now
    - updated some BRs

 audacity.spec | 30 +++++++++++++++++++-----------
 1 file changed, 19 insertions(+), 11 deletions(-)
---
diff --git a/audacity.spec b/audacity.spec
index d094c82..2aa3270 100644
--- a/audacity.spec
+++ b/audacity.spec
@@ -2,13 +2,18 @@
 # - internal portaudio crashes when only OSS is available on startup
 # - use system portaudio (>= 19, but relies on local changes)
 # - use system portSMF?
-# - use system ffmpeg (libavcodec >= 51.53, libavformat >= 52.12)
+# - use system ffmpeg (libavcodec >= 51.53, libavformat >= 52.12), libavutil
 # - use system sbsms (>= 1.6.0, but relies on local changes)
+# - use system libnyquist (if ever; currently it's a part of audacity project)
 #
 # Conditional build:
-%bcond_with	libresample	# using libresample (default libsamplerate)
+%bcond_with	libresample	# using libresample for resampling (default is soxr)
+%bcond_with	libsamplerate	# using libsamplerate for resampling (default is soxr)
 %bcond_with	ffmpeg		# build with ffmpeg support (currently audacity does not support ffmpeg 1.0)
 #
+%if %{without libresample} && %{without libsamplerate}
+%define	with_soxr	1
+%endif
 Summary:	Audacity - manipulate digital audio waveforms
 Summary(pl.UTF-8):	Audacity - narzędzie do obróbki plików dźwiękowych
 Summary(ru.UTF-8):	Кроссплатформенный звуковой редактор
@@ -31,18 +36,22 @@ Patch2:		%{name}-no-macos.patch
 # modified from http://audioscience.com/internet/download/drivers/released/v4/06/portaudio_asihpi_406.patch
 Patch3:		portaudio_asihpi_406.patch
 URL:		http://audacity.sourceforge.net/
+BuildRequires:	alsa-lib-devel
 BuildRequires:	autoconf >= 2.59
 BuildRequires:	automake
 BuildRequires:	expat-devel >= 1.95
 %{?with_ffmpeg:BuildRequires:	ffmpeg-devel >= 0.8.0}
 BuildRequires:	flac-c++-devel >= 1.2.0
 BuildRequires:	gettext-devel
+BuildRequires:	gtk+2-devel >= 2.0
+BuildRequires:	jack-audio-connection-kit-devel
 BuildRequires:	hpklinux-devel >= 4.06
+BuildRequires:	lame-libs-devel
 BuildRequires:	libid3tag-devel >= 0.15.0b-2
 BuildRequires:	libjpeg-devel
 BuildRequires:	libmad-devel >= 0.14.2b-4
 %{?with_libresample:BuildRequires:	libresample-devel >= 0.1.3}
-%{!?with_libresample:BuildRequires:	libsamplerate-devel >= 0.1.2}
+%{?with_libsamplerate:BuildRequires:	libsamplerate-devel >= 0.1.2}
 #BuildRequires:	libsbsms-devel >= 1.6.0
 BuildRequires:	libsndfile-devel >= 1.0.0
 BuildRequires:	libstdc++-devel
@@ -50,6 +59,7 @@ BuildRequires:	libvorbis-devel >= 1:1.0
 #BuildRequires:	portaudio-devel >= 19
 BuildRequires:	pkgconfig
 BuildRequires:	soundtouch-devel >= 1.3.0
+%{?with_soxr:BuildRequires:	soxr-devel >= 0.0.5}
 BuildRequires:	speex-devel
 BuildRequires:	twolame-devel >= 0.3.9
 BuildRequires:	unzip
@@ -62,9 +72,10 @@ Requires:	lame-libs
 Requires:	libid3tag >= 0.15.0b-2
 Requires:	libmad >= 0.14.2b-4
 %{?with_libresample:Requires:	libresample >= 0.1.3}
-%{!?with_libresample:Requires:	libsamplerate >= 0.1.2}
+%{?with_libsamplerate:Requires:	libsamplerate >= 0.1.2}
 Requires:	libsndfile >= 1.0.0
 Requires:	soundtouch >= 1.3.0
+%{?with_soxr:Requires:	soxr >= 0.0.5}
 Requires:	twolame-libs >= 0.3.9
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -112,19 +123,16 @@ 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%{!?with_ffmpeg:out}-ffmpeg \
+	--with-ffmpeg%{!?with_ffmpeg:=no} \
 	--with-help \
 	--with-id3tag=system \
 	--with-libmad=system \
+	%{?with_libresample:--with-libresample=system} \
+	%{?with_libsamplerate:--with-libsamplerate=system} \
 	--with-libsndfile=system \
 	--with-libflac=system \
 	--with-sbsms=local \
+	%{?with_soxr:--with-soxr=system} \
 	--with-vorbis=system
 
 %{__make}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/audacity.git/commitdiff/368545c29f2dcbfda1b5427b4da55b1eb2023ea2



More information about the pld-cvs-commit mailing list