]> git.pld-linux.org Git - packages/sox.git/blobdiff - sox.spec
- up to 14.2.0
[packages/sox.git] / sox.spec
index f85b7052c65652a45f6ebbdda4e4084183f618fe..35727f1f824436daf171ea36900ca7fda6c489d4 100644 (file)
--- a/sox.spec
+++ b/sox.spec
@@ -1,33 +1,46 @@
+#
 # Conditional build:
-%bcond_without alsa    # without ALSA support
+%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):   Mehrzweck-Sounddatei-Konvertierungs-Tool
-Summary(es):   Herramienta para conversión de archivos de sonido
-Summary(fr):   outil général de conversion de fichiers son
-Summary(pl):   Program do konwersji plików d¼wiêkowych
-Summary(pt_BR):        Ferramenta para conversão de arquivos de som
-Summary(ru):   õÔÉÌÉÔÁ ÏÂÝÅÇÏ ÎÁÚÎÁÞÅÎÉÑ ÄÌÑ ÒÁÂÏÔÙ ÓÏ Ú×ÕËÏ×ÙÍÉ ÆÁÊÌÁÍÉ
-Summary(tr):   Genel amaçlý ses dosyasý çevirme aracý
-Summary(uk):   õÔÉ̦ÔÁ ÚÁÇÁÌØÎÏÇÏ ÐÒÉÚÎÁÞÅÎÎÑ ÄÌÑ ÒÏÂÏÔÉ ¦Ú Ú×ÕËÏ×ÉÍÉ ÆÁÊÌÁÍÉ
+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.5
-Release:       3
-License:       distributable
+Version:       14.2.0
+Release:       1
+License:       GPL v2+ (sox), LGPL v2+ (libsox)
 Group:         Applications/Sound
-Source0:       http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
-# Source0-md5: 53a3ebe3da0f5845770fd99e2ff0a965
-Patch0:                %{name}-play.patch
-Patch1:                %{name}-soundcard.patch
-Patch2:                %{name}-install.patch
+Source0:       http://dl.sourceforge.net/sox/%{name}-%{version}.tar.gz
+# Source0-md5: 7afc0e85d14be014f08e7d3b7ee8c24e
+Patch0:                %{name}-system-lpc10.patch
 URL:           http://sox.sourceforge.net/
-%{?with_alsa:BuildRequires:    alsa-driver-devel}
-BuildRequires: autoconf
+%{?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 >= 0.4.9-4.20080930.1
+BuildRequires: flac-devel
+BuildRequires: ladspa-devel
 BuildRequires: lame-libs-devel
+BuildRequires: libao-devel
 BuildRequires: libgsm-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
@@ -39,100 +52,274 @@ 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
+%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
+conversiones entre estos formatos y desempeñar funciones sencillas de
 manejo de sonido.
 
-%description -l pl
-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¼wiekowe.
-
-%description -l ru
-ëÁË ÇÏ×ÏÒÉÔÓÑ × ÄÏËÕÍÅÎÔÁÃÉÉ, "Û×ÅÊÃÁÒÓËÉÊ ÁÒÍÅÊÓËÉÊ ÎÏÖ Ú×ÕËÏ×ÙÈ
-ÕÔÉÌÉÔ", sox ÕÍÅÅÔ ËÏÎ×ÅÒÔÉÒÏ×ÁÔØ Ú×ÕËÏ×ÙÅ ÆÁÊÌÙ ÓÁÍÙÈ ÒÁÚÎÏÏÂÒÁÚÎÙÈ
-ÆÏÒÍÁÔÏ× É ÐÒÏÉÚ×ÏÄÉÔØ ÎÅÓÌÏÖÎÕÀ ÉÈ ÏÂÒÁÂÏÔËÕ. ó ÐÒÉÌÁÇÁÅÍÙÍ ÓËÒÉÐÔÏÍ
-ÔÁËÖÅ ÍÏÖÅÔ ÂÙÔØ ÉÓÐÏÌØÚÏ×ÁΠÄÌÑ ÐÒÏÉÇÒÙ×ÁÎÉÑ Ú×ÕËÏ×ÙÈ ÆÁÊÌÏ×.
-
-%description -l pt_BR
-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
-÷ ÄÏËÕÍÅÎÔÁ槠ÃÅÊ ÐÁËÅÔ ÎÁÚ×ÁÎÏ "Û×ÅÊÃÁÒÓØËÉÍ ÁÒͦÊÓØËÉÍ ÎÏÖÉËÏÍ
-Ú×ÕËÏ×ÉÈ ÕÔÉ̦Ô". ÷¦Î ×ͦ¤ ËÏÎ×ÅÒÔÕ×ÁÔÉ Ú×ÕËÏצ ÆÁÊÌÉ
-ÎÁÊÒ¦ÚÎÏÍÁΦÔΦÛÉÈ ÆÏÒÍÁԦנÔÁ ×ÉËÏÎÕ×ÁÔÉ ÎÅÓËÌÁÄÎÕ §È ÏÂÒÏÂËÕ. ÷
ÁËÅÔ ×ÈÏÄÉÔØ ÓËÒÉÐÔ, ÑËÉÊ ÍÏÖÎÁ ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ ÄÌÑ ÐÒÏÇÒÁ×ÁÎÎÑ
-Ú×ÕËÏ×ÉÈ ÆÁÊ̦×.
+%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
+В документації цей пакет названо "швейцарським армійським ножиком
+звукових утиліт". Він вміє конвертувати звукові файли
+найрізноманітніших форматів та виконувати нескладну їх обробку. В
¿Ð°ÐºÐµÑ\82 Ð²Ñ\85одиÑ\82Ñ\8c Ñ\81кÑ\80ипÑ\82, Ñ\8fкий Ð¼Ð¾Ð¶Ð½Ð° Ð²Ð¸ÐºÐ¾Ñ\80иÑ\81Ñ\82овÑ\83ваÑ\82и Ð´Ð»Ñ\8f Ð¿Ñ\80огÑ\80аваннÑ\8f
+звукових файлів.
 
 %package devel
-Summary:       The SoX sound file format converter libraries
-Summary(pl):   Biblioteka SoX do konwertowania plików d¼wiêkowych
+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 library needed for compiling applications
-which will use the SoX sound file format converter.
+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
+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 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 devel -l es
-Bibliotecas que pueden ser usadas para compilar aplicaciones que usen
-las bibliotecas del sox.
+%description fmt-lpc10
+SoX module with LPC10 format support.
 
-%description devel -l pl
-Ten pakiet zawiera biblioteki potrzebne do kompilacji aplikacji, które
-bêd± wykorzystywa³y konwerter formatów plików d¼wiêkowych SoX.
+%description fmt-lpc10 -l pl.UTF-8
+Moduł SoX obsługujący format LPC10.
 
-%description devel -l pt_BR
-Bibliotecas que podem ser usadas para compilar aplicações que usem as
-bibliotecas do sox.
+%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
 %patch0 -p1
-%patch1 -p1
-%patch2 -p1
 
 %build
-#%%{__aclocal}
-#%%{__autoconf}
-cp -f /usr/share/automake/config.sub .
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
 %configure \
-       --with-oss-dsp \
-       --with-gsm \
-       %{?with_alsa:--with-alsa-dsp}
+       --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
 
-%{__make} install install-lib \
+%{__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
 
+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
+
+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 monkey.* Changelog README TODO
-%attr(755,root,root) %{_bindir}/[!l]*
-%{_mandir}/man1/*
+# 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}/soxi
+%attr(755,root,root) %{_bindir}/soxplay
+%attr(755,root,root) %{_libdir}/libsox.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libsox.so.1
+%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)
-%attr(755,root,root) %{_bindir}/libst-config
-%{_libdir}/libst.a
-%{_includedir}/*.h
-%{_mandir}/man3/*
+%attr(755,root,root) %{_libdir}/libsox.so
+%{_includedir}/sox.h
+%{_includedir}/soxstdint.h
+%{_pkgconfigdir}/sox.pc
+%{_mandir}/man3/libsox.3*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libsox.a
+%{_libdir}/libsox.la
+
+%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*
This page took 0.179463 seconds and 4 git commands to generate.