-#
# Conditional build:
-# _without_alsa - without ALSA support
+%bcond_without alsa # without ALSA support
#
Summary: A general purpose sound file conversion tool
Summary(de): Mehrzweck-Sounddatei-Konvertierungs-Tool
Summary(tr): Genel amaçlý ses dosyasý çevirme aracý
Summary(uk): õÔÉ̦ÔÁ ÚÁÇÁÌØÎÏÇÏ ÐÒÉÚÎÁÞÅÎÎÑ ÄÌÑ ÒÏÂÏÔÉ ¦Ú Ú×ÕËÏ×ÉÍÉ ÆÁÊÌÁÍÉ
Name: sox
-Version: 12.17.3
-Release: 9
+Version: 12.17.5
+Release: 3
License: distributable
Group: Applications/Sound
-Source0: http://prdownloads.sourceforge.net/sox/%{name}-%{version}.tar.gz
+Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+# Source0-md5: 53a3ebe3da0f5845770fd99e2ff0a965
Patch0: %{name}-play.patch
Patch1: %{name}-soundcard.patch
Patch2: %{name}-install.patch
URL: http://sox.sourceforge.net/
+%{?with_alsa:BuildRequires: alsa-driver-devel}
BuildRequires: autoconf
BuildRequires: automake
+BuildRequires: lame-libs-devel
BuildRequires: libgsm-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
%patch2 -p1
%build
-aclocal
-%{__autoconf}
+#%%{__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}
%files
%defattr(644,root,root,755)
-%doc monkey.* Changelog README TODO INSTALL
-%attr(755,root,root) %{_bindir}/sox
-%attr(755,root,root) %{_bindir}/soxmix
-%attr(755,root,root) %{_bindir}/play
-%attr(755,root,root) %{_bindir}/rec
-%attr(755,root,root) %{_bindir}/soxplay
+%doc monkey.* Changelog README TODO
+%attr(755,root,root) %{_bindir}/[!l]*
%{_mandir}/man1/*
%files devel
%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/libst-config
%{_libdir}/libst.a
%{_includedir}/*.h
%{_mandir}/man3/*