]> git.pld-linux.org Git - packages/sox.git/blob - sox.spec
b09542049bf396694227d5849bc31886bdcf8a28
[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://prdownloads.sourceforge.net/sox/%{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://sox.sourceforge.net
25 BuildRequires:  autoconf
26 BuildRequires:  automake
27 BuildRequires:  libgsm-devel
28 %ifnarch sparc sparc64
29 %{!?_without_alsa:BuildRequires:        alsa-driver-devel}
30 %endif
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
34 SoX (Sound eXchange) is a sound file format converter for Linux, UNIX
35 and DOS PCs. The self-described 'Swiss Army knife of sound tools,' SoX
36 can convert between many different digitized sound formats and perform
37 simple sound manipulation functions, including sound effects.
38
39 Install the sox package if you'd like to convert sound file formats or
40 manipulate some sounds.
41
42 %description -l pl
43 SoX (Sound eXchange) jest konwerterem formatów plików d¼wiêkowych dla
44 Linuksa, Uniksa i Dosa. SoX mo¿e wykonywaæ konwersjê miêdzy wieloma
45 formatami cyfrowego d¼wiêku. Mo¿e tak¿e dokonywaæ prostych manipulacji
46 na d¼wiêku, wliczaj±c w to ró¿ne efekty d¼wiekowe.
47
48 %package devel
49 Summary:        The SoX sound file format converter libraries
50 Summary(pl):    Biblioteka SoX do konwertowania plików d¼wiêkowych
51 Group:          Development/Libraries
52 Group(de):      Entwicklung/Libraries
53 Group(es):      Desarrollo/Bibliotecas
54 Group(fr):      Development/Librairies
55 Group(pl):      Programowanie/Biblioteki
56 Group(pt_BR):   Desenvolvimento/Bibliotecas
57 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
58 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
59
60 %description devel 
61 This package contains the library needed for compiling applications
62 which will use the SoX sound file format converter.
63
64 Install sox-devel if you want to develop applications which will use
65 SoX.
66
67 %description devel -l pl
68 Ten pakiet zawiera biblioteki potrzebne do kompilacji aplikacji, które
69 bêd± wykorzystywa³y konwerter formatów plików d¼wiêkowych SoX.
70
71 %prep
72 %setup -q 
73 %patch0 -p1
74 %patch1 -p1
75 %patch2 -p1
76 %patch3 -p1
77 %patch4 -p1
78 %patch5 -p1
79
80 %build
81 aclocal
82 autoconf
83 %configure \
84         --with-oss-dsp \
85         --with-gsm \
86 %ifnarch sparc sparc64
87         %{!?_without_alsa:--with-alsa-dsp}
88 %endif
89
90 %{__make} PREFIX=%{_prefix}
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_mandir}/man{1,3}}
95
96 %{__make} install install-lib \
97         PREFIX=$RPM_BUILD_ROOT%{_prefix} \
98         MANDIR=$RPM_BUILD_ROOT%{_mandir} \
99         BINDIR=$RPM_BUILD_ROOT%{_bindir} \
100         LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
101         INCDIR=$RPM_BUILD_ROOT%{_includedir} \
102         INSTALL_DIR=$RPM_BUILD_ROOT 
103
104 echo "#!/bin/sh" > $RPM_BUILD_ROOT%{_bindir}/soxplay
105 echo "" >> $RPM_BUILD_ROOT%{_bindir}/soxplay
106 echo '%{_bindir}/sox $1 -t .au - > /dev/audio' >> $RPM_BUILD_ROOT%{_bindir}/soxplay
107
108 echo .so play.1 >$RPM_BUILD_ROOT%{_mandir}/man1/rec.1
109
110 gzip -9nf Changelog README TODO INSTALL
111
112 %clean
113 rm -rf $RPM_BUILD_ROOT
114
115 %files
116 %defattr(644,root,root,755)
117 %doc *.gz monkey.*
118 %attr(755,root,root) %{_bindir}/sox
119 %attr(755,root,root) %{_bindir}/play   
120 %attr(755,root,root) %{_bindir}/rec  
121 %attr(755,root,root) %{_bindir}/soxplay
122 %{_mandir}/man1/*
123
124 %files devel
125 %defattr(644,root,root,755)
126 %{_libdir}/libst.a
127 %{_includedir}/st.h
128 %{_mandir}/man3/*
This page took 0.027059 seconds and 2 git commands to generate.