-#
-# Conditional build:
-# _without_alsa - without ALSA support
+# Conditional build:
+%bcond_without alsa # without ALSA support
#
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(fr): outil général de conversion de fichiers son
Summary(pl): Program do konwersji plików d¼wiêkowych
+Summary(pt_BR): Ferramenta para conversão de arquivos de som
+Summary(ru): õÔÉÌÉÔÁ ÏÂÝÅÇÏ ÎÁÚÎÁÞÅÎÉÑ ÄÌÑ ÒÁÂÏÔÙ ÓÏ Ú×ÕËÏ×ÙÍÉ ÆÁÊÌÁÍÉ
Summary(tr): Genel amaçlý ses dosyasý çevirme aracý
+Summary(uk): õÔÉ̦ÔÁ ÚÁÇÁÌØÎÏÇÏ ÐÒÉÚÎÁÞÅÎÎÑ ÄÌÑ ÒÏÂÏÔÉ ¦Ú Ú×ÕËÏ×ÉÍÉ ÆÁÊÌÁÍÉ
Name: sox
-Version: 12.17.1
+Version: 12.17.5
Release: 3
-LIcense: Distributable
+License: distributable
Group: Applications/Sound
-Group(de): Applikationen/Laut
-Group(pl): Aplikacje/D¼wiêk
-Source0: http://home.sprynet.com/sprynet/cbagwell/%{name}-%{version}.tar.gz
-Patch0: %{name}-paths.patch
-Patch1: %{name}-makefile.patch
-Patch2: %{name}-play.patch
-Patch3: %{name}-types.patch
-Patch4: %{name}-saywhat.patch
-PAtch5: %{name}-soundcard.patch
-URL: http://home.sprynet.com/~cbagwell/sox.html
+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
-%ifnarch sparc sparc64
-%{!?_without_alsa:BuildRequires: alsa-driver-devel}
-%endif
+BuildRequires: libmad-devel
+BuildRequires: libvorbis-devel >= 1:1.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Install the sox package if you'd like to convert sound file formats or
manipulate some sounds.
+%description -l es
+sox se autodenomina "navaja suiza de las herramientas de sonido".
+Entiende varios formatos de sonidos digitalizados, pudiendo hacer
+conversiones entre estos formatos y desempeñar funciones sencillas de
+manejo de sonido.
+
%description -l pl
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.
+%description -l ru
+ëÁË ÇÏ×ÏÒÉÔÓÑ × ÄÏËÕÍÅÎÔÁÃÉÉ, "Û×ÅÊÃÁÒÓËÉÊ ÁÒÍÅÊÓËÉÊ ÎÏÖ Ú×ÕËÏ×ÙÈ
+ÕÔÉÌÉÔ", sox ÕÍÅÅÔ ËÏÎ×ÅÒÔÉÒÏ×ÁÔØ Ú×ÕËÏ×ÙÅ ÆÁÊÌÙ ÓÁÍÙÈ ÒÁÚÎÏÏÂÒÁÚÎÙÈ
+ÆÏÒÍÁÔÏ× É ÐÒÏÉÚ×ÏÄÉÔØ ÎÅÓÌÏÖÎÕÀ ÉÈ ÏÂÒÁÂÏÔËÕ. ó ÐÒÉÌÁÇÁÅÍÙÍ ÓËÒÉÐÔÏÍ
+ÔÁËÖÅ ÍÏÖÅÔ ÂÙÔØ ÉÓÐÏÌØÚÏ×ÁÎ ÄÌÑ ÐÒÏÉÇÒÙ×ÁÎÉÑ Ú×ÕËÏ×ÙÈ ÆÁÊÌÏ×.
+
+%description -l pt_BR
+O sox se autodenomina "canivete suíço das ferramentas de som". Ele
+entende vários formatos de sons digitalizados, podendo fazer
+conversões entre esses formatos e desempenhar funções simples de
+manipulação de som.
+
+%description -l uk
+÷ ÄÏËÕÍÅÎÔÁæ§ ÃÅÊ ÐÁËÅÔ ÎÁÚ×ÁÎÏ "Û×ÅÊÃÁÒÓØËÉÍ ÁÒͦÊÓØËÉÍ ÎÏÖÉËÏÍ
+Ú×ÕËÏ×ÉÈ ÕÔÉ̦Ô". ÷¦Î ×ͦ¤ ËÏÎ×ÅÒÔÕ×ÁÔÉ Ú×ÕËÏצ ÆÁÊÌÉ
+ÎÁÊÒ¦ÚÎÏÍÁΦÔΦÛÉÈ ÆÏÒÍÁÔ¦× ÔÁ ×ÉËÏÎÕ×ÁÔÉ ÎÅÓËÌÁÄÎÕ §È ÏÂÒÏÂËÕ. ÷
+ÐÁËÅÔ ×ÈÏÄÉÔØ ÓËÒÉÐÔ, ÑËÉÊ ÍÏÖÎÁ ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ ÄÌÑ ÐÒÏÇÒÁ×ÁÎÎÑ
+Ú×ÕËÏ×ÉÈ ÆÁÊ̦×.
+
%package devel
-Summary: The SoX sound file format converter libraries.
+Summary: The SoX sound file format converter libraries
+Summary(pl): Biblioteka SoX do konwertowania plików d¼wiêkowych
Group: Development/Libraries
-Group(de): Entwicklung/Libraries
-Group(fr): Development/Librairies
-Group(pl): Programowanie/Biblioteki
-%description devel
+%description devel
This package contains the library needed for compiling applications
which will use the SoX sound file format converter.
Install sox-devel if you want to develop applications which will use
SoX.
+%description devel -l es
+Bibliotecas que pueden ser usadas para compilar aplicaciones que usen
+las bibliotecas del sox.
+
%description devel -l pl
-Tan pakiet zawiera biblioteki potrzebne do kompilacji aplikacji, które
+Ten pakiet zawiera biblioteki potrzebne do kompilacji aplikacji, które
bêd± wykorzystywa³y konwerter formatów plików d¼wiêkowych SoX.
+%description devel -l pt_BR
+Bibliotecas que podem ser usadas para compilar aplicações que usem as
+bibliotecas do sox.
+
%prep
-%setup -q
+%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
-%patch3 -p1
-%patch4 -p1
-%patch5 -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}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_mandir}/man{1,3}}
%{__make} install install-lib \
- PREFIX=$RPM_BUILD_ROOT%{_prefix} \
- MANDIR=$RPM_BUILD_ROOT%{_mandir} \
- BINDIR=$RPM_BUILD_ROOT%{_bindir} \
- LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
- INCDIR=$RPM_BUILD_ROOT%{_includedir} \
- INSTALL_DIR=$RPM_BUILD_ROOT
+ DESTDIR=$RPM_BUILD_ROOT
echo "#!/bin/sh" > $RPM_BUILD_ROOT%{_bindir}/soxplay
echo "" >> $RPM_BUILD_ROOT%{_bindir}/soxplay
echo '%{_bindir}/sox $1 -t .au - > /dev/audio' >> $RPM_BUILD_ROOT%{_bindir}/soxplay
-echo .so play.1 >$RPM_BUILD_ROOT%{_mandir}/man1/rec.1
-
-gzip -9nf Changelog README TODO INSTALL
-
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc *.gz monkey.*
-%attr(755,root,root) %{_bindir}/sox
-%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}/st.h
+%{_includedir}/*.h
%{_mandir}/man3/*