diff --git a/alsa-plugins.spec b/alsa-plugins.spec index fa7ac06..5512a77 100644 --- a/alsa-plugins.spec +++ b/alsa-plugins.spec @@ -1,6 +1,6 @@ Name: alsa-plugins Version: 1.0.20 -Release: 1%{?dist} +Release: 2%{?dist} Summary: The Advanced Linux Sound Architecture (ALSA) Plugins # All packages are LGPLv2+ with the exception of samplerate which is GPLv2+ License: GPLv2+ and LGPLv2+ @@ -9,6 +9,7 @@ URL: http://www.alsa-project.org/ Source0: ftp://ftp.alsa-project.org/pub/plugins/%{name}-%{version}.tar.bz2 Source1: jack.conf Source2: pcm-oss.conf +Source3: speex.conf Source4: samplerate.conf Source5: upmix.conf Source6: vdownmix.conf @@ -34,10 +35,6 @@ License: LGPLv2+ This plugin converts the ALSA API over JACK (Jack Audio Connection Kit, http://jackit.sf.net) API. ALSA native applications can work transparently together with jackd for both playback and capture. - - ALSA apps (playback) -> ALSA-lib -> JACK plugin -> JACK daemon - ALSA apps (capture) <- ALSA-lib <- JACK plugin <- JACK daemon - This plugin provides the PCM type "jack" %package oss @@ -113,12 +110,23 @@ License: LGPLv2+ This plugin exposes the controls for an Arcam AV amplifier (see: http://www.arcam.co.uk/) as an ALSA mixer device. +%package speex +Requires: speex +BuildRequires: speex-devel +Summary: Rate Converter Plugin Using Speex Resampler +Group: System Environment/Libraries +License: LGPLv2+ +%description speex +The rate plugin is an external rate converter using the Speex resampler +(aka Public Parrot Hack) by Jean-Marc Valin. The pcm plugin provides +pre-processing of a mono stream like denoise using libspeex DSP API. + %prep %setup -q -n %{name}-%{version}%{?prever} %build %configure --disable-static \ - --without-speex + --with-speex=lib make %{?_smp_mflags} %install @@ -127,11 +135,12 @@ make install DESTDIR=$RPM_BUILD_ROOT install -d ${RPM_BUILD_ROOT}%{_sysconfdir}/alsa/pcm install -m 644 %SOURCE1 %SOURCE2 \ - %SOURCE4 %SOURCE5 \ - %SOURCE6 %SOURCE8 \ + %SOURCE3 %SOURCE4 \ + %SOURCE5 %SOURCE6 \ + %SOURCE8 \ ${RPM_BUILD_ROOT}%{_sysconfdir}/alsa/pcm install -m 644 %SOURCE7 \ - ${RPM_BUILD_ROOT}%{_sysconfdir}/alsa + ${RPM_BUILD_ROOT}%{_sysconfdir}/alsa find $RPM_BUILD_ROOT -name "*.la" -exec rm {} \; @@ -205,8 +214,21 @@ rm -rf $RPM_BUILD_ROOT %config(noreplace) %{_sysconfdir}/alsa/pcm/arcamav.conf %{_libdir}/alsa-lib/libasound_module_ctl_arcam_av.so +%files speex +%defattr(-,root,root,-) +%doc COPYING COPYING.GPL doc/speexdsp.txt doc/speexrate.txt +%config(noreplace) %{_sysconfdir}/alsa/pcm/speex.conf +%{_libdir}/alsa-lib/libasound_module_pcm_speex.so +%{_libdir}/alsa-lib/libasound_module_rate_speexrate.so +%{_libdir}/alsa-lib/libasound_module_rate_speexrate_best.so +%{_libdir}/alsa-lib/libasound_module_rate_speexrate_medium.so + %changelog +* Wed Jun 24 2009 Eric Moret - 1.0.20-2 +- Added speex subpackage +- Removed ascii-art from jack's plugin description + * Fri May 8 2009 Eric Moret - 1.0.20-1 - Updated to 1.0.20 - Added arcam-av subpackage diff --git a/speex.conf b/speex.conf new file mode 100644 index 0000000..c4f23e3 --- /dev/null +++ b/speex.conf @@ -0,0 +1,11 @@ +# samplerate plugin configuration +# $Id$ + +pcm.my_rate { + type rate + slave.pcm "hw" + converter "speexrate" + hint { + description "Rate Converter Plugin Using Speex Resampler" + } +}