move alsactl to /sbin ship a dev.d file for mixer restoring on bootup
This commit is contained in:
parent
dd1b4790bc
commit
ef3897f128
@ -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 <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
|
||||
- update to 1.0.6
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user