1 Summary: A general purpose sound file conversion tool.
5 Copyright: distributable
6 Group: Applications/Multimedia
7 Source: http://home.sprynet.com/sprynet/cbagwell/%{name}-%{version}.tar.gz
8 Url: http://home.sprynet.com/sprynet/cbagwell/
9 Patch0: sox-12.15-paths.patch
10 Patch1: sox-makefile.patch
11 Patch2: sox-play.patch
12 BuildRequires: libgsm-devel
13 BuildRequires: alsa-driver-devel
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 SoX (Sound eXchange) is a sound file format converter for Linux,
18 UNIX and DOS PCs. The self-described 'Swiss Army knife of sound
19 tools,' SoX can convert between many different digitized sound
20 formats and perform simple sound manipulation functions,
21 including sound effects.
23 Install the sox package if you'd like to convert sound file formats
24 or manipulate some sounds.
27 Summary: The SoX sound file format converter libraries.
28 Group: Development/Libraries
31 This package contains the library needed for compiling applications
32 which will use the SoX sound file format converter.
34 Install sox-devel if you want to develop applications which will use
44 %configure --with-alsa-dsp --with-oss-dsp
45 %{__make} PREFIX=%{_prefix} RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
48 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_mandir}/man{1,3}}
52 %{__make} install install-lib \
53 PREFIX=$RPM_BUILD_ROOT%{_prefix} \
54 MANDIR=$RPM_BUILD_ROOT%{_mandir} \
55 BINDIR=$RPM_BUILD_ROOT%{_bindir} \
56 LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
57 INCDIR=$RPM_BUILD_ROOT%{_includedir} \
58 INSTALL_DIR=$RPM_BUILD_ROOT
60 echo "#!/bin/sh" > $RPM_BUILD_ROOT%{_bindir}/soxplay
61 echo "" >> $RPM_BUILD_ROOT%{_bindir}/soxplay
62 echo '%{_bindir}/sox $1 -t .au - > /dev/audio' >> $RPM_BUILD_ROOT%{_bindir}/soxplay
64 echo .so play.1 >$RPM_BUILD_ROOT%{_mandir}/man1/rec.1
67 gzip -9nf Changelog README TODO INSTALL
70 rm -rf $RPM_BUILD_ROOT
73 %defattr(644,root,root,755)
74 %doc {Changelog,README,TODO}.gz monkey.*
75 %attr(755,root,root) %{_bindir}/sox
76 %attr(755,root,root) %{_bindir}/play
77 %attr(755,root,root) %{_bindir}/rec
78 %attr(755,root,root) %{_bindir}/soxplay
82 %defattr(644,root,root,755)