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