rhbz#761244 - please disable JACK for RHEL

Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
This commit is contained in:
Nikola Pajkovsky 2012-01-19 12:40:41 +01:00
parent 10585b2af6
commit b7ad7e8cfe

View File

@ -1,6 +1,12 @@
%if 0%{?rhel}
%define with_jack 0
%else
%define with_jack 1
%endif
Name: alsa-plugins
Version: 1.0.24
Release: 3%{?dist}
Release: 4%{?dist}
Summary: The Advanced Linux Sound Architecture (ALSA) Plugins
# All packages are LGPLv2+ with the exception of samplerate which is GPLv2+
# pph plugin is BSD-like licensed
@ -8,7 +14,9 @@ License: GPLv2+ and LGPLv2+ and BSD
Group: System Environment/Libraries
URL: http://www.alsa-project.org/
Source0: ftp://ftp.alsa-project.org/pub/plugins/%{name}-%{version}.tar.bz2
%if 0%{?with_jack}
Source1: jack.conf
%endif
Source2: pcm-oss.conf
Source3: speex.conf
Source4: samplerate.conf
@ -27,6 +35,7 @@ functionality to the Linux operating system.
This package includes plugins for ALSA.
%if 0%{?with_jack}
%package jack
Requires: alsa-utils
Requires: jack-audio-connection-kit
@ -39,6 +48,7 @@ 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.
This plugin provides the PCM type "jack"
%endif
%package oss
Requires: alsa-utils
@ -150,8 +160,10 @@ rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
install -d ${RPM_BUILD_ROOT}%{_sysconfdir}/alsa/pcm
install -m 644 %SOURCE1 \
%SOURCE2 \
%if 0%{?with_jack}
install -m 644 %SOURCE1 ${RPM_BUILD_ROOT}%{_sysconfdir}/alsa/pcm
%endif
install -m 644 %SOURCE2 \
%SOURCE3 \
%SOURCE4 \
%SOURCE5 \
@ -172,12 +184,14 @@ rm -rf $RPM_BUILD_ROOT
%postun -p /sbin/ldconfig
%if 0%{?with_jack}
%files jack
%defattr(-,root,root,-)
%doc COPYING COPYING.GPL doc/README-jack
%dir %{_sysconfdir}/alsa/pcm
%config(noreplace) %{_sysconfdir}/alsa/pcm/jack.conf
%{_libdir}/alsa-lib/libasound_module_pcm_jack.so
%endif
%files oss
%defattr(-,root,root,-)
@ -249,6 +263,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Thu Jan 19 2012 Nikola Pajkovsky <npajkovs@redhat.com> - 1.0.24-4
- 761244 - please disable JACK for RHEL
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.24-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild