]> git.pld-linux.org Git - packages/sox.git/blob - sox.spec
- rel 2 (ffmpeg)
[packages/sox.git] / sox.spec
1 #
2 # Conditional build:
3 %bcond_without  alsa    # ALSA support
4 %bcond_with     amr     # AMR codecs (AMR-NB and AMR-WB) support
5 #
6 Summary:        A general purpose sound file conversion tool
7 Summary(de.UTF-8):      Mehrzweck-Sounddatei-Konvertierungs-Tool
8 Summary(es.UTF-8):      Herramienta para conversión de archivos de sonido
9 Summary(fr.UTF-8):      outil général de conversion de fichiers son
10 Summary(pl.UTF-8):      Program do konwersji plików dźwiękowych
11 Summary(pt_BR.UTF-8):   Ferramenta para conversão de arquivos de som
12 Summary(ru.UTF-8):      Утилита общего назначения для работы со звуковыми файлами
13 Summary(tr.UTF-8):      Genel amaçlı ses dosyası çevirme aracı
14 Summary(uk.UTF-8):      Утиліта загального призначення для роботи із звуковими файлами
15 Name:           sox
16 Version:        14.0.0
17 Release:        2
18 License:        GPL v2+ (sox), LGPL v2+ (libsox)
19 Group:          Applications/Sound
20 Source0:        http://dl.sourceforge.net/sox/%{name}-%{version}.tar.gz
21 # Source0-md5:  c0c242fb2760cea9dc30de884eb1facc
22 Patch0:         %{name}-gsm.patch
23 Patch1:         %{name}-system-lpc10.patch
24 Patch2:         %{name}-amr.patch
25 URL:            http://sox.sourceforge.net/
26 %{?with_alsa:BuildRequires:     alsa-lib-devel}
27 %{?with_amr:BuildRequires:      amrnb-devel}
28 %{?with_amr:BuildRequires:      amrwb-devel}
29 BuildRequires:  autoconf >= 2.50
30 BuildRequires:  automake
31 BuildRequires:  ffmpeg-devel
32 BuildRequires:  flac-devel
33 BuildRequires:  ladspa-devel
34 BuildRequires:  lame-libs-devel
35 BuildRequires:  libao-devel
36 BuildRequires:  libgsm-devel
37 BuildRequires:  libltdl-devel
38 BuildRequires:  libmad-devel
39 BuildRequires:  libsamplerate-devel
40 BuildRequires:  libsndfile-devel
41 BuildRequires:  libtool
42 BuildRequires:  libvorbis-devel >= 1:1.0
43 BuildRequires:  lpc10-devel
44 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
46 %description
47 SoX (Sound eXchange) is a sound file format converter for Linux, UNIX
48 and DOS PCs. The self-described 'Swiss Army knife of sound tools,' SoX
49 can convert between many different digitized sound formats and perform
50 simple sound manipulation functions, including sound effects.
51
52 Install the sox package if you'd like to convert sound file formats or
53 manipulate some sounds.
54
55 %description -l es.UTF-8
56 sox se autodenomina "navaja suiza de las herramientas de sonido".
57 Entiende varios formatos de sonidos digitalizados, pudiendo hacer
58 conversiones entre estos formatos y desempeñar funciones sencillas de
59 manejo de sonido.
60
61 %description -l pl.UTF-8
62 SoX (Sound eXchange) jest konwerterem formatów plików dźwiękowych dla
63 Linuksa, Uniksa i Dosa. SoX może wykonywać konwersję między wieloma
64 formatami cyfrowego dźwięku. Może także dokonywać prostych manipulacji
65 na dźwięku, wliczając w to różne efekty dźwiękowe.
66
67 %description -l ru.UTF-8
68 Как говорится в документации, "швейцарский армейский нож звуковых
69 утилит", sox умеет конвертировать звуковые файлы самых разнообразных
70 форматов и производить несложную их обработку. С прилагаемым скриптом
71 также может быть использован для проигрывания звуковых файлов.
72
73 %description -l pt_BR.UTF-8
74 O sox se autodenomina "canivete suíço das ferramentas de som". Ele
75 entende vários formatos de sons digitalizados, podendo fazer
76 conversões entre esses formatos e desempenhar funções simples de
77 manipulação de som.
78
79 %description -l uk.UTF-8
80 В документації цей пакет названо "швейцарським армійським ножиком
81 звукових утиліт". Він вміє конвертувати звукові файли
82 найрізноманітніших форматів та виконувати нескладну їх обробку. В
83 пакет входить скрипт, який можна використовувати для програвання
84 звукових файлів.
85
86 %package devel
87 Summary:        Header files for the SoX sound file format converter library
88 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki SoX do konwertowania plików dźwiękowych
89 Group:          Development/Libraries
90 Requires:       %{name} = %{version}-%{release}
91
92 %description devel
93 This package contains the header files needed for compiling
94 applications which will use the SoX sound file format converter.
95
96 %description devel -l pl.UTF-8
97 Ten pakiet zawiera pliki nagłówkowe potrzebne do kompilacji aplikacji,
98 wykorzystujących konwerter formatów plików dźwiękowych SoX.
99
100 %package static
101 Summary:        Static SoX sound file format converter library
102 Summary(pl.UTF-8):      Biblioteka statyczna SoX do konwertowania plików dźwiękowych
103 Group:          Development/Libraries
104 Requires:       %{name}-devel = %{version}-%{release}
105
106 %description static
107 Static SoX sound file format converter library.
108
109 %description static -l pl.UTF-8
110 Biblioteka statyczna SoX do konwertowania plików dźwiękowych.
111
112 %package fmt-amr
113 Summary:        SoX modules with AMR-NB and AMR-WB format support
114 Summary(pl.UTF-8):      Moduły SoX obsługujące formaty AMR-NB i AMR-WB
115 Group:          Libraries
116 Requires:       %{name} = %{version}-%{release}
117
118 %description fmt-amr
119 SoX modules with AMR-NB and AMR-WB format support.
120
121 %description fmt-amr -l pl.UTF-8
122 Moduły SoX obsługujące formaty AMR-NB i AMR-WB.
123
124 %package fmt-ffmpeg
125 Summary:        SoX module which uses ffmpeg codecs
126 Summary(pl.UTF-8):      Moduł SoX wykorzystujący kodeki ffmpeg
127 # ffmpeg in PLD is compiled as GPL
128 License:        GPL v2+
129 Group:          Libraries
130 Requires:       %{name} = %{version}-%{release}
131
132 %description fmt-ffmpeg
133 SoX module which uses ffmpeg codecs.
134
135 %description fmt-ffmpeg -l pl.UTF-8
136 Moduł SoX wykorzystujący kodeki ffmpeg.
137
138 %package fmt-lpc10
139 Summary:        SoX module with LPC10 format support
140 Summary(pl.UTF-8):      Moduł SoX obsługujący format LPC10
141 Group:          Libraries
142 Requires:       %{name} = %{version}-%{release}
143
144 %description fmt-lpc10
145 SoX module with LPC10 format support.
146
147 %description fmt-lpc10 -l pl.UTF-8
148 Moduł SoX obsługujący format LPC10.
149
150 %package fmt-mp3
151 Summary:        SoX module with MP3 format support
152 Summary(pl.UTF-8):      Moduł SoX obsługujący format MP3
153 # libmad is GPLed, libmp3lame can contain GPL parts (and in PLD it does)
154 License:        GPL v2+
155 Group:          Libraries
156
157 %description fmt-mp3
158 SoX module with MP3 format support. It uses libmad for decoding and
159 LAME for encoding.
160
161 %description fmt-mp3 -l pl.UTF-8
162 Moduł SoX obsługujący format MP3. Wykorzystuje do dekodowania
163 bibliotekę libmad, a do kodowania - LAME.
164
165 %prep
166 %setup -q
167 %patch0 -p1
168 %patch1 -p1
169 %patch2 -p1
170
171 %build
172 %{__libtoolize}
173 %{__aclocal} -I m4
174 %{__autoconf}
175 %{__autoheader}
176 %{__automake}
177 %configure \
178         %{!?with_alsa:--disable-alsa-dsp} \
179         %{!?with_amr:--without-amr-nb --without-amr-wb}
180
181 %{__make}
182
183 %install
184 rm -rf $RPM_BUILD_ROOT
185
186 %{__make} install \
187         DESTDIR=$RPM_BUILD_ROOT
188
189 echo "#!/bin/sh" > $RPM_BUILD_ROOT%{_bindir}/soxplay
190 echo "" >> $RPM_BUILD_ROOT%{_bindir}/soxplay
191 echo '%{_bindir}/sox $1 -t .au - > /dev/audio' >> $RPM_BUILD_ROOT%{_bindir}/soxplay
192
193 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{play,rec}.1
194 echo '.so sox.1' > $RPM_BUILD_ROOT%{_mandir}/man1/play.1
195 echo '.so sox.1' > $RPM_BUILD_ROOT%{_mandir}/man1/rec.1
196
197 rm -f $RPM_BUILD_ROOT%{_libdir}/sox/*.{la,a}
198
199 %clean
200 rm -rf $RPM_BUILD_ROOT
201
202 %post   -p /sbin/ldconfig
203 %postun -p /sbin/ldconfig
204
205 %files
206 %defattr(644,root,root,755)
207 # COPYING contains only notes, not GPL/LGPL texts
208 %doc AUTHORS COPYING ChangeLog README src/monkey.*
209 %attr(755,root,root) %{_bindir}/play
210 %attr(755,root,root) %{_bindir}/rec
211 %attr(755,root,root) %{_bindir}/sox
212 %attr(755,root,root) %{_bindir}/soxplay
213 %attr(755,root,root) %{_libdir}/libsfx.so.*.*.*
214 %attr(755,root,root) %ghost %{_libdir}/libsfx.so.0
215 %attr(755,root,root) %{_libdir}/libsox.so.*.*.*
216 %attr(755,root,root) %ghost %{_libdir}/libsox.so.0
217 %dir %{_libdir}/sox
218 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_aifc.so*
219 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_aiff.so*
220 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_al.so*
221 %if %{with alsa}
222 # R: alsa-lib
223 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_alsa.so*
224 %endif
225 # R: libao
226 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_ao.so*
227 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_au.so*
228 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_auto.so*
229 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_avr.so*
230 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_cdr.so*
231 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_cvsd.so*
232 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_dat.so*
233 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_dvms.so*
234 # R: flac
235 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_flac.so*
236 # R: libgsm
237 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_gsm.so*
238 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_hcom.so*
239 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_ima.so*
240 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_la.so*
241 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_lu.so*
242 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_maud.so*
243 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_nul.so*
244 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_oss.so*
245 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_prc.so*
246 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_raw.so*
247 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_s1.so*
248 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_s2.so*
249 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_s3.so*
250 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_s4.so*
251 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_sf.so*
252 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_smp.so*
253 # R: libsndfile
254 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_sndfile.so*
255 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_sndrtool.so*
256 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_sphere.so*
257 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_svx.so*
258 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_txw.so*
259 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_u1.so*
260 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_u2.so*
261 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_u3.so*
262 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_u4.so*
263 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_ul.so*
264 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_voc.so*
265 # R: libogg libvorbis
266 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_vorbis.so*
267 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_vox.so*
268 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_wav.so*
269 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_wve.so*
270 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_xa.so*
271 %{_mandir}/man1/play.1*
272 %{_mandir}/man1/rec.1*
273 %{_mandir}/man1/sox.1*
274 %{_mandir}/man7/soxeffect.7*
275 %{_mandir}/man7/soxexam.7*
276 %{_mandir}/man7/soxformat.7*
277
278 %files devel
279 %defattr(644,root,root,755)
280 %attr(755,root,root) %{_libdir}/libsfx.so
281 %attr(755,root,root) %{_libdir}/libsox.so
282 %{_libdir}/libsfx.la
283 %{_libdir}/libsox.la
284 %{_includedir}/sox.h
285 %{_includedir}/soxstdint.h
286 %{_mandir}/man3/libsox.3*
287
288 %files static
289 %defattr(644,root,root,755)
290 %{_libdir}/libsfx.a
291 %{_libdir}/libsox.a
292
293 %if %{with amr}
294 %files fmt-amr
295 %defattr(644,root,root,755)
296 # R: amr-nb
297 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_amr_nb.so*
298 # R: amr-wb
299 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_amr_wb.so*
300 %endif
301
302 %files fmt-ffmpeg
303 %defattr(644,root,root,755)
304 # R: ffmpeg-libs
305 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_ffmpeg.so*
306
307 %files fmt-lpc10
308 %defattr(644,root,root,755)
309 # R: lpc10
310 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_lpc10.so*
311
312 %files fmt-mp3
313 %defattr(644,root,root,755)
314 # R: lame-libs libmad
315 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_mp3.so*
This page took 0.126479 seconds and 4 git commands to generate.