X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=sox.spec;h=97f3aeae0a262d4159aca5603158a1534b42ea28;hb=b369db209a94f95cc0fc4bca58190622e5ab71ff;hp=1435b11877cffbc68af30be093c3ba8e1dec3ed0;hpb=ae7d490f127f5a8375b090723fe01a72df4c1c70;p=packages%2Fsox.git diff --git a/sox.spec b/sox.spec index 1435b11..97f3aea 100644 --- a/sox.spec +++ b/sox.spec @@ -1,22 +1,47 @@ # -# Conditional build: -# bcond_off_alsa - without ALSA support +# Conditional build: +%bcond_without alsa # ALSA support +%bcond_with amr # AMR codecs (AMR-NB and AMR-WB) support # Summary: A general purpose sound file conversion tool +Summary(de.UTF-8): Mehrzweck-Sounddatei-Konvertierungs-Tool +Summary(es.UTF-8): Herramienta para conversión de archivos de sonido +Summary(fr.UTF-8): outil général de conversion de fichiers son +Summary(pl.UTF-8): Program do konwersji plików dźwiękowych +Summary(pt_BR.UTF-8): Ferramenta para conversão de arquivos de som +Summary(ru.UTF-8): Утилита общего назначения для работы со звуковыми файлами +Summary(tr.UTF-8): Genel amaçlı ses dosyası çevirme aracı +Summary(uk.UTF-8): Утиліта загального призначення для роботи із звуковими файлами Name: sox -Version: 12.17 -Release: 1 -LIcense: Distributable +Version: 14.1.0 +Release: 3 +License: GPL v2+ (sox), LGPL v2+ (libsox) Group: Applications/Sound -Group(de): Applikationen/Laut -Group(pl): Aplikacje/D¼wiêk -Source0: http://home.sprynet.com/sprynet/cbagwell/%{name}-%{version}.tar.gz -Url: http://home.sprynet.com/sprynet/cbagwell/ -Patch0: %{name}-12.15-paths.patch -Patch1: %{name}-makefile.patch -Patch2: %{name}-play.patch +Source0: http://dl.sourceforge.net/sox/%{name}-%{version}.tar.gz +# Source0-md5: b8e2cb3d615d3830347a0948dd8b74a8 +Patch0: %{name}-system-lpc10.patch +Patch1: %{name}-ffmpeg.patch +URL: http://sox.sourceforge.net/ +%{?with_alsa:BuildRequires: alsa-lib-devel} +%{?with_amr:BuildRequires: amrnb-devel} +%{?with_amr:BuildRequires: amrwb-devel} +BuildRequires: autoconf >= 2.50 +BuildRequires: automake +BuildRequires: ffmpeg-devel +BuildRequires: flac-devel +BuildRequires: ladspa-devel +BuildRequires: lame-libs-devel +BuildRequires: libao-devel BuildRequires: libgsm-devel -%{!?bcond_off_alsa:BuildRequires: alsa-driver-devel} +BuildRequires: libltdl-devel +BuildRequires: libmad-devel +BuildRequires: libpng-devel +BuildRequires: libsamplerate-devel +BuildRequires: libsndfile-devel +BuildRequires: libtool +BuildRequires: libvorbis-devel >= 1:1.0 +BuildRequires: lpc10-devel +BuildRequires: wavpack-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -28,66 +53,280 @@ simple sound manipulation functions, including sound effects. Install the sox package if you'd like to convert sound file formats or manipulate some sounds. +%description -l es.UTF-8 +sox se autodenomina "navaja suiza de las herramientas de sonido". +Entiende varios formatos de sonidos digitalizados, pudiendo hacer +conversiones entre estos formatos y desempeñar funciones sencillas de +manejo de sonido. + +%description -l pl.UTF-8 +SoX (Sound eXchange) jest konwerterem formatów plików dźwiękowych dla +Linuksa, Uniksa i Dosa. SoX może wykonywać konwersję między wieloma +formatami cyfrowego dźwięku. Może także dokonywać prostych manipulacji +na dźwięku, wliczając w to różne efekty dźwiękowe. + +%description -l ru.UTF-8 +Как говорится в документации, "швейцарский армейский нож звуковых +утилит", sox умеет конвертировать звуковые файлы самых разнообразных +форматов и производить несложную их обработку. С прилагаемым скриптом +также может быть использован для проигрывания звуковых файлов. + +%description -l pt_BR.UTF-8 +O sox se autodenomina "canivete suíço das ferramentas de som". Ele +entende vários formatos de sons digitalizados, podendo fazer +conversões entre esses formatos e desempenhar funções simples de +manipulação de som. + +%description -l uk.UTF-8 +В документації цей пакет названо "швейцарським армійським ножиком +звукових утиліт". Він вміє конвертувати звукові файли +найрізноманітніших форматів та виконувати нескладну їх обробку. В +пакет входить скрипт, який можна використовувати для програвання +звукових файлів. + %package devel -Summary: The SoX sound file format converter libraries. +Summary: Header files for the SoX sound file format converter library +Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SoX do konwertowania plików dźwiękowych +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +This package contains the header files needed for compiling +applications which will use the SoX sound file format converter. + +%description devel -l pl.UTF-8 +Ten pakiet zawiera pliki nagłówkowe potrzebne do kompilacji aplikacji, +wykorzystujących konwerter formatów plików dźwiękowych SoX. + +%package static +Summary: Static SoX sound file format converter library +Summary(pl.UTF-8): Biblioteka statyczna SoX do konwertowania plików dźwiękowych Group: Development/Libraries -Group(de): Entwicklung/Libraries -Group(fr): Development/Librairies -Group(pl): Programowanie/Biblioteki +Requires: %{name}-devel = %{version}-%{release} + +%description static +Static SoX sound file format converter library. + +%description static -l pl.UTF-8 +Biblioteka statyczna SoX do konwertowania plików dźwiękowych. + +%package fmt-amr +Summary: SoX modules with AMR-NB and AMR-WB format support +Summary(pl.UTF-8): Moduły SoX obsługujące formaty AMR-NB i AMR-WB +Group: Libraries +Requires: %{name} = %{version}-%{release} + +%description fmt-amr +SoX modules with AMR-NB and AMR-WB format support. + +%description fmt-amr -l pl.UTF-8 +Moduły SoX obsługujące formaty AMR-NB i AMR-WB. + +%package fmt-ffmpeg +Summary: SoX module which uses ffmpeg codecs +Summary(pl.UTF-8): Moduł SoX wykorzystujący kodeki ffmpeg +# ffmpeg in PLD is compiled as GPL +License: GPL v2+ +Group: Libraries +Requires: %{name} = %{version}-%{release} + +%description fmt-ffmpeg +SoX module which uses ffmpeg codecs. -%description devel -This package contains the library needed for compiling applications -which will use the SoX sound file format converter. +%description fmt-ffmpeg -l pl.UTF-8 +Moduł SoX wykorzystujący kodeki ffmpeg. -Install sox-devel if you want to develop applications which will use -SoX. +%package fmt-lpc10 +Summary: SoX module with LPC10 format support +Summary(pl.UTF-8): Moduł SoX obsługujący format LPC10 +Group: Libraries +Requires: %{name} = %{version}-%{release} + +%description fmt-lpc10 +SoX module with LPC10 format support. + +%description fmt-lpc10 -l pl.UTF-8 +Moduł SoX obsługujący format LPC10. + +%package fmt-mp3 +Summary: SoX module with MP3 format support +Summary(pl.UTF-8): Moduł SoX obsługujący format MP3 +# libmad is GPLed, libmp3lame can contain GPL parts (and in PLD it does) +License: GPL v2+ +Group: Libraries + +%description fmt-mp3 +SoX module with MP3 format support. It uses libmad for decoding and +LAME for encoding. + +%description fmt-mp3 -l pl.UTF-8 +Moduł SoX obsługujący format MP3. Wykorzystuje do dekodowania +bibliotekę libmad, a do kodowania - LAME. %prep -%setup -q +%setup -q %patch0 -p1 %patch1 -p1 -%patch2 -p1 %build -%configure --with-oss-dsp \ - %{!?bcond_off_alsa:--with-alsa-dsp} +%{__libtoolize} +%{__aclocal} -I m4 +%{__autoconf} +%{__autoheader} +%{__automake} +%configure \ + --enable-ltdl-install=no \ + %{!?with_alsa:--disable-alsa-dsp} \ + %{!?with_amr:--without-amr-nb --without-amr-wb} -%{__make} PREFIX=%{_prefix} +%{__make} %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_mandir}/man{1,3}} -%{__make} install install-lib \ - PREFIX=$RPM_BUILD_ROOT%{_prefix} \ - MANDIR=$RPM_BUILD_ROOT%{_mandir} \ - BINDIR=$RPM_BUILD_ROOT%{_bindir} \ - LIBDIR=$RPM_BUILD_ROOT%{_libdir} \ - INCDIR=$RPM_BUILD_ROOT%{_includedir} \ - INSTALL_DIR=$RPM_BUILD_ROOT +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT echo "#!/bin/sh" > $RPM_BUILD_ROOT%{_bindir}/soxplay echo "" >> $RPM_BUILD_ROOT%{_bindir}/soxplay echo '%{_bindir}/sox $1 -t .au - > /dev/audio' >> $RPM_BUILD_ROOT%{_bindir}/soxplay -echo .so play.1 >$RPM_BUILD_ROOT%{_mandir}/man1/rec.1 +rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{play,rec}.1 +echo '.so sox.1' > $RPM_BUILD_ROOT%{_mandir}/man1/play.1 +echo '.so sox.1' > $RPM_BUILD_ROOT%{_mandir}/man1/rec.1 -gzip -9nf Changelog README TODO INSTALL +rm -f $RPM_BUILD_ROOT%{_libdir}/sox/*.{la,a} %clean rm -rf $RPM_BUILD_ROOT +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + %files %defattr(644,root,root,755) -%doc *.gz monkey.* +# COPYING contains only notes, not GPL/LGPL texts +%doc AUTHORS COPYING ChangeLog README src/monkey.* +%attr(755,root,root) %{_bindir}/play +%attr(755,root,root) %{_bindir}/rec %attr(755,root,root) %{_bindir}/sox -%attr(755,root,root) %{_bindir}/play -%attr(755,root,root) %{_bindir}/rec +%attr(755,root,root) %{_bindir}/soxi %attr(755,root,root) %{_bindir}/soxplay -%{_mandir}/man1/* +%attr(755,root,root) %{_libdir}/libsfx.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libsfx.so.0 +%attr(755,root,root) %{_libdir}/libsox.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libsox.so.0 +%dir %{_libdir}/sox +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_aifc.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_aiff.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_al.so* +%if %{with alsa} +# R: alsa-lib +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_alsa.so* +%endif +# R: libao +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_ao.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_au.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_avr.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_caf.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_cdr.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_cvsd.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_dat.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_dvms.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_f4.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_f8.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_fap.so* +# R: flac +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_flac.so* +# R: libgsm +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_gsm.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_hcom.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_htk.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_ima.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_la.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_lu.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_maud.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_mat4.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_mat5.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_nul.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_oss.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_paf.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_prc.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_pvf.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_raw.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_s1.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_s2.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_s3.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_s4.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_sf.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_sd2.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_smp.so* +# R: libsndfile +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_sndfile.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_sounder.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_soundtool.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_sphere.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_svx.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_txw.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_u1.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_u2.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_u3.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_u4.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_ul.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_voc.so* +# R: libogg libvorbis +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_vorbis.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_vox.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_w64.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_wav.so* +# R: wavpack +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_wavpack.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_wve.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_xa.so* +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_xi.so* +%{_mandir}/man1/play.1* +%{_mandir}/man1/rec.1* +%{_mandir}/man1/sox.1* +%{_mandir}/man1/soxi.1* +%{_mandir}/man7/soxeffect.7* +%{_mandir}/man7/soxformat.7* %files devel %defattr(644,root,root,755) -%{_libdir}/libst.a -%{_includedir}/st.h -%{_mandir}/man3/* +%attr(755,root,root) %{_libdir}/libsfx.so +%attr(755,root,root) %{_libdir}/libsox.so +%{_libdir}/libsfx.la +%{_libdir}/libsox.la +%{_includedir}/sox.h +%{_includedir}/soxstdint.h +%{_pkgconfigdir}/sox.pc +%{_mandir}/man3/libsox.3* + +%files static +%defattr(644,root,root,755) +%{_libdir}/libsfx.a +%{_libdir}/libsox.a + +%if %{with amr} +%files fmt-amr +%defattr(644,root,root,755) +# R: amr-nb +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_amr_nb.so* +# R: amr-wb +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_amr_wb.so* +%endif + +%files fmt-ffmpeg +%defattr(644,root,root,755) +# R: ffmpeg-libs +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_ffmpeg.so* + +%files fmt-lpc10 +%defattr(644,root,root,755) +# R: lpc10 +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_lpc10.so* + +%files fmt-mp3 +%defattr(644,root,root,755) +# R: lame-libs libmad +%attr(755,root,root) %{_libdir}/sox/libsox_fmt_mp3.so*