From ef3897f128c402ab0ba83335a91c381f4938978c Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Oct 14 2004 21:58:30 +0000 Subject: move alsactl to /sbin ship a dev.d file for mixer restoring on bootup --- diff --git a/alsa-utils.spec b/alsa-utils.spec index 48bb686..ca8e51d 100644 --- a/alsa-utils.spec +++ b/alsa-utils.spec @@ -1,11 +1,12 @@ Summary: Advanced Linux Sound Architecture (ALSA) utilities Name: alsa-utils Version: 1.0.6 -Release: 1 +Release: 2 License: GPL Group: Applications/Multimedia URL: http://www.alsa-project.org/ Source: ftp://ftp.alsa-project.org/pub/utils/alsa-utils-%{version}%{?prever}.tar.bz2 +Source2: alsa.dev BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: alsa-lib-devel >= %{version} BuildRequires: ncurses-devel @@ -19,15 +20,20 @@ Architecture (ALSA). %setup -q -n %{name}-%{version}%{?prever} %build -%configure +%configure --sbindir=/sbin %{__make} %{?_smp_mflags} %install %{__rm} -rf ${RPM_BUILD_ROOT} -%makeinstall -%{__rm} -f $RPM_BUILD_ROOT%{_sbindir}/alsaconf \ +make install DESTDIR=$RPM_BUILD_ROOT +%{__rm} -f $RPM_BUILD_ROOT/sbin/alsaconf \ $RPM_BUILD_ROOT%{_mandir}/man*/alsaconf* +mkdir -p $RPM_BUILD_ROOT/%{_sbindir} +ln -s ../../sbin/alsactl $RPM_BUILD_ROOT/%{_sbindir}/alsactl + +mkdir -p -m755 $RPM_BUILD_ROOT/etc/dev.d/sound +install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/etc/dev.d/sound/alsa.dev %clean %{__rm} -rf $RPM_BUILD_ROOT @@ -35,11 +41,18 @@ Architecture (ALSA). %files %defattr(-,root,root,-) %doc COPYING ChangeLog README TODO +%dir /etc/dev.d/sound +/etc/dev.d/sound/* %{_bindir}/* %{_sbindir}/* +/sbin/* %{_mandir}/man?/* %changelog +* Thu Oct 14 2004 Bill Nottingham 1.0.6-2 +- move alsactl to /sbin +- include a dev.d script for mixer restoring (#133535) + * Mon Aug 30 2004 Bill Nottingham 1.0.6-1 - update to 1.0.6