]> git.pld-linux.org Git - packages/sox.git/blame - sox.spec
- macros
[packages/sox.git] / sox.spec
CommitLineData
14e44849
JR
1Summary: A general purpose sound file conversion tool.
2Name: sox
3Version: 12.15
4Release: 5
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
10Patch1: sox-12.15-space.patch
11Patch2: sox-play.patch
12BuildRoot: /tmp/%{name}-%{version}-root
6563b505
JR
13
14%description
15SoX (Sound eXchange) is a sound file format converter for Linux,
16UNIX and DOS PCs. The self-described 'Swiss Army knife of sound
17tools,' SoX can convert between many different digitized sound
18formats and perform simple sound manipulation functions,
19including sound effects.
20
21Install the sox package if you'd like to convert sound file formats
22or manipulate some sounds.
23
14e44849
JR
24%package devel
25Summary: The SoX sound file format converter libraries.
26Group: Development/Libraries
6563b505 27
14e44849 28%description devel
6563b505
JR
29This package contains the library needed for compiling applications
30which will use the SoX sound file format converter.
31
32Install sox-devel if you want to develop applications which will use
33SoX.
34
35%prep
36%setup -q
14e44849
JR
37%patch0 -p1
38%patch1 -p1
39%patch2 -p1
6563b505
JR
40
41%build
14e44849 42make PREFIX=%{_prefix} RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
6563b505
JR
43
44%install
45rm -rf $RPM_BUILD_ROOT
46
14e44849 47install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_mandir}/man{1,3}}
6563b505 48
14e44849
JR
49make install install-lib \
50 PREFIX=$RPM_BUILD_ROOT%{_prefix} \
51 MANDIR=$RPM_BUILD_ROOT%{_mandir} \
52 INSTALL_DIR=$RPM_BUILD_ROOT
6563b505 53
14e44849
JR
54echo "#!/bin/sh" > $RPM_BUILD_ROOT%{_bindir}/soxplay
55echo "" >> $RPM_BUILD_ROOT%{_bindir}/soxplay
56echo '%{_bindir}/sox $1 -t .au - > /dev/audio' >> $RPM_BUILD_ROOT%{_bindir}/soxplay
6563b505 57
14e44849
JR
58strip --strip-unneeded $RPM_BUILD_ROOT%{_bindir}/sox
59
60gzip -9nf Changelog README TIPS TODO CHEAT* \
61 $RPM_BUILD_ROOT%{_mandir}/man*/*
6563b505
JR
62
63%clean
64rm -rf $RPM_BUILD_ROOT
65
66%files
14e44849
JR
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
74
75%files devel
76%defattr(644,root,root,755)
77%{_libdir}/libst.a
78%{_mandir}/man3/*.3.gz
This page took 0.095564 seconds and 4 git commands to generate.