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