3 # _without_alsa - without ALSA support
6 Summary: A general purpose sound file conversion tool
7 Summary(de): Mehrzweck-Sounddatei-Konvertierungs-Tool
8 Summary(fr): outil général de conversion de fichiers son
9 Summary(pl): Program do konwersji plików d¼wiêkowych
10 Summary(tr): Genel amaçlý ses dosyasý çevirme aracý
14 License: distributable
15 Group: Applications/Sound
16 Source0: http://prdownloads.sourceforge.net/sox/%{name}-%{version}.tar.gz
17 Patch0: %{name}-play.patch
18 Patch1: %{name}-soundcard.patch
19 Patch2: %{name}-install.patch
20 URL: http://sox.sourceforge.net
21 BuildRequires: autoconf
22 BuildRequires: automake
23 BuildRequires: libgsm-devel
24 %ifnarch sparc sparc64
25 %{!?_without_alsa:BuildRequires: alsa-driver-devel}
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 SoX (Sound eXchange) is a sound file format converter for Linux, UNIX
31 and DOS PCs. The self-described 'Swiss Army knife of sound tools,' SoX
32 can convert between many different digitized sound formats and perform
33 simple sound manipulation functions, including sound effects.
35 Install the sox package if you'd like to convert sound file formats or
36 manipulate some sounds.
39 SoX (Sound eXchange) jest konwerterem formatów plików d¼wiêkowych dla
40 Linuksa, Uniksa i Dosa. SoX mo¿e wykonywaæ konwersjê miêdzy wieloma
41 formatami cyfrowego d¼wiêku. Mo¿e tak¿e dokonywaæ prostych manipulacji
42 na d¼wiêku, wliczaj±c w to ró¿ne efekty d¼wiekowe.
45 Summary: The SoX sound file format converter libraries
46 Summary(pl): Biblioteka SoX do konwertowania plików d¼wiêkowych
47 Group: Development/Libraries
50 This package contains the library needed for compiling applications
51 which will use the SoX sound file format converter.
53 Install sox-devel if you want to develop applications which will use
56 %description devel -l pl
57 Ten pakiet zawiera biblioteki potrzebne do kompilacji aplikacji, które
58 bêd± wykorzystywa³y konwerter formatów plików d¼wiêkowych SoX.
72 %ifnarch sparc sparc64
73 %{!?_without_alsa:--with-alsa-dsp}
76 %{__make} PREFIX=%{_prefix}
79 rm -rf $RPM_BUILD_ROOT
81 %{__make} install install-lib \
82 DESTDIR=$RPM_BUILD_ROOT
84 echo "#!/bin/sh" > $RPM_BUILD_ROOT%{_bindir}/soxplay
85 echo "" >> $RPM_BUILD_ROOT%{_bindir}/soxplay
86 echo '%{_bindir}/sox $1 -t .au - > /dev/audio' >> $RPM_BUILD_ROOT%{_bindir}/soxplay
88 gzip -9nf Changelog README TODO INSTALL
91 rm -rf $RPM_BUILD_ROOT
94 %defattr(644,root,root,755)
96 %attr(755,root,root) %{_bindir}/sox
97 %attr(755,root,root) %{_bindir}/soxmix
98 %attr(755,root,root) %{_bindir}/play
99 %attr(755,root,root) %{_bindir}/rec
100 %attr(755,root,root) %{_bindir}/soxplay
104 %defattr(644,root,root,755)