move alsactl to /sbin ship a dev.d file for mixer restoring on bootup

This commit is contained in:
Bill Nottingham 2004-10-14 21:58:30 +00:00
parent dd1b4790bc
commit ef3897f128

View File

@ -1,11 +1,12 @@
Summary: Advanced Linux Sound Architecture (ALSA) utilities Summary: Advanced Linux Sound Architecture (ALSA) utilities
Name: alsa-utils Name: alsa-utils
Version: 1.0.6 Version: 1.0.6
Release: 1 Release: 2
License: GPL License: GPL
Group: Applications/Multimedia Group: Applications/Multimedia
URL: http://www.alsa-project.org/ URL: http://www.alsa-project.org/
Source: ftp://ftp.alsa-project.org/pub/utils/alsa-utils-%{version}%{?prever}.tar.bz2 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) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: alsa-lib-devel >= %{version} BuildRequires: alsa-lib-devel >= %{version}
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
@ -19,15 +20,20 @@ Architecture (ALSA).
%setup -q -n %{name}-%{version}%{?prever} %setup -q -n %{name}-%{version}%{?prever}
%build %build
%configure %configure --sbindir=/sbin
%{__make} %{?_smp_mflags} %{__make} %{?_smp_mflags}
%install %install
%{__rm} -rf ${RPM_BUILD_ROOT} %{__rm} -rf ${RPM_BUILD_ROOT}
%makeinstall make install DESTDIR=$RPM_BUILD_ROOT
%{__rm} -f $RPM_BUILD_ROOT%{_sbindir}/alsaconf \ %{__rm} -f $RPM_BUILD_ROOT/sbin/alsaconf \
$RPM_BUILD_ROOT%{_mandir}/man*/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 %clean
%{__rm} -rf $RPM_BUILD_ROOT %{__rm} -rf $RPM_BUILD_ROOT
@ -35,11 +41,18 @@ Architecture (ALSA).
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc COPYING ChangeLog README TODO %doc COPYING ChangeLog README TODO
%dir /etc/dev.d/sound
/etc/dev.d/sound/*
%{_bindir}/* %{_bindir}/*
%{_sbindir}/* %{_sbindir}/*
/sbin/*
%{_mandir}/man?/* %{_mandir}/man?/*
%changelog %changelog
* Thu Oct 14 2004 Bill Nottingham <notting@redhat.com> 1.0.6-2
- move alsactl to /sbin
- include a dev.d script for mixer restoring (#133535)
* Mon Aug 30 2004 Bill Nottingham <notting@redhat.com> 1.0.6-1 * Mon Aug 30 2004 Bill Nottingham <notting@redhat.com> 1.0.6-1
- update to 1.0.6 - update to 1.0.6