SHA256
1
0
forked from pool/pulseaudio

Accepting request 61643 from multimedia:libs

Accepted submit request 61643 from user tiwai

OBS-URL: https://build.opensuse.org/request/show/61643
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pulseaudio?expand=0&rev=72
This commit is contained in:
Ruediger Oertel 2011-02-18 10:58:09 +00:00 committed by Git OBS Bridge
commit 767f31d164
3 changed files with 37 additions and 2 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Thu Feb 17 17:54:45 CET 2011 - tiwai@suse.de
- Add the setup for festival to setup-pulseaudio script
(bnc#670992)
-------------------------------------------------------------------
Mon Feb 14 19:49:24 CET 2011 - sbrabec@suse.cz
- Added support for translation-update-upstream.
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jan 22 01:05:20 UTC 2011 - sreeves@novell.com Sat Jan 22 01:05:20 UTC 2011 - sreeves@novell.com

View File

@ -55,6 +55,7 @@ BuildRequires: lirc-devel
BuildRequires: libudev-devel >= 143 BuildRequires: libudev-devel >= 143
BuildRequires: speex-devel BuildRequires: speex-devel
BuildRequires: tcpd-devel BuildRequires: tcpd-devel
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files BuildRequires: update-desktop-files
BuildRequires: xorg-x11-devel BuildRequires: xorg-x11-devel
PreReq: pwdutils PreReq: pwdutils
@ -67,7 +68,7 @@ Obsoletes: libpulsecore9 <= 0.9.14
Obsoletes: libpulsecore7 <= 0.9.12 Obsoletes: libpulsecore7 <= 0.9.12
%description %description
pulseaudio is a networked sound server for Linux and other Unix like pulseaudio is a networked sound server for Linux, other Unix like
operating systems and Microsoft Windows. It is intended to be an operating systems and Microsoft Windows. It is intended to be an
improved drop-in replacement for the Enlightened Sound Daemon (ESOUND). improved drop-in replacement for the Enlightened Sound Daemon (ESOUND).
@ -230,7 +231,7 @@ improved drop-in replacement for the Enlightened Sound Daemon (ESOUND).
%package gdm-hooks %package gdm-hooks
Summary: PulseAudio GDM integration Summary: PulseAudio GDM integration
License: GPLv2+ ; LGPLv2.1+ License: GPLv2+ ; LGPLv2.1+
Group: Applications/Multimedia Group: Productivity/Multimedia/Other
Requires: %{name} = %{version} Requires: %{name} = %{version}
Requires: gdm >= 2.22 Requires: gdm >= 2.22
#for the gdm user #for the gdm user
@ -244,6 +245,7 @@ This package contains GDM integration hooks for the PulseAudio sound server.
%lang_package %lang_package
%prep %prep
%setup -q -T -b0 %setup -q -T -b0
translation-update-upstream
%patch0 %patch0
%patch1 -p1 %patch1 -p1

View File

@ -140,6 +140,17 @@ enable_xine() {
return 0 return 0
} }
enable_festival() {
test -f /etc/festival.scm || return 0
echo "Enabling PulseAudio for Festival..."
cat << EOF >> /etc/festival.scm
;;;; Use pulseaudio to output sound
(Parameter.set 'Audio_Command "paplay -n festival \$FILE")
(Parameter.set 'Audio_Method 'Audio_Command)
(Parameter.set 'Audio_Required_Format 'snd)
EOF
}
enable_autospawn() { enable_autospawn() {
echo "Enabling PulseAudio autospawn..." echo "Enabling PulseAudio autospawn..."
if grep -q ^autospawn /etc/pulse/client.conf; then if grep -q ^autospawn /etc/pulse/client.conf; then
@ -210,6 +221,15 @@ disable_xine() {
return 0 return 0
} }
disable_festival() {
test -f /etc/festival.scm || return 0
echo "Disabling PulseAudio for Festival..."
/usr/bin/sed --in-place /";;;; Use pulseaudio to output sound"/d /etc/festival.scm
/usr/bin/sed --in-place /"(Parameter.set 'Audio_Command \"paplay -n festival \$FILE\")"/d /etc/festival.scm
/usr/bin/sed --in-place /"(Parameter.set 'Audio_Method 'Audio_Command)"/d /etc/festival.scm
/usr/bin/sed --in-place /"(Parameter.set 'Audio_Required_Format 'snd)"/d /etc/festival.scm
}
disable_autospawn() { disable_autospawn() {
echo "Disabling PulseAudio autospawn..." echo "Disabling PulseAudio autospawn..."
if grep -q ^autospawn /etc/pulse/client.conf; then if grep -q ^autospawn /etc/pulse/client.conf; then
@ -231,6 +251,7 @@ case $1 in
enable_sdl enable_sdl
enable_timidity enable_timidity
enable_xine enable_xine
enable_festival
enable_autospawn enable_autospawn
enable_phonon enable_phonon
enable_speechd enable_speechd
@ -246,6 +267,7 @@ case $1 in
disable_sdl disable_sdl
disable_timidity disable_timidity
disable_xine disable_xine
disable_festival
disable_autospawn disable_autospawn
disable_phonon disable_phonon
disable_speechd disable_speechd