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(tr): Genel amaçlý ses dosyasý çevirme aracý
12 LIcense: Distributable
13 Group: Applications/Sound
14 Group(de): Applikationen/Laut
15 Group(pl): Aplikacje/D¼wiêk
16 Source0: http://home.sprynet.com/sprynet/cbagwell/%{name}-%{version}.tar.gz
17 Patch0: %{name}-paths.patch
18 Patch1: %{name}-makefile.patch
19 Patch2: %{name}-play.patch
20 Patch3: %{name}-types.patch
21 Patch4: %{name}-saywhat.patch
22 PAtch5: %{name}-soundcard.patch
23 URL: http://home.sprynet.com/~cbagwell/sox.html
24 BuildRequires: libgsm-devel
25 %ifnarch sparc sparc64
26 %{!?_without_alsa:BuildRequires: alsa-driver-devel}
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 SoX (Sound eXchange) is a sound file format converter for Linux, UNIX
32 and DOS PCs. The self-described 'Swiss Army knife of sound tools,' SoX
33 can convert between many different digitized sound formats and perform
34 simple sound manipulation functions, including sound effects.
36 Install the sox package if you'd like to convert sound file formats or
37 manipulate some sounds.
40 Summary: The SoX sound file format converter libraries.
41 Group: Development/Libraries
42 Group(de): Entwicklung/Libraries
43 Group(fr): Development/Librairies
44 Group(pl): Programowanie/Biblioteki
47 This package contains the library needed for compiling applications
48 which will use the SoX sound file format converter.
50 Install sox-devel if you want to develop applications which will use
66 %ifnarch sparc sparc64
67 %{!?_without_alsa:--with-alsa-dsp}
70 %{__make} PREFIX=%{_prefix}
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_mandir}/man{1,3}}
76 %{__make} install install-lib \
77 PREFIX=$RPM_BUILD_ROOT%{_prefix} \
78 MANDIR=$RPM_BUILD_ROOT%{_mandir} \
79 BINDIR=$RPM_BUILD_ROOT%{_bindir} \
80 LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
81 INCDIR=$RPM_BUILD_ROOT%{_includedir} \
82 INSTALL_DIR=$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 echo .so play.1 >$RPM_BUILD_ROOT%{_mandir}/man1/rec.1
90 gzip -9nf Changelog README TODO INSTALL
93 rm -rf $RPM_BUILD_ROOT
96 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_bindir}/sox
99 %attr(755,root,root) %{_bindir}/play
100 %attr(755,root,root) %{_bindir}/rec
101 %attr(755,root,root) %{_bindir}/soxplay
105 %defattr(644,root,root,755)