]>
Commit | Line | Data |
---|---|---|
14e44849 JR |
1 | Summary: A general purpose sound file conversion tool. |
2 | Name: sox | |
a595594e | 3 | Version: 12.17 |
4 | Release: 1 | |
14e44849 JR |
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 | |
a595594e | 10 | Patch1: sox-makefile.patch |
14e44849 | 11 | Patch2: sox-play.patch |
a595594e | 12 | BuildRequires: libgsm-devel |
13 | BuildRequires: alsa-driver-devel | |
5eef0c33 | 14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
6563b505 JR |
15 | |
16 | %description | |
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. | |
22 | ||
23 | Install the sox package if you'd like to convert sound file formats | |
24 | or manipulate some sounds. | |
25 | ||
14e44849 JR |
26 | %package devel |
27 | Summary: The SoX sound file format converter libraries. | |
28 | Group: Development/Libraries | |
6563b505 | 29 | |
14e44849 | 30 | %description devel |
6563b505 JR |
31 | This package contains the library needed for compiling applications |
32 | which will use the SoX sound file format converter. | |
33 | ||
34 | Install sox-devel if you want to develop applications which will use | |
35 | SoX. | |
36 | ||
37 | %prep | |
38 | %setup -q | |
14e44849 JR |
39 | %patch0 -p1 |
40 | %patch1 -p1 | |
41 | %patch2 -p1 | |
6563b505 JR |
42 | |
43 | %build | |
a595594e | 44 | %configure --with-alsa-dsp --with-oss-dsp |
51340381 | 45 | %{__make} PREFIX=%{_prefix} RPM_OPT_FLAGS="$RPM_OPT_FLAGS" |
6563b505 JR |
46 | |
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
14e44849 | 50 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_mandir}/man{1,3}} |
6563b505 | 51 | |
51340381 | 52 | %{__make} install install-lib \ |
14e44849 JR |
53 | PREFIX=$RPM_BUILD_ROOT%{_prefix} \ |
54 | MANDIR=$RPM_BUILD_ROOT%{_mandir} \ | |
a595594e | 55 | BINDIR=$RPM_BUILD_ROOT%{_bindir} \ |
56 | LIBDIR=$RPM_BUILD_ROOT%{_libdir} \ | |
57 | INCDIR=$RPM_BUILD_ROOT%{_includedir} \ | |
14e44849 | 58 | INSTALL_DIR=$RPM_BUILD_ROOT |
6563b505 | 59 | |
14e44849 JR |
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 | |
6563b505 | 63 | |
a595594e | 64 | echo .so play.1 >$RPM_BUILD_ROOT%{_mandir}/man1/rec.1 |
14e44849 | 65 | |
a595594e | 66 | |
67 | gzip -9nf Changelog README TODO INSTALL | |
6563b505 JR |
68 | |
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %files | |
14e44849 | 73 | %defattr(644,root,root,755) |
a595594e | 74 | %doc {Changelog,README,TODO}.gz monkey.* |
14e44849 JR |
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 | |
a595594e | 79 | %{_mandir}/man1/* |
14e44849 JR |
80 | |
81 | %files devel | |
82 | %defattr(644,root,root,755) | |
83 | %{_libdir}/libst.a | |
a595594e | 84 | %{_includedir}/st.h |
85 | %{_mandir}/man3/* |