3 # _without_alsa - without ALSA support
5 Summary: A general purpose sound file conversion tool
6 Summary(de): Mehrzweck-Sounddatei-Konvertierungs-Tool
7 Summary(fr): outil général de conversion de fichiers son
8 Summary(pl): Program do konwersji plików d¼wiêkowych
9 Summary(tr): Genel amaçlý ses dosyasý çevirme aracý
13 License: distributable
14 Group: Applications/Sound
15 Group(de): Applikationen/Laut
16 Group(pl): Aplikacje/D¼wiêk
17 Source0: http://prdownloads.sourceforge.net/sox/%{name}-%{version}.tar.gz
18 Patch0: %{name}-paths.patch
19 Patch1: %{name}-makefile.patch
20 Patch2: %{name}-play.patch
21 Patch3: %{name}-types.patch
22 Patch4: %{name}-saywhat.patch
23 Patch5: %{name}-soundcard.patch
24 URL: http://sox.sourceforge.net
25 BuildRequires: autoconf
26 BuildRequires: automake
27 BuildRequires: libgsm-devel
28 %ifnarch sparc sparc64
29 %{!?_without_alsa:BuildRequires: alsa-driver-devel}
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 SoX (Sound eXchange) is a sound file format converter for Linux, UNIX
35 and DOS PCs. The self-described 'Swiss Army knife of sound tools,' SoX
36 can convert between many different digitized sound formats and perform
37 simple sound manipulation functions, including sound effects.
39 Install the sox package if you'd like to convert sound file formats or
40 manipulate some sounds.
43 SoX (Sound eXchange) jest konwerterem formatów plików d¼wiêkowych dla
44 Linuksa, Uniksa i Dosa. SoX mo¿e wykonywaæ konwersjê miêdzy wieloma
45 formatami cyfrowego d¼wiêku. Mo¿e tak¿e dokonywaæ prostych manipulacji
46 na d¼wiêku, wliczaj±c w to ró¿ne efekty d¼wiekowe.
49 Summary: The SoX sound file format converter libraries
50 Summary(pl): Biblioteka SoX do konwertowania plików d¼wiêkowych
51 Group: Development/Libraries
52 Group(de): Entwicklung/Libraries
53 Group(es): Desarrollo/Bibliotecas
54 Group(fr): Development/Librairies
55 Group(pl): Programowanie/Biblioteki
56 Group(pt_BR): Desenvolvimento/Bibliotecas
57 Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
58 Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
61 This package contains the library needed for compiling applications
62 which will use the SoX sound file format converter.
64 Install sox-devel if you want to develop applications which will use
67 %description devel -l pl
68 Ten pakiet zawiera biblioteki potrzebne do kompilacji aplikacji, które
69 bêd± wykorzystywa³y konwerter formatów plików d¼wiêkowych SoX.
86 %ifnarch sparc sparc64
87 %{!?_without_alsa:--with-alsa-dsp}
90 %{__make} PREFIX=%{_prefix}
93 rm -rf $RPM_BUILD_ROOT
94 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_mandir}/man{1,3}}
96 %{__make} install install-lib \
97 PREFIX=$RPM_BUILD_ROOT%{_prefix} \
98 MANDIR=$RPM_BUILD_ROOT%{_mandir} \
99 BINDIR=$RPM_BUILD_ROOT%{_bindir} \
100 LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
101 INCDIR=$RPM_BUILD_ROOT%{_includedir} \
102 INSTALL_DIR=$RPM_BUILD_ROOT
104 echo "#!/bin/sh" > $RPM_BUILD_ROOT%{_bindir}/soxplay
105 echo "" >> $RPM_BUILD_ROOT%{_bindir}/soxplay
106 echo '%{_bindir}/sox $1 -t .au - > /dev/audio' >> $RPM_BUILD_ROOT%{_bindir}/soxplay
108 echo .so play.1 >$RPM_BUILD_ROOT%{_mandir}/man1/rec.1
110 gzip -9nf Changelog README TODO INSTALL
113 rm -rf $RPM_BUILD_ROOT
116 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_bindir}/sox
119 %attr(755,root,root) %{_bindir}/play
120 %attr(755,root,root) %{_bindir}/rec
121 %attr(755,root,root) %{_bindir}/soxplay
125 %defattr(644,root,root,755)