#
# Conditional build:
-# _without_alsa - without ALSA support
+%bcond_without alsa # without ALSA support
#
-
-%define _pre pre2
-
Summary: A general purpose sound file conversion tool
Summary(de): Mehrzweck-Sounddatei-Konvertierungs-Tool
Summary(es): Herramienta para conversión de archivos de sonido
Summary(tr): Genel amaçlý ses dosyasý çevirme aracý
Summary(uk): õÔÉ̦ÔÁ ÚÁÇÁÌØÎÏÇÏ ÐÒÉÚÎÁÞÅÎÎÑ ÄÌÑ ÒÏÂÏÔÉ ¦Ú Ú×ÕËÏ×ÉÍÉ ÆÁÊÌÁÍÉ
Name: sox
-Version: 12.17.4
-Release: 0.%{_pre}.1
+Version: 12.17.6
+Release: 1
License: distributable
Group: Applications/Sound
-Source0: http://sox.sourceforge.net/%{name}-%{version}-%{_pre}.tar.gz
+Source0: http://dl.sourceforge.net/sox/%{name}-%{version}.tar.gz
+# Source0-md5: ea368e7baf6618a2116f3ed6c111bd4a
Patch0: %{name}-play.patch
-Patch1: %{name}-soundcard.patch
-Patch2: %{name}-install.patch
+Patch1: %{name}-install.patch
URL: http://sox.sourceforge.net/
-BuildRequires: autoconf
+%{?with_alsa:BuildRequires: alsa-driver-devel}
BuildRequires: automake
-BuildRequires: libgsm-devel
+BuildRequires: lame-libs-devel
+BuildRequires: libmad-devel
BuildRequires: libvorbis-devel >= 1:1.0
-%ifnarch sparc sparc64
-%{!?_without_alsa:BuildRequires: alsa-driver-devel}
-%endif
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
SoX (Sound eXchange) jest konwerterem formatów plików d¼wiêkowych dla
Linuksa, Uniksa i Dosa. SoX mo¿e wykonywaæ konwersjê miêdzy wieloma
formatami cyfrowego d¼wiêku. Mo¿e tak¿e dokonywaæ prostych manipulacji
-na d¼wiêku, wliczaj±c w to ró¿ne efekty d¼wiekowe.
+na d¼wiêku, wliczaj±c w to ró¿ne efekty d¼wiêkowe.
%description -l ru
ëÁË ÇÏ×ÏÒÉÔÓÑ × ÄÏËÕÍÅÎÔÁÃÉÉ, "Û×ÅÊÃÁÒÓËÉÊ ÁÒÍÅÊÓËÉÊ ÎÏÖ Ú×ÕËÏ×ÙÈ
bibliotecas do sox.
%prep
-%setup -q -n %{name}
+%setup -q
%patch0 -p1
%patch1 -p1
-%patch2 -p1
%build
-%{__aclocal}
-%{__autoconf}
+cp -f /usr/share/automake/config.sub .
%configure \
--with-oss-dsp \
--with-gsm \
-%ifnarch sparc sparc64
- %{!?_without_alsa:--with-alsa-dsp}
-%endif
+ %{?with_alsa:--with-alsa-dsp}
-%{__make} PREFIX=%{_prefix}
+%{__make} \
+ PREFIX=%{_prefix}
%install
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc monkey.* Changelog README TODO
+%doc src/monkey.* Changelog README TODO
%attr(755,root,root) %{_bindir}/[!l]*
%{_mandir}/man1/*