Accepting request 46332 from multimedia:libs

Copy from multimedia:libs/pulseaudio based on submit request 46332 from user vuntz

OBS-URL: https://build.opensuse.org/request/show/46332
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pulseaudio?expand=0&rev=65
This commit is contained in:
OBS User autobuild 2010-08-27 15:17:33 +00:00 committed by Git OBS Bridge
commit cc3a63c14f
3 changed files with 21 additions and 7 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Aug 12 09:55:04 CEST 2010 - tiwai@suse.de
- minor fixes for setup-pulseaudio (bnc#623837)
also added /etc/profile.d/pulseaudio.* to file list as ghost
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jul 20 18:41:58 CEST 2010 - tiwai@suse.de Tue Jul 20 18:41:58 CEST 2010 - tiwai@suse.de

View File

@ -22,7 +22,7 @@
Name: pulseaudio Name: pulseaudio
Summary: A Networked Sound Server Summary: A Networked Sound Server
Version: 0.9.21 Version: 0.9.21
Release: 12 Release: 13
License: GPLv2+ ; LGPLv2.1+ License: GPLv2+ ; LGPLv2.1+
Group: System/Sound Daemons Group: System/Sound Daemons
Source: %{name}-%{version}.tar.bz2 Source: %{name}-%{version}.tar.bz2
@ -394,6 +394,9 @@ rm -rf $RPM_BUILD_ROOT%{_libdir}/*.a
%find_lang %{name} %find_lang %{name}
install %SOURCE2 $RPM_BUILD_ROOT%{_bindir} install %SOURCE2 $RPM_BUILD_ROOT%{_bindir}
chmod 755 $RPM_BUILD_ROOT%{_bindir}/setup-pulseaudio chmod 755 $RPM_BUILD_ROOT%{_bindir}/setup-pulseaudio
mkdir -p $RPM_BUILD_ROOT/etc/profile.d
touch $RPM_BUILD_ROOT/etc/profile.d/pulseaudio.sh
touch $RPM_BUILD_ROOT/etc/profile.d/pulseaudio.csh
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/gdm/.pulse mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/gdm/.pulse
cp $RPM_SOURCE_DIR/default.pa-for-gdm $RPM_BUILD_ROOT%{_localstatedir}/lib/gdm/.pulse/default.pa cp $RPM_SOURCE_DIR/default.pa-for-gdm $RPM_BUILD_ROOT%{_localstatedir}/lib/gdm/.pulse/default.pa
ln -s esdcompat $RPM_BUILD_ROOT%{_bindir}/esd ln -s esdcompat $RPM_BUILD_ROOT%{_bindir}/esd
@ -433,6 +436,9 @@ groupadd -r pulse-access &>/dev/null || :
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/pulseaudio-system.conf %config(noreplace) %{_sysconfdir}/dbus-1/system.d/pulseaudio-system.conf
%{_bindir}/pulseaudio %{_bindir}/pulseaudio
%{_bindir}/setup-pulseaudio %{_bindir}/setup-pulseaudio
# created by setup-pulseaudio script
%ghost /etc/profile.d/pulseaudio.sh
%ghost /etc/profile.d/pulseaudio.csh
%dir %{_libdir}/pulse-%{drvver}/ %dir %{_libdir}/pulse-%{drvver}/
%dir %{_libdir}/pulse-%{drvver}/modules/ %dir %{_libdir}/pulse-%{drvver}/modules/
%{_libdir}/libpulsecore-%{drvver}.so %{_libdir}/libpulsecore-%{drvver}.so

View File

@ -31,13 +31,13 @@ CPROFNAME=/etc/profile.d/pulseaudio.csh
set_variable () { set_variable () {
if test -f $PROFNAME && if test -f $PROFNAME &&
grep -q "export $1"= $PROFNAME; then grep -q "export $1"= $PROFNAME; then
sed -ie "s|export $1=.*|export $1=$2|g" $PROFNAME sed -i -e "s|export $1=.*|export $1=$2|g" $PROFNAME
else else
echo "export $1=$2" >> $PROFNAME echo "export $1=$2" >> $PROFNAME
fi fi
if test -f $CPROFNAME && if test -f $CPROFNAME &&
grep -q "setenv $1 " $CPROFNAME; then grep -q "setenv $1 " $CPROFNAME; then
sed -ie "s|setenv $1 .*|setenv $1 $2|g" $CPROFNAME sed -i -e "s|setenv $1 .*|setenv $1 $2|g" $CPROFNAME
else else
echo "setenv $1 $2" >> $CPROFNAME echo "setenv $1 $2" >> $CPROFNAME
fi fi
@ -46,11 +46,11 @@ set_variable () {
delete_variable () { delete_variable () {
if test -f $PROFNAME && if test -f $PROFNAME &&
grep -q "export $1"= $PROFNAME; then grep -q "export $1"= $PROFNAME; then
sed -ie "/export $1=.*/d" $PROFNAME sed -i -e "/export $1=.*/d" $PROFNAME
fi fi
if test -f $CPROFNAME && if test -f $CPROFNAME &&
grep -q "setenv $1 " $CPROFNAME; then grep -q "setenv $1 " $CPROFNAME; then
sed -ie "/setenv $1 .*/d" $CPROFNAME sed -i -e "/setenv $1 .*/d" $CPROFNAME
fi fi
} }
@ -251,8 +251,10 @@ case $1 in
disable_speechd disable_speechd
;; ;;
--status) --status)
STATUS=`grep PULSEAUDIO_ENABLE /etc/sysconfig/sound | cut -f2 -d= | cut -f2 -d\"` if [ -f /etc/sysconfig/sound ]; then
if [ "x$STATUS" = "xyes" ]; then . /etc/sysconfig/sound
fi
if [ "x$PULSEAUDIO_ENABLE" = "xyes" ]; then
echo "enabled" echo "enabled"
else else
echo "disabled" echo "disabled"