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