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