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://home.sprynet.com/sprynet/cbagwell/%{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://home.sprynet.com/~cbagwell/sox.html
25 BuildRequires: libgsm-devel
26 %ifnarch sparc sparc64
27 %{!?_without_alsa:BuildRequires: alsa-driver-devel}
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 SoX (Sound eXchange) is a sound file format converter for Linux, UNIX
33 and DOS PCs. The self-described 'Swiss Army knife of sound tools,' SoX
34 can convert between many different digitized sound formats and perform
35 simple sound manipulation functions, including sound effects.
37 Install the sox package if you'd like to convert sound file formats or
38 manipulate some sounds.
41 SoX (Sound eXchange) jest konwerterem formatów plików d¼wiêkowych dla
42 Linuksa, Uniksa i Dosa. SoX mo¿e wykonywaæ konwersjê miêdzy wieloma
43 formatami cyfrowego d¼wiêku. Mo¿e tak¿e dokonywaæ prostych manipulacji
44 na d¼wiêku, wliczaj±c w to ró¿ne efekty d¼wiekowe.
47 Summary: The SoX sound file format converter libraries.
48 Group: Development/Libraries
49 Group(de): Entwicklung/Libraries
50 Group(fr): Development/Librairies
51 Group(pl): Programowanie/Biblioteki
54 This package contains the library needed for compiling applications
55 which will use the SoX sound file format converter.
57 Install sox-devel if you want to develop applications which will use
60 %description devel -l pl
61 Tan pakiet zawiera biblioteki potrzebne do kompilacji aplikacji, które
62 bêd± wykorzystywa³y konwerter formatów plików d¼wiêkowych SoX.
77 %ifnarch sparc sparc64
78 %{!?_without_alsa:--with-alsa-dsp}
81 %{__make} PREFIX=%{_prefix}
84 rm -rf $RPM_BUILD_ROOT
85 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_mandir}/man{1,3}}
87 %{__make} install install-lib \
88 PREFIX=$RPM_BUILD_ROOT%{_prefix} \
89 MANDIR=$RPM_BUILD_ROOT%{_mandir} \
90 BINDIR=$RPM_BUILD_ROOT%{_bindir} \
91 LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
92 INCDIR=$RPM_BUILD_ROOT%{_includedir} \
93 INSTALL_DIR=$RPM_BUILD_ROOT
95 echo "#!/bin/sh" > $RPM_BUILD_ROOT%{_bindir}/soxplay
96 echo "" >> $RPM_BUILD_ROOT%{_bindir}/soxplay
97 echo '%{_bindir}/sox $1 -t .au - > /dev/audio' >> $RPM_BUILD_ROOT%{_bindir}/soxplay
99 echo .so play.1 >$RPM_BUILD_ROOT%{_mandir}/man1/rec.1
101 gzip -9nf Changelog README TODO INSTALL
104 rm -rf $RPM_BUILD_ROOT
107 %defattr(644,root,root,755)
109 %attr(755,root,root) %{_bindir}/sox
110 %attr(755,root,root) %{_bindir}/play
111 %attr(755,root,root) %{_bindir}/rec
112 %attr(755,root,root) %{_bindir}/soxplay
116 %defattr(644,root,root,755)