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