Eric Moret d85bdab
Name:           alsa-plugins
Eric Moret d85bdab
Version:        1.0.14
Eric Moret d85bdab
Release:        1%{?dist}
Eric Moret d85bdab
Summary:        The Advanced Linux Sound Architecture (ALSA) Plugins
Eric Moret d85bdab
# All packages are LGPLv2+ with the exception of samplerate which is GPLv2+
Eric Moret d85bdab
License:        GPLv2+ and LGPLv2+
Eric Moret d85bdab
Group:          System Environment/Libraries
Eric Moret d85bdab
URL:            http://www.alsa-project.org/
Eric Moret d85bdab
Source0:        ftp://ftp.alsa-project.org/pub/plugins/%{name}-%{version}.tar.bz2
Eric Moret d85bdab
Source1:        jack.conf
Eric Moret d85bdab
Source2:        pcm-oss.conf
Eric Moret d85bdab
Source3:        pulseaudio.conf
Eric Moret d85bdab
Source4:        samplerate.conf
Eric Moret d85bdab
Source5:        upmix.conf
Eric Moret d85bdab
Source6:        vdownmix.conf
Eric Moret d85bdab
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Eric Moret d85bdab
Eric Moret d85bdab
BuildRequires:  alsa-lib-devel
Eric Moret d85bdab
Eric Moret d85bdab
%description
Eric Moret d85bdab
The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI
Eric Moret d85bdab
functionality to the Linux operating system.
Eric Moret d85bdab
Eric Moret d85bdab
This package includes plugins for ALSA.
Eric Moret d85bdab
Eric Moret d85bdab
%package jack
Eric Moret d85bdab
Requires:       jack-audio-connection-kit
Eric Moret d85bdab
BuildRequires:  jack-audio-connection-kit-devel
Eric Moret d85bdab
Summary:        Jack PCM output plugin for ALSA
Eric Moret d85bdab
Group:          System Environment/Libraries
Eric Moret d85bdab
License:        LGPLv2+
Eric Moret d85bdab
%description jack
Eric Moret d85bdab
This plugin converts the ALSA API over JACK (Jack Audio Connection
Eric Moret d85bdab
Kit, http://jackit.sf.net) API.  ALSA native applications can work
Eric Moret d85bdab
transparently together with jackd for both playback and capture.
Eric Moret d85bdab
Eric Moret d85bdab
    ALSA apps (playback) -> ALSA-lib -> JACK plugin -> JACK daemon
Eric Moret d85bdab
    ALSA apps (capture) <- ALSA-lib <- JACK plugin <- JACK daemon
Eric Moret d85bdab
Eric Moret d85bdab
This plugin provides the PCM type "jack"
Eric Moret d85bdab
Eric Moret d85bdab
%package oss
Eric Moret d85bdab
BuildRequires:  alsa-lib-devel
Eric Moret d85bdab
Summary:        Oss PCM output plugin for ALSA
Eric Moret d85bdab
Group:          System Environment/Libraries
Eric Moret d85bdab
License:        LGPLv2+ 
Eric Moret d85bdab
%description oss
Eric Moret d85bdab
This plugin converts the ALSA API over OSS API.  With this plugin,
Eric Moret d85bdab
ALSA native apps can run on OSS drivers.
Eric Moret d85bdab
Eric Moret d85bdab
This plugin provides the PCM type "oss".
Eric Moret d85bdab
Eric Moret d85bdab
%package pulseaudio
Eric Moret d85bdab
BuildRequires:  pulseaudio-lib-devel
Eric Moret d85bdab
Summary:        Alsa to PulseAudio backend
Eric Moret d85bdab
Group:          System Environment/Libraries
Eric Moret d85bdab
License:        LGPLv2+
Eric Moret d85bdab
%description pulseaudio
Eric Moret d85bdab
This plugin allows any program that uses the ALSA API to access a PulseAudio
Eric Moret d85bdab
sound daemon. In other words, native ALSA applications can play and record
Eric Moret d85bdab
sound across a network. There are two plugins in the suite, one for PCM and
Eric Moret d85bdab
one for mixer control.
Eric Moret d85bdab
Eric Moret d85bdab
%package samplerate
Eric Moret d85bdab
BuildRequires:  libsamplerate-devel
Eric Moret d85bdab
Summary:        External rate converter plugin for ALSA
Eric Moret d85bdab
Group:          System Environment/Libraries
Eric Moret d85bdab
License:        GPLv2+
Eric Moret d85bdab
%description samplerate
Eric Moret d85bdab
This plugin is an external rate converter using libsamplerate by Erik de
Eric Moret d85bdab
Castro Lopo.
Eric Moret d85bdab
Eric Moret d85bdab
%package upmix
Eric Moret d85bdab
BuildRequires:  libsamplerate-devel
Eric Moret d85bdab
Summary:        Upmixer channel expander plugin for ALSA
Eric Moret d85bdab
Group:          System Environment/Libraries
Eric Moret d85bdab
License:        LGPLv2+
Eric Moret d85bdab
%description upmix
Eric Moret d85bdab
The upmix plugin is an easy-to-use plugin for upmixing to 4 or
Eric Moret d85bdab
6-channel stream.  The number of channels to be expanded is determined
Eric Moret d85bdab
by the slave PCM or explicitly via channel option.
Eric Moret d85bdab
Eric Moret d85bdab
%package vdownmix
Eric Moret d85bdab
BuildRequires:  libsamplerate-devel
Eric Moret d85bdab
Summary:        Downmixer to stereo plugin for ALSA
Eric Moret d85bdab
Group:          System Environment/Libraries
Eric Moret d85bdab
License:        LGPLv2+
Eric Moret d85bdab
%description vdownmix
Eric Moret d85bdab
The vdownmix plugin is a downmixer from 4-6 channels to 2-channel
Eric Moret d85bdab
stereo headphone output.  This plugin processes the input signals with
Eric Moret d85bdab
a simple spacialization, so the output sounds like a kind of "virtual
Eric Moret d85bdab
surround".
Eric Moret d85bdab
Eric Moret d85bdab
%prep
Eric Moret d85bdab
%setup -q -n %{name}-%{version}
Eric Moret d85bdab
Eric Moret d85bdab
%build
Eric Moret d85bdab
%configure --disable-static \
Eric Moret d85bdab
           --without-speex
Eric Moret d85bdab
make %{?_smp_mflags}
Eric Moret d85bdab
Eric Moret d85bdab
%install
Eric Moret d85bdab
rm -rf $RPM_BUILD_ROOT
Eric Moret d85bdab
make install DESTDIR=$RPM_BUILD_ROOT
Eric Moret d85bdab
Eric Moret d85bdab
install -d ${RPM_BUILD_ROOT}%{_sysconfdir}/alsa/pcm
Eric Moret d85bdab
install -m 644 %SOURCE1 %SOURCE2 %SOURCE3 \
Eric Moret d85bdab
               %SOURCE4 %SOURCE5 %SOURCE6 \
Eric Moret d85bdab
                   ${RPM_BUILD_ROOT}%{_sysconfdir}/alsa/pcm
Eric Moret d85bdab
Eric Moret d85bdab
find $RPM_BUILD_ROOT -name "*.la" -exec rm {} \;
Eric Moret d85bdab
Eric Moret d85bdab
# Removing the maemo plugins
Eric Moret d85bdab
find $RPM_BUILD_ROOT \( -name libasound_module_ctl_dsp_ctl.so -o \
Eric Moret d85bdab
                        -name libasound_module_pcm_alsa_dsp.so \) -exec rm {} \;
Eric Moret d85bdab
Eric Moret d85bdab
%clean
Eric Moret d85bdab
rm -rf $RPM_BUILD_ROOT
Eric Moret d85bdab
Eric Moret d85bdab
%files jack
Eric Moret d85bdab
%defattr(-,root,root,-)
Eric Moret d85bdab
%doc COPYING COPYING.GPL doc/README-jack
Eric Moret d85bdab
%config(noreplace) %{_sysconfdir}/alsa/pcm/jack.conf
Eric Moret d85bdab
%{_libdir}/alsa-lib/libasound_module_pcm_jack.so
Eric Moret d85bdab
Eric Moret d85bdab
%files oss
Eric Moret d85bdab
%defattr(-,root,root,-)
Eric Moret d85bdab
%doc COPYING COPYING.GPL doc/README-pcm-oss
Eric Moret d85bdab
%config(noreplace) %{_sysconfdir}/alsa/pcm/pcm-oss.conf
Eric Moret d85bdab
%{_libdir}/alsa-lib/libasound_module_ctl_oss.so
Eric Moret d85bdab
%{_libdir}/alsa-lib/libasound_module_pcm_oss.so
Eric Moret d85bdab
Eric Moret d85bdab
%files pulseaudio
Eric Moret d85bdab
%defattr(-,root,root,-)
Eric Moret d85bdab
%doc COPYING COPYING.GPL doc/README-pulse
Eric Moret d85bdab
%config(noreplace) %{_sysconfdir}/alsa/pcm/pulseaudio.conf
Eric Moret d85bdab
%{_libdir}/alsa-lib/libasound_module_pcm_pulse.so
Eric Moret d85bdab
%{_libdir}/alsa-lib/libasound_module_ctl_pulse.so
Eric Moret d85bdab
Eric Moret d85bdab
%files samplerate
Eric Moret d85bdab
%defattr(-,root,root,-)
Eric Moret d85bdab
%doc COPYING COPYING.GPL doc/samplerate.txt
Eric Moret d85bdab
%config(noreplace) %{_sysconfdir}/alsa/pcm/samplerate.conf
Eric Moret d85bdab
%{_libdir}/alsa-lib/libasound_module_rate_samplerate.so
Eric Moret d85bdab
%{_libdir}/alsa-lib/libasound_module_rate_samplerate_best.so
Eric Moret d85bdab
%{_libdir}/alsa-lib/libasound_module_rate_samplerate_linear.so
Eric Moret d85bdab
%{_libdir}/alsa-lib/libasound_module_rate_samplerate_medium.so
Eric Moret d85bdab
%{_libdir}/alsa-lib/libasound_module_rate_samplerate_order.so
Eric Moret d85bdab
Eric Moret d85bdab
%files upmix
Eric Moret d85bdab
%defattr(-,root,root,-)
Eric Moret d85bdab
%doc COPYING COPYING.GPL doc/upmix.txt
Eric Moret d85bdab
%config(noreplace) %{_sysconfdir}/alsa/pcm/upmix.conf
Eric Moret d85bdab
%{_libdir}/alsa-lib/libasound_module_pcm_upmix.so
Eric Moret d85bdab
Eric Moret d85bdab
%files vdownmix
Eric Moret d85bdab
%defattr(-,root,root,-)
Eric Moret d85bdab
%doc COPYING COPYING.GPL doc/vdownmix.txt
Eric Moret d85bdab
%config(noreplace) %{_sysconfdir}/alsa/pcm/vdownmix.conf
Eric Moret d85bdab
%{_libdir}/alsa-lib/libasound_module_pcm_vdownmix.so
Eric Moret d85bdab
Eric Moret d85bdab
%changelog
Eric Moret d85bdab
* Mon Jul 23 2007 Eric Moret <eric.moret@epita.fr> - 1.0.14-1
Eric Moret d85bdab
- update to upstream 1.0.14
Eric Moret d85bdab
- use configure --without-speex instead of patches to remove a52
Eric Moret d85bdab
Eric Moret d85bdab
* Tue Mar 13 2007 Matej Cepl <mcepl@redhat.com> - 1.0.14-0.3.rc2
Eric Moret d85bdab
- Really remove a52 plugin package (including changes in
Eric Moret d85bdab
  configure and configure.in)
Eric Moret d85bdab
Eric Moret d85bdab
* Thu Feb 15 2007 Eric Moret <eric.moret@epita.fr> 1.0.14-0.2.rc2
Eric Moret d85bdab
- Adding configuration files
Eric Moret d85bdab
- Removing a52 plugin package
Eric Moret d85bdab
Eric Moret d85bdab
* Wed Jan 10 2007 Eric Moret <eric.moret@epita.fr> 1.0.14-0.1.rc2
Eric Moret d85bdab
- Initial package for Fedora