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-12.15-space.patch
11 Patch2: sox-play.patch
12 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 SoX (Sound eXchange) is a sound file format converter for Linux,
16 UNIX and DOS PCs. The self-described 'Swiss Army knife of sound
17 tools,' SoX can convert between many different digitized sound
18 formats and perform simple sound manipulation functions,
19 including sound effects.
21 Install the sox package if you'd like to convert sound file formats
22 or manipulate some sounds.
25 Summary: The SoX sound file format converter libraries.
26 Group: Development/Libraries
29 This package contains the library needed for compiling applications
30 which will use the SoX sound file format converter.
32 Install sox-devel if you want to develop applications which will use
42 make PREFIX=%{_prefix} RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
45 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_mandir}/man{1,3}}
49 make install install-lib \
50 PREFIX=$RPM_BUILD_ROOT%{_prefix} \
51 MANDIR=$RPM_BUILD_ROOT%{_mandir} \
52 INSTALL_DIR=$RPM_BUILD_ROOT
54 echo "#!/bin/sh" > $RPM_BUILD_ROOT%{_bindir}/soxplay
55 echo "" >> $RPM_BUILD_ROOT%{_bindir}/soxplay
56 echo '%{_bindir}/sox $1 -t .au - > /dev/audio' >> $RPM_BUILD_ROOT%{_bindir}/soxplay
58 strip --strip-unneeded $RPM_BUILD_ROOT%{_bindir}/sox
60 gzip -9nf Changelog README TIPS TODO CHEAT* \
61 $RPM_BUILD_ROOT%{_mandir}/man*/*
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
68 %doc {Changelog,README,TIPS,TODO,CHEAT*}.gz
69 %attr(755,root,root) %{_bindir}/sox
70 %attr(755,root,root) %{_bindir}/play
71 %attr(755,root,root) %{_bindir}/rec
72 %attr(755,root,root) %{_bindir}/soxplay
73 %{_mandir}/man1/*.1.gz
76 %defattr(644,root,root,755)
78 %{_mandir}/man3/*.3.gz