- migrate the alsa restore program to a udev rule, not a dev.d program
- conflict with appropriate udev
This commit is contained in:
parent
2351acf9f2
commit
a18ce49201
@ -12,13 +12,14 @@ Source: ftp://ftp.alsa-project.org/pub/utils/alsa-utils-%{version_tar}%{?prever
|
|||||||
Source2: salsa.c
|
Source2: salsa.c
|
||||||
Source3: alsacard.c
|
Source3: alsacard.c
|
||||||
Source4: alsaunmute.c
|
Source4: alsaunmute.c
|
||||||
|
Source10: alsa.rules
|
||||||
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
|
||||||
BuildRequires: gettext-devel
|
BuildRequires: gettext-devel
|
||||||
|
Conflicts: udev < 062
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains command line utilities for the Advanced Linux Sound
|
This package contains command line utilities for the Advanced Linux Sound
|
||||||
Architecture (ALSA).
|
Architecture (ALSA).
|
||||||
@ -44,8 +45,9 @@ make install DESTDIR=$RPM_BUILD_ROOT
|
|||||||
mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
|
mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
|
||||||
ln -s ../../sbin/alsactl $RPM_BUILD_ROOT/%{_sbindir}/alsactl
|
ln -s ../../sbin/alsactl $RPM_BUILD_ROOT/%{_sbindir}/alsactl
|
||||||
|
|
||||||
mkdir -p -m755 $RPM_BUILD_ROOT/etc/dev.d/sound
|
install -m 755 salsa $RPM_BUILD_ROOT/sbin
|
||||||
install -m 755 salsa $RPM_BUILD_ROOT/etc/dev.d/sound/alsa.dev
|
mkdir -p -m755 $RPM_BUILD_ROOT/etc/udev/rules.d/
|
||||||
|
install -m 755 %{SOURCE10} $RPM_BUILD_ROOT/etc/udev/rules.d
|
||||||
install -m 755 alsacard %{buildroot}%{_bindir}
|
install -m 755 alsacard %{buildroot}%{_bindir}
|
||||||
install -m 755 alsaunmute %{buildroot}%{_bindir}
|
install -m 755 alsaunmute %{buildroot}%{_bindir}
|
||||||
|
|
||||||
@ -55,8 +57,7 @@ install -m 755 alsaunmute %{buildroot}%{_bindir}
|
|||||||
%files -f alsaconf.lang
|
%files -f alsaconf.lang
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYING ChangeLog README TODO
|
%doc COPYING ChangeLog README TODO
|
||||||
%dir /etc/dev.d/sound
|
/etc/udev/rules.d/*
|
||||||
/etc/dev.d/sound/*
|
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{_sbindir}/*
|
%{_sbindir}/*
|
||||||
/sbin/*
|
/sbin/*
|
||||||
@ -66,7 +67,11 @@ install -m 755 alsaunmute %{buildroot}%{_bindir}
|
|||||||
/usr/share/alsa/speaker-test/*
|
/usr/share/alsa/speaker-test/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Jul 11 2005 Martin Stransky <stransky@redhat.com> 1.0.9-3
|
* Wed Jul 13 2005 Bill Nottingham <notting@redhat.com> 1.0.9-4
|
||||||
|
- migrate the alsa restore program to a udev rule, not a dev.d program
|
||||||
|
- conflict with appropriate udev
|
||||||
|
|
||||||
|
* Mon Jul 11 2005 Martin Stransky <stransky@redhat.com> 1.0.9-3
|
||||||
- New alsaunmute utility
|
- New alsaunmute utility
|
||||||
- Add autoconf to BuildRequires (#162483)
|
- Add autoconf to BuildRequires (#162483)
|
||||||
|
|
||||||
|
2
alsa.rules
Normal file
2
alsa.rules
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
SUBSYSTEM=="sound", KERNEL=="controlC*" RUN+="/sbin/salsa"
|
||||||
|
SUBSYSTEM=="sound", KERNEL=="pcm*" RUN+="/sbin/salsa"
|
Loading…
Reference in New Issue
Block a user