3 %bcond_without alsa # ALSA support
4 %bcond_without gomp # OpenMP support
5 %bcond_without pulseaudio # PulseAudio support
6 %bcond_without amr # AMR codecs (AMR-NB and AMR-WB) support
8 Summary: A general purpose sound file conversion tool
9 Summary(de.UTF-8): Mehrzweck-Sounddatei-Konvertierungs-Tool
10 Summary(es.UTF-8): Herramienta para conversión de archivos de sonido
11 Summary(fr.UTF-8): outil général de conversion de fichiers son
12 Summary(pl.UTF-8): Program do konwersji plików dźwiękowych
13 Summary(pt_BR.UTF-8): Ferramenta para conversão de arquivos de som
14 Summary(ru.UTF-8): Утилита общего назначения для работы со звуковыми файлами
15 Summary(tr.UTF-8): Genel amaçlı ses dosyası çevirme aracı
16 Summary(uk.UTF-8): Утиліта загального призначення для роботи із звуковими файлами
20 License: GPL v2+ (sox), LGPL v2+ (libsox)
21 Group: Applications/Sound
22 Source0: http://downloads.sourceforge.net/sox/%{name}-%{version}.tar.bz2
23 # Source0-md5: ba804bb1ce5c71dd484a102a5b27d0dd
24 Patch0: %{name}-system-lpc10.patch
25 Patch1: %{name}-dyn.patch
26 Patch2: %{name}-link.patch
27 URL: http://sox.sourceforge.net/
28 %{?with_alsa:BuildRequires: alsa-lib-devel}
29 BuildRequires: autoconf >= 2.62
30 BuildRequires: automake
31 BuildRequires: flac-devel >= 1.1.3
32 %{?with_gomp:BuildRequires: gcc >= 6:4.2}
33 BuildRequires: ladspa-devel
34 BuildRequires: lame-libs-devel >= 3.98
35 BuildRequires: libao-devel
36 %{?with_gomp:BuildRequires: libgomp-devel}
37 BuildRequires: libgsm-devel
38 BuildRequires: libid3tag-devel
39 BuildRequires: libltdl-devel
40 BuildRequires: libmad-devel
41 BuildRequires: libmagic-devel
42 BuildRequires: libpng-devel
43 BuildRequires: libsamplerate-devel
44 BuildRequires: libsndfile-devel >= 1.0.12
45 BuildRequires: libtool
46 BuildRequires: libvorbis-devel >= 1:1.0
47 BuildRequires: lpc10-devel
48 %{?with_amr:BuildRequires: opencore-amr-devel}
49 BuildRequires: opusfile-devel
50 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
51 BuildRequires: pkgconfig
52 BuildRequires: twolame-devel
53 BuildRequires: wavpack-devel
55 Obsoletes: sox-fmt-ffmpeg
56 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
59 SoX (Sound eXchange) is a sound file format converter for Linux, UNIX
60 and DOS PCs. The self-described 'Swiss Army knife of sound tools,' SoX
61 can convert between many different digitized sound formats and perform
62 simple sound manipulation functions, including sound effects.
64 Install the sox package if you'd like to convert sound file formats or
65 manipulate some sounds.
67 %description -l es.UTF-8
68 sox se autodenomina "navaja suiza de las herramientas de sonido".
69 Entiende varios formatos de sonidos digitalizados, pudiendo hacer
70 conversiones entre estos formatos y desempeñar funciones sencillas de
73 %description -l pl.UTF-8
74 SoX (Sound eXchange) jest konwerterem formatów plików dźwiękowych dla
75 Linuksa, Uniksa i Dosa. SoX może wykonywać konwersję między wieloma
76 formatami cyfrowego dźwięku. Może także dokonywać prostych manipulacji
77 na dźwięku, wliczając w to różne efekty dźwiękowe.
79 %description -l ru.UTF-8
80 Как говорится в документации, "швейцарский армейский нож звуковых
81 утилит", sox умеет конвертировать звуковые файлы самых разнообразных
82 форматов и производить несложную их обработку. С прилагаемым скриптом
83 также может быть использован для проигрывания звуковых файлов.
85 %description -l pt_BR.UTF-8
86 O sox se autodenomina "canivete suíço das ferramentas de som". Ele
87 entende vários formatos de sons digitalizados, podendo fazer
88 conversões entre esses formatos e desempenhar funções simples de
91 %description -l uk.UTF-8
92 В документації цей пакет названо "швейцарським армійським ножиком
93 звукових утиліт". Він вміє конвертувати звукові файли
94 найрізноманітніших форматів та виконувати нескладну їх обробку. В
95 пакет входить скрипт, який можна використовувати для програвання
99 Summary: Header files for the SoX sound file format converter library
100 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SoX do konwertowania plików dźwiękowych
101 Group: Development/Libraries
102 Requires: %{name} = %{version}-%{release}
105 This package contains the header files needed for compiling
106 applications which will use the SoX sound file format converter.
108 %description devel -l pl.UTF-8
109 Ten pakiet zawiera pliki nagłówkowe potrzebne do kompilacji aplikacji,
110 wykorzystujących konwerter formatów plików dźwiękowych SoX.
113 Summary: Static SoX sound file format converter library
114 Summary(pl.UTF-8): Biblioteka statyczna SoX do konwertowania plików dźwiękowych
115 Group: Development/Libraries
116 Requires: %{name}-devel = %{version}-%{release}
119 Static SoX sound file format converter library.
121 %description static -l pl.UTF-8
122 Biblioteka statyczna SoX do konwertowania plików dźwiękowych.
125 Summary: SoX modules with AMR-NB and AMR-WB format support
126 Summary(pl.UTF-8): Moduły SoX obsługujące formaty AMR-NB i AMR-WB
128 Requires: %{name} = %{version}-%{release}
131 SoX modules with AMR-NB and AMR-WB format support.
133 %description fmt-amr -l pl.UTF-8
134 Moduły SoX obsługujące formaty AMR-NB i AMR-WB.
137 Summary: SoX module with LPC10 format support
138 Summary(pl.UTF-8): Moduł SoX obsługujący format LPC10
140 Requires: %{name} = %{version}-%{release}
142 %description fmt-lpc10
143 SoX module with LPC10 format support.
145 %description fmt-lpc10 -l pl.UTF-8
146 Moduł SoX obsługujący format LPC10.
149 Summary: SoX module with MP3 format support
150 Summary(pl.UTF-8): Moduł SoX obsługujący format MP3
151 # libmad is GPLed, libmp3lame can contain GPL parts (and in PLD it does)
154 Requires: %{name} = %{version}-%{release}
157 SoX module with MP3 format support. It uses libmad for decoding and
160 %description fmt-mp3 -l pl.UTF-8
161 Moduł SoX obsługujący format MP3. Wykorzystuje do dekodowania
162 bibliotekę libmad, a do kodowania - LAME.
165 Summary: SoX module with Ogg Opus format support
166 Summary(pl.UTF-8): Moduł SoX obsługujący format Ogg Opus
168 Requires: %{name} = %{version}-%{release}
170 %description fmt-opus
171 SoX module with Ogg Opus format support. It uses opusfile library
174 %description fmt-opus -l pl.UTF-8
175 Moduł SoX obsługujący format Ogg Opus. Wykorzystuje do dekodowania
191 %{!?with_gomp:--disable-gomp} \
192 --disable-silent-rules \
193 --with-distro='PLD Linux Distribution' \
195 %{!?with_alsa:--without-alsa} \
196 %{!?with_amr:--without-amrnb --without-amrwb} \
197 %{!?with_pulseaudio:--without-pulseaudio}
202 rm -rf $RPM_BUILD_ROOT
205 DESTDIR=$RPM_BUILD_ROOT
207 echo "#!/bin/sh" > $RPM_BUILD_ROOT%{_bindir}/soxplay
208 echo "" >> $RPM_BUILD_ROOT%{_bindir}/soxplay
209 echo '%{_bindir}/sox $1 -t .au - > /dev/audio' >> $RPM_BUILD_ROOT%{_bindir}/soxplay
211 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{play,rec}.1
212 echo '.so sox.1' > $RPM_BUILD_ROOT%{_mandir}/man1/play.1
213 echo '.so sox.1' > $RPM_BUILD_ROOT%{_mandir}/man1/rec.1
215 %{__rm} $RPM_BUILD_ROOT%{_libdir}/sox/*.{la,a}
218 rm -rf $RPM_BUILD_ROOT
220 %post -p /sbin/ldconfig
221 %postun -p /sbin/ldconfig
224 %defattr(644,root,root,755)
225 # COPYING contains only notes, not GPL/LGPL texts
226 %doc AUTHORS COPYING ChangeLog NEWS README src/monkey.*
227 %attr(755,root,root) %{_bindir}/play
228 %attr(755,root,root) %{_bindir}/rec
229 %attr(755,root,root) %{_bindir}/sox
230 %attr(755,root,root) %{_bindir}/soxi
231 %attr(755,root,root) %{_bindir}/soxplay
232 %attr(755,root,root) %{_libdir}/libsox.so.*.*.*
233 %attr(755,root,root) %ghost %{_libdir}/libsox.so.3
237 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_alsa.so
240 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_ao.so
242 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_flac.so
244 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_gsm.so
245 %if %{with pulseaudio}
247 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_pulseaudio.so
249 # R: libsndfile (+submodules)
250 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_sndfile.so
251 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_caf.so
252 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_fap.so
253 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_mat4.so
254 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_mat5.so
255 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_oss.so
256 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_paf.so
257 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_pvf.so
258 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_sd2.so
259 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_w64.so
260 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_xi.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 %{_pkgconfigdir}/sox.pc
277 %{_mandir}/man3/libsox.3*
280 %defattr(644,root,root,755)
286 %defattr(644,root,root,755)
288 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_amr_nb.so
290 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_amr_wb.so
294 %defattr(644,root,root,755)
296 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_lpc10.so
299 %defattr(644,root,root,755)
300 # R: lame-libs libmad
301 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_mp3.so
304 %defattr(644,root,root,755)
306 %attr(755,root,root) %{_libdir}/sox/libsox_fmt_opus.so