]> git.pld-linux.org Git - packages/sox.git/blame - sox.spec
- updated to 12.17
[packages/sox.git] / sox.spec
CommitLineData
14e44849
JR
1Summary: A general purpose sound file conversion tool.
2Name: sox
a595594e 3Version: 12.17
4Release: 1
14e44849
JR
5Copyright: distributable
6Group: Applications/Multimedia
7Source: http://home.sprynet.com/sprynet/cbagwell/%{name}-%{version}.tar.gz
8Url: http://home.sprynet.com/sprynet/cbagwell/
9Patch0: sox-12.15-paths.patch
a595594e 10Patch1: sox-makefile.patch
14e44849 11Patch2: sox-play.patch
a595594e 12BuildRequires: libgsm-devel
13BuildRequires: alsa-driver-devel
5eef0c33 14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
6563b505
JR
15
16%description
17SoX (Sound eXchange) is a sound file format converter for Linux,
18UNIX and DOS PCs. The self-described 'Swiss Army knife of sound
19tools,' SoX can convert between many different digitized sound
20formats and perform simple sound manipulation functions,
21including sound effects.
22
23Install the sox package if you'd like to convert sound file formats
24or manipulate some sounds.
25
14e44849
JR
26%package devel
27Summary: The SoX sound file format converter libraries.
28Group: Development/Libraries
6563b505 29
14e44849 30%description devel
6563b505
JR
31This package contains the library needed for compiling applications
32which will use the SoX sound file format converter.
33
34Install sox-devel if you want to develop applications which will use
35SoX.
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
48rm -rf $RPM_BUILD_ROOT
49
14e44849 50install -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
60echo "#!/bin/sh" > $RPM_BUILD_ROOT%{_bindir}/soxplay
61echo "" >> $RPM_BUILD_ROOT%{_bindir}/soxplay
62echo '%{_bindir}/sox $1 -t .au - > /dev/audio' >> $RPM_BUILD_ROOT%{_bindir}/soxplay
6563b505 63
a595594e 64echo .so play.1 >$RPM_BUILD_ROOT%{_mandir}/man1/rec.1
14e44849 65
a595594e 66
67gzip -9nf Changelog README TODO INSTALL
6563b505
JR
68
69%clean
70rm -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/*
This page took 0.068277 seconds and 4 git commands to generate.