diff --git a/alsa-lib.spec b/alsa-lib.spec index 8e08a32..b71c071 100644 --- a/alsa-lib.spec +++ b/alsa-lib.spec @@ -5,7 +5,7 @@ Summary: The Advanced Linux Sound Architecture (ALSA) library. Name: alsa-lib Version: %{version_main}%{?version_app} -Release: 2 +Release: 3 License: LGPL Group: System Environment/Libraries Source: ftp://ftp.alsa-project.org/pub/lib/%{name}-%{version_main}%{?prever}.tar.bz2 @@ -90,12 +90,16 @@ rm -rf %{buildroot} %post /sbin/ldconfig -/usr/bin/ainit `cat /var/run/console/console.lock` start +if [ -f /var/run/console/console.lock ]; then + /usr/bin/ainit `cat /var/run/console/console.lock` start +fi %postun -p /sbin/ldconfig %preun -/usr/bin/ainit `cat /var/run/console/console.lock` stop +if [ -f /var/run/console/console.lock ]; then + /usr/bin/ainit `cat /var/run/console/console.lock` stop +fi %triggerpostun -- alsa-lib < 1.0.6-2 ln -snf ../../etc/alsa %{_datadir}/alsa @@ -129,6 +133,9 @@ ln -snf ../../etc/alsa %{_datadir}/alsa %{_datadir}/aclocal/alsa.m4 %changelog +* Wed Jul 20 2005 Martin Stransky 1.0.9rf-3 +- check for /var/run/console/console.lock (#162982) + * Thu Jun 16 2005 Martin Stransky 1.0.9rf-2 - fix for #159411