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