]> git.pld-linux.org Git - packages/sox.git/blob - sox.spec
- updated to 12.17
[packages/sox.git] / sox.spec
1 Summary:        A general purpose sound file conversion tool.
2 Name:           sox
3 Version:        12.17
4 Release:        1
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)
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
26 %package devel
27 Summary:        The SoX sound file format converter libraries.
28 Group:          Development/Libraries
29
30 %description devel 
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 
39 %patch0 -p1
40 %patch1 -p1
41 %patch2 -p1
42
43 %build
44 %configure --with-alsa-dsp --with-oss-dsp
45 %{__make} PREFIX=%{_prefix} RPM_OPT_FLAGS="$RPM_OPT_FLAGS" 
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49
50 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_mandir}/man{1,3}}
51
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 
59
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
63
64 echo .so play.1 >$RPM_BUILD_ROOT%{_mandir}/man1/rec.1
65
66
67 gzip -9nf Changelog README TODO INSTALL
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %files
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
79 %{_mandir}/man1/*
80
81 %files devel
82 %defattr(644,root,root,755)
83 %{_libdir}/libst.a
84 %{_includedir}/st.h
85 %{_mandir}/man3/*
This page took 0.080315 seconds and 4 git commands to generate.