3 %bcond_without alsa # ALSA support
4 %bcond_without pulseaudio # PulseAudio support
5 %bcond_with amr # AMR codecs (AMR-NB and AMR-WB) support
7 Summary: A general purpose sound file conversion tool
8 Summary(de.UTF-8): Mehrzweck-Sounddatei-Konvertierungs-Tool
9 Summary(es.UTF-8): Herramienta para conversión de archivos de sonido
10 Summary(fr.UTF-8): outil général de conversion de fichiers son
11 Summary(pl.UTF-8): Program do konwersji plików dźwiękowych
12 Summary(pt_BR.UTF-8): Ferramenta para conversão de arquivos de som
13 Summary(ru.UTF-8): Утилита общего назначения для работы со звуковыми файлами
14 Summary(tr.UTF-8): Genel amaçlı ses dosyası çevirme aracı
15 Summary(uk.UTF-8): Утиліта загального призначення для роботи із звуковими файлами
19 License: GPL v2+ (sox), LGPL v2+ (libsox)
20 Group: Applications/Sound
21 Source0: http://dl.sourceforge.net/sox/%{name}-%{version}.tar.gz
22 # Source0-md5: b99871c7bbae84feac9d0d1f010331ba
23 Patch0: %{name}-system-lpc10.patch
24 URL: http://sox.sourceforge.net/
25 %{?with_alsa:BuildRequires: alsa-lib-devel}
26 %{?with_amr:BuildRequires: amrnb-devel}
27 %{?with_amr:BuildRequires: amrwb-devel}
28 BuildRequires: autoconf >= 2.50
29 BuildRequires: automake
30 BuildRequires: ffmpeg-devel >= 0.4.9-4.20080930.1
31 BuildRequires: flac-devel
32 BuildRequires: ladspa-devel
33 BuildRequires: lame-libs-devel
34 BuildRequires: libao-devel
35 BuildRequires: libgsm-devel
36 BuildRequires: libltdl-devel
37 BuildRequires: libmad-devel
38 BuildRequires: libpng-devel
39 BuildRequires: libsamplerate-devel
40 BuildRequires: libsndfile-devel
41 BuildRequires: libtool
42 BuildRequires: libvorbis-devel >= 1:1.0
43 BuildRequires: lpc10-devel
44 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
45 BuildRequires: pkgconfig
46 BuildRequires: wavpack-devel
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 SoX (Sound eXchange) is a sound file format converter for Linux, UNIX
51 and DOS PCs. The self-described 'Swiss Army knife of sound tools,' SoX
52 can convert between many different digitized sound formats and perform
53 simple sound manipulation functions, including sound effects.
55 Install the sox package if you'd like to convert sound file formats or
56 manipulate some sounds.
58 %description -l es.UTF-8
59 sox se autodenomina "navaja suiza de las herramientas de sonido".
60 Entiende varios formatos de sonidos digitalizados, pudiendo hacer
61 conversiones entre estos formatos y desempeñar funciones sencillas de
64 %description -l pl.UTF-8
65 SoX (Sound eXchange) jest konwerterem formatów plików dźwiękowych dla
66 Linuksa, Uniksa i Dosa. SoX może wykonywać konwersję między wieloma
67 formatami cyfrowego dźwięku. Może także dokonywać prostych manipulacji
68 na dźwięku, wliczając w to różne efekty dźwiękowe.
70 %description -l ru.UTF-8
71 Как говорится в документации, "швейцарский армейский нож звуковых
72 утилит", sox умеет конвертировать звуковые файлы самых разнообразных
73 форматов и производить несложную их обработку. С прилагаемым скриптом
74 также может быть использован для проигрывания звуковых файлов.
76 %description -l pt_BR.UTF-8
77 O sox se autodenomina "canivete suíço das ferramentas de som". Ele
78 entende vários formatos de sons digitalizados, podendo fazer
79 conversões entre esses formatos e desempenhar funções simples de
82 %description -l uk.UTF-8
83 В документації цей пакет названо "швейцарським армійським ножиком
84 звукових утиліт". Він вміє конвертувати звукові файли
85 найрізноманітніших форматів та виконувати нескладну їх обробку. В
86 пакет входить скрипт, який можна використовувати для програвання
90 Summary: Header files for the SoX sound file format converter library
91 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SoX do konwertowania plików dźwiękowych
92 Group: Development/Libraries
93 Requires: %{name} = %{version}-%{release}
96 This package contains the header files needed for compiling
97 applications which will use the SoX sound file format converter.
99 %description devel -l pl.UTF-8
100 Ten pakiet zawiera pliki nagłówkowe potrzebne do kompilacji aplikacji,
101 wykorzystujących konwerter formatów plików dźwiękowych SoX.
104 Summary: Static SoX sound file format converter library
105 Summary(pl.UTF-8): Biblioteka statyczna SoX do konwertowania plików dźwiękowych
106 Group: Development/Libraries
107 Requires: %{name}-devel = %{version}-%{release}
110 Static SoX sound file format converter library.
112 %description static -l pl.UTF-8
113 Biblioteka statyczna SoX do konwertowania plików dźwiękowych.
116 Summary: SoX modules with AMR-NB and AMR-WB format support
117 Summary(pl.UTF-8): Moduły SoX obsługujące formaty AMR-NB i AMR-WB
119 Requires: %{name} = %{version}-%{release}
122 SoX modules with AMR-NB and AMR-WB format support.
124 %description fmt-amr -l pl.UTF-8
125 Moduły SoX obsługujące formaty AMR-NB i AMR-WB.
128 Summary: SoX module which uses ffmpeg codecs
129 Summary(pl.UTF-8): Moduł SoX wykorzystujący kodeki ffmpeg
130 # ffmpeg in PLD is compiled as GPL
133 Requires: %{name} = %{version}-%{release}
135 %description fmt-ffmpeg
136 SoX module which uses ffmpeg codecs.
138 %description fmt-ffmpeg -l pl.UTF-8
139 Moduł SoX wykorzystujący kodeki ffmpeg.
142 Summary: SoX module with LPC10 format support
143 Summary(pl.UTF-8): Moduł SoX obsługujący format LPC10
145 Requires: %{name} = %{version}-%{release}
147 %description fmt-lpc10
148 SoX module with LPC10 format support.
150 %description fmt-lpc10 -l pl.UTF-8
151 Moduł SoX obsługujący format LPC10.
154 Summary: SoX module with MP3 format support
155 Summary(pl.UTF-8): Moduł SoX obsługujący format MP3
156 # libmad is GPLed, libmp3lame can contain GPL parts (and in PLD it does)
161 SoX module with MP3 format support. It uses libmad for decoding and
164 %description fmt-mp3 -l pl.UTF-8
165 Moduł SoX obsługujący format MP3. Wykorzystuje do dekodowania
166 bibliotekę libmad, a do kodowania - LAME.
179 --enable-ltdl-install=no \
198 --with-oggvorbis=dyn \
199 %if %{with pulseaudio}
200 --with-pulseaudio=dyn \
202 --without-pulseaudio \
205 --enable-dl-sndfile \
211 rm -rf $RPM_BUILD_ROOT
214 DESTDIR=$RPM_BUILD_ROOT
216 echo "#!/bin/sh" > $RPM_BUILD_ROOT%{_bindir}/soxplay
217 echo "" >> $RPM_BUILD_ROOT%{_bindir}/soxplay
218 echo '%{_bindir}/sox $1 -t .au - > /dev/audio' >> $RPM_BUILD_ROOT%{_bindir}/soxplay
220 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{play,rec}.1
221 echo '.so sox.1' > $RPM_BUILD_ROOT%{_mandir}/man1/play.1
222 echo '.so sox.1' > $RPM_BUILD_ROOT%{_mandir}/man1/rec.1
224 rm -f $RPM_BUILD_ROOT%{_libdir}/sox/*.{la,a}
227 rm -rf $RPM_BUILD_ROOT
229 %post -p /sbin/ldconfig
230 %postun -p /sbin/ldconfig
233 %defattr(644,root,root,755)
234 # COPYING contains only notes, not GPL/LGPL texts
235 %doc AUTHORS COPYING ChangeLog README src/monkey.*
236 %attr(755,root,root) %{_bindir}/play
237 %attr(755,root,root) %{_bindir}/rec
238 %attr(755,root,root) %{_bindir}/sox
239 %attr(755,root,root) %{_bindir}/soxi
240 %attr(755,root,root) %{_bindir}/soxplay
241 %attr(755,root,root) %{_libdir}/libsox.so.*.*.*
242 %attr(755,root,root) %ghost %{_libdir}/libsox.so.1
246 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_alsa.so*
249 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_ao.so*
251 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_flac.so*
253 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_gsm.so*
254 %if %{with pulseaudio}
256 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_pulseaudio.so*
259 # won't build dynamically for some reason
260 #%attr(755,root,root) %{_libdir}/sox/libsox_fmt_sndfile.so*
261 # R: libogg libvorbis
262 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_vorbis.so*
264 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_wavpack.so*
265 %{_mandir}/man1/play.1*
266 %{_mandir}/man1/rec.1*
267 %{_mandir}/man1/sox.1*
268 %{_mandir}/man1/soxi.1*
269 %{_mandir}/man7/soxeffect.7*
270 %{_mandir}/man7/soxformat.7*
273 %defattr(644,root,root,755)
274 %attr(755,root,root) %{_libdir}/libsox.so
276 %{_includedir}/soxstdint.h
277 %{_pkgconfigdir}/sox.pc
278 %{_mandir}/man3/libsox.3*
281 %defattr(644,root,root,755)
287 %defattr(644,root,root,755)
289 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_amr_nb.so*
291 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_amr_wb.so*
295 %defattr(644,root,root,755)
297 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_ffmpeg.so*
300 %defattr(644,root,root,755)
302 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_lpc10.so*
305 %defattr(644,root,root,755)
306 # R: lame-libs libmad
307 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_mp3.so*