]> git.pld-linux.org Git - packages/sox.git/blob - sox.spec
- changed all BuildRoot definitons
[packages/sox.git] / sox.spec
1 Summary:        A general purpose sound file conversion tool.
2 Name:           sox
3 Version:        12.15
4 Release:        5
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)
13
14 %description
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.
20
21 Install the sox package if you'd like to convert sound file formats
22 or manipulate some sounds.
23
24 %package devel
25 Summary:        The SoX sound file format converter libraries.
26 Group:          Development/Libraries
27
28 %description devel 
29 This package contains the library needed for compiling applications
30 which will use the SoX sound file format converter.
31
32 Install sox-devel if you want to develop applications which will use
33 SoX.
34
35 %prep
36 %setup -q 
37 %patch0 -p1
38 %patch1 -p1
39 %patch2 -p1
40
41 %build
42 make PREFIX=%{_prefix} RPM_OPT_FLAGS="$RPM_OPT_FLAGS" 
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
47 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_mandir}/man{1,3}}
48
49 make install install-lib \
50         PREFIX=$RPM_BUILD_ROOT%{_prefix} \
51         MANDIR=$RPM_BUILD_ROOT%{_mandir} \
52         INSTALL_DIR=$RPM_BUILD_ROOT 
53
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
57
58 strip --strip-unneeded $RPM_BUILD_ROOT%{_bindir}/sox
59
60 gzip -9nf Changelog README TIPS TODO CHEAT* \
61         $RPM_BUILD_ROOT%{_mandir}/man*/*
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %files
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.063969 seconds and 4 git commands to generate.