]> git.pld-linux.org Git - packages/sox.git/blob - sox.spec
- build with libgsm,
[packages/sox.git] / sox.spec
1 #
2 # Conditional build:    
3 # bcond_off_alsa - without ALSA support
4 #
5 Summary:        A general purpose sound file conversion tool
6 Summary(de):    Mehrzweck-Sounddatei-Konvertierungs-Tool
7 Summary(fr):    outil général de conversion de fichiers son
8 Summary(tr):    Genel amaçlý ses dosyasý çevirme aracý
9 Name:           sox
10 Version:        12.17.1
11 Release:        3
12 LIcense:        Distributable
13 Group:          Applications/Sound
14 Group(de):      Applikationen/Laut
15 Group(pl):      Aplikacje/D¼wiêk
16 Source0:        http://home.sprynet.com/sprynet/cbagwell/%{name}-%{version}.tar.gz
17 Patch0:         %{name}-paths.patch
18 Patch1:         %{name}-makefile.patch
19 Patch2:         %{name}-play.patch
20 Patch3:         %{name}-types.patch
21 Patch4:         %{name}-saywhat.patch
22 PAtch5:         %{name}-soundcard.patch
23 URL:            http://home.sprynet.com/~cbagwell/sox.html
24 BuildRequires:  libgsm-devel
25 %ifnarch sparc sparc64
26 %{!?bcond_off_alsa:BuildRequires:       alsa-driver-devel}
27 %endif
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 SoX (Sound eXchange) is a sound file format converter for Linux, UNIX
32 and DOS PCs. The self-described 'Swiss Army knife of sound tools,' SoX
33 can convert between many different digitized sound formats and perform
34 simple sound manipulation functions, including sound effects.
35
36 Install the sox package if you'd like to convert sound file formats or
37 manipulate some sounds.
38
39 %package devel
40 Summary:        The SoX sound file format converter libraries.
41 Group:          Development/Libraries
42 Group(de):      Entwicklung/Libraries
43 Group(fr):      Development/Librairies
44 Group(pl):      Programowanie/Biblioteki
45
46 %description devel 
47 This package contains the library needed for compiling applications
48 which will use the SoX sound file format converter.
49
50 Install sox-devel if you want to develop applications which will use
51 SoX.
52
53 %prep
54 %setup -q 
55 %patch0 -p1
56 %patch1 -p1
57 %patch2 -p1
58 %patch3 -p1
59 %patch4 -p1
60 %patch5 -p1
61
62 %build
63 %configure \
64         --with-oss-dsp \
65         --with-gsm \
66 %ifnarch sparc sparc64
67         %{!?bcond_off_alsa:--with-alsa-dsp}
68 %endif
69
70 %{__make} PREFIX=%{_prefix}
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_mandir}/man{1,3}}
75
76 %{__make} install install-lib \
77         PREFIX=$RPM_BUILD_ROOT%{_prefix} \
78         MANDIR=$RPM_BUILD_ROOT%{_mandir} \
79         BINDIR=$RPM_BUILD_ROOT%{_bindir} \
80         LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
81         INCDIR=$RPM_BUILD_ROOT%{_includedir} \
82         INSTALL_DIR=$RPM_BUILD_ROOT 
83
84 echo "#!/bin/sh" > $RPM_BUILD_ROOT%{_bindir}/soxplay
85 echo "" >> $RPM_BUILD_ROOT%{_bindir}/soxplay
86 echo '%{_bindir}/sox $1 -t .au - > /dev/audio' >> $RPM_BUILD_ROOT%{_bindir}/soxplay
87
88 echo .so play.1 >$RPM_BUILD_ROOT%{_mandir}/man1/rec.1
89
90 gzip -9nf Changelog README TODO INSTALL
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %files
96 %defattr(644,root,root,755)
97 %doc *.gz monkey.*
98 %attr(755,root,root) %{_bindir}/sox
99 %attr(755,root,root) %{_bindir}/play   
100 %attr(755,root,root) %{_bindir}/rec  
101 %attr(755,root,root) %{_bindir}/soxplay
102 %{_mandir}/man1/*
103
104 %files devel
105 %defattr(644,root,root,755)
106 %{_libdir}/libst.a
107 %{_includedir}/st.h
108 %{_mandir}/man3/*
This page took 0.04085 seconds and 4 git commands to generate.