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