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