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