]> git.pld-linux.org Git - packages/sox.git/blob - sox.spec
- fix ac/am
[packages/sox.git] / sox.spec
1 #
2 # Conditional build:    
3 # _without_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(pl):    Program do konwersji plików d¼wiêkowych
9 Summary(tr):    Genel amaçlý ses dosyasý çevirme aracý
10 Name:           sox
11 Version:        12.17.1
12 Release:        3
13 LIcense:        Distributable
14 Group:          Applications/Sound
15 Group(de):      Applikationen/Laut
16 Group(pl):      Aplikacje/D¼wiêk
17 Source0:        http://home.sprynet.com/sprynet/cbagwell/%{name}-%{version}.tar.gz
18 Patch0:         %{name}-paths.patch
19 Patch1:         %{name}-makefile.patch
20 Patch2:         %{name}-play.patch
21 Patch3:         %{name}-types.patch
22 Patch4:         %{name}-saywhat.patch
23 PAtch5:         %{name}-soundcard.patch
24 URL:            http://home.sprynet.com/~cbagwell/sox.html
25 BuildRequires:  libgsm-devel
26 %ifnarch sparc sparc64
27 %{!?_without_alsa:BuildRequires:        alsa-driver-devel}
28 %endif
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 SoX (Sound eXchange) is a sound file format converter for Linux, UNIX
33 and DOS PCs. The self-described 'Swiss Army knife of sound tools,' SoX
34 can convert between many different digitized sound formats and perform
35 simple sound manipulation functions, including sound effects.
36
37 Install the sox package if you'd like to convert sound file formats or
38 manipulate some sounds.
39
40 %description -l pl
41 SoX (Sound eXchange) jest konwerterem formatów plików d¼wiêkowych dla
42 Linuksa, Uniksa i Dosa. SoX mo¿e wykonywaæ konwersjê miêdzy wieloma
43 formatami cyfrowego d¼wiêku. Mo¿e tak¿e dokonywaæ prostych manipulacji
44 na d¼wiêku, wliczaj±c w to ró¿ne efekty d¼wiekowe.
45
46 %package devel
47 Summary:        The SoX sound file format converter libraries.
48 Group:          Development/Libraries
49 Group(de):      Entwicklung/Libraries
50 Group(fr):      Development/Librairies
51 Group(pl):      Programowanie/Biblioteki
52
53 %description devel 
54 This package contains the library needed for compiling applications
55 which will use the SoX sound file format converter.
56
57 Install sox-devel if you want to develop applications which will use
58 SoX.
59
60 %description devel -l pl
61 Tan pakiet zawiera biblioteki potrzebne do kompilacji aplikacji, które
62 bêd± wykorzystywa³y konwerter formatów plików d¼wiêkowych SoX.
63
64 %prep
65 %setup -q 
66 %patch0 -p1
67 %patch1 -p1
68 %patch2 -p1
69 %patch3 -p1
70 %patch4 -p1
71 %patch5 -p1
72
73 %build
74 aclocal
75 autoconf
76 %configure \
77         --with-oss-dsp \
78         --with-gsm \
79 %ifnarch sparc sparc64
80         %{!?_without_alsa:--with-alsa-dsp}
81 %endif
82
83 %{__make} PREFIX=%{_prefix}
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_mandir}/man{1,3}}
88
89 %{__make} install install-lib \
90         PREFIX=$RPM_BUILD_ROOT%{_prefix} \
91         MANDIR=$RPM_BUILD_ROOT%{_mandir} \
92         BINDIR=$RPM_BUILD_ROOT%{_bindir} \
93         LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
94         INCDIR=$RPM_BUILD_ROOT%{_includedir} \
95         INSTALL_DIR=$RPM_BUILD_ROOT 
96
97 echo "#!/bin/sh" > $RPM_BUILD_ROOT%{_bindir}/soxplay
98 echo "" >> $RPM_BUILD_ROOT%{_bindir}/soxplay
99 echo '%{_bindir}/sox $1 -t .au - > /dev/audio' >> $RPM_BUILD_ROOT%{_bindir}/soxplay
100
101 echo .so play.1 >$RPM_BUILD_ROOT%{_mandir}/man1/rec.1
102
103 gzip -9nf Changelog README TODO INSTALL
104
105 %clean
106 rm -rf $RPM_BUILD_ROOT
107
108 %files
109 %defattr(644,root,root,755)
110 %doc *.gz monkey.*
111 %attr(755,root,root) %{_bindir}/sox
112 %attr(755,root,root) %{_bindir}/play   
113 %attr(755,root,root) %{_bindir}/rec  
114 %attr(755,root,root) %{_bindir}/soxplay
115 %{_mandir}/man1/*
116
117 %files devel
118 %defattr(644,root,root,755)
119 %{_libdir}/libst.a
120 %{_includedir}/st.h
121 %{_mandir}/man3/*
This page took 0.032972 seconds and 4 git commands to generate.