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