]> git.pld-linux.org Git - packages/sox.git/blobdiff - sox.spec
- release 2
[packages/sox.git] / sox.spec
index c2fc7a8b9bbf377449fa8cd498e4353e6ede2167..81eef6825c1897a1d913b1264cdf3b02864ce797 100644 (file)
--- a/sox.spec
+++ b/sox.spec
-Summary:       A general purpose sound file conversion tool.
+#
+# 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.15
-Release:       5
-Copyright:     distributable
-Group:         Applications/Multimedia
-Source:                http://home.sprynet.com/sprynet/cbagwell/%{name}-%{version}.tar.gz
-Url:           http://home.sprynet.com/sprynet/cbagwell/
-Patch0:                sox-12.15-paths.patch
-Patch1:                sox-12.15-space.patch
-Patch2:                sox-play.patch 
+Version:       14.0.1
+Release:       2
+License:       GPL v2+ (sox), LGPL v2+ (libsox)
+Group:         Applications/Sound
+Source0:       http://dl.sourceforge.net/sox/%{name}-%{version}.tar.gz
+# Source0-md5: 6c95af60b20b9655531bf3162c0be937
+Patch0:                %{name}-gsm.patch
+Patch1:                %{name}-system-lpc10.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
+BuildRequires: libltdl-devel
+BuildRequires: libmad-devel
+BuildRequires: libsamplerate-devel
+BuildRequires: libsndfile-devel
+BuildRequires: libtool
+BuildRequires: libvorbis-devel >= 1:1.0
+BuildRequires: lpc10-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-SoX (Sound eXchange) is a sound file format converter for Linux,
-UNIX and DOS PCs. The self-described 'Swiss Army knife of sound
-tools,' SoX can convert between many different digitized sound
-formats and perform simple sound manipulation functions,
-including sound effects.
+SoX (Sound eXchange) is a sound file format converter for Linux, UNIX
+and DOS PCs. The self-described 'Swiss Army knife of sound tools,' SoX
+can convert between many different digitized sound formats and perform
+simple sound manipulation functions, including sound effects.
 
-Install the sox package if you'd like to convert sound file formats
-or manipulate some sounds.
+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
+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.
 
-%description devel 
-This package contains the library needed for compiling applications
-which will use the SoX sound file format converter.
+%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}
 
-Install sox-devel if you want to develop applications which will use
-SoX.
+%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
-%{__make} PREFIX=%{_prefix} RPM_OPT_FLAGS="$RPM_OPT_FLAGS" 
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+       %{!?with_alsa:--disable-alsa-dsp} \
+       %{!?with_amr:--without-amr-nb --without-amr-wb}
+
+%{__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} \
-       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
 
-strip --strip-unneeded $RPM_BUILD_ROOT%{_bindir}/sox
+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 TIPS TODO CHEAT* \
-       $RPM_BUILD_ROOT%{_mandir}/man*/*
+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 {Changelog,README,TIPS,TODO,CHEAT*}.gz
+# 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}/soxplay
-%{_mandir}/man1/*.1.gz
+%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_auto.so*
+%attr(755,root,root) %{_libdir}/sox/libsox_fmt_avr.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*
+# 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_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_nul.so*
+%attr(755,root,root) %{_libdir}/sox/libsox_fmt_oss.so*
+%attr(755,root,root) %{_libdir}/sox/libsox_fmt_prc.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_smp.so*
+# R: libsndfile
+%attr(755,root,root) %{_libdir}/sox/libsox_fmt_sndfile.so*
+%attr(755,root,root) %{_libdir}/sox/libsox_fmt_sndrtool.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_wav.so*
+%attr(755,root,root) %{_libdir}/sox/libsox_fmt_wve.so*
+%attr(755,root,root) %{_libdir}/sox/libsox_fmt_xa.so*
+%{_mandir}/man1/play.1*
+%{_mandir}/man1/rec.1*
+%{_mandir}/man1/sox.1*
+%{_mandir}/man7/soxeffect.7*
+%{_mandir}/man7/soxexam.7*
+%{_mandir}/man7/soxformat.7*
 
 %files devel
 %defattr(644,root,root,755)
-%{_libdir}/libst.a
-%{_mandir}/man3/*.3.gz
+%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
+%{_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*
This page took 0.116871 seconds and 4 git commands to generate.