Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00663ff678 |
5 changed files with 78 additions and 46 deletions
|
|
@ -4,14 +4,13 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Restore Sound Card State
|
Description=Save/Restore Sound Card State
|
||||||
ConditionPathExists=!/etc/alsa/state-daemon.conf
|
ConditionPathExists=!/etc/alsa/state-daemon.conf
|
||||||
DefaultDependencies=no
|
|
||||||
After=alsa-state.service
|
After=alsa-state.service
|
||||||
Before=shutdown.target
|
|
||||||
Conflicts=shutdown.target
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
RemainAfterExit=true
|
||||||
ExecStart=-/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/lib/alsa/init/00main restore
|
ExecStart=-/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/lib/alsa/init/00main restore
|
||||||
|
ExecStop=/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf store
|
||||||
StandardOutput=syslog
|
StandardOutput=syslog
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,7 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Manage Sound Card State (restore and store)
|
Description=Manage Sound Card State (restore and store)
|
||||||
ConditionPathExists=/etc/alsa/state-daemon.conf
|
ConditionPathExists=/etc/alsa/state-daemon.conf
|
||||||
DefaultDependencies=no
|
|
||||||
After=sysinit.target
|
After=sysinit.target
|
||||||
Before=shutdown.target
|
|
||||||
Conflicts=shutdown.target
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
#
|
|
||||||
# Note that two different ALSA card state management schemes exist and they
|
|
||||||
# can be switched using a file exist check - /etc/alsa/state-daemon.conf .
|
|
||||||
#
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=Store Sound Card State
|
|
||||||
ConditionPathExists=!/etc/alsa/state-daemon.conf
|
|
||||||
DefaultDependencies=no
|
|
||||||
Before=shutdown.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf store
|
|
||||||
StandardOutput=syslog
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
%define baseversion 1.0.29
|
%define baseversion 1.1.1
|
||||||
#define fixversion .2
|
#define fixversion .2
|
||||||
%global _hardened_build 1
|
%global _hardened_build 1
|
||||||
|
|
||||||
Summary: Advanced Linux Sound Architecture (ALSA) utilities
|
Summary: Advanced Linux Sound Architecture (ALSA) utilities
|
||||||
Name: alsa-utils
|
Name: alsa-utils
|
||||||
Version: %{baseversion}%{?fixversion}
|
Version: %{baseversion}%{?fixversion}
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/Multimedia
|
Group: Applications/Multimedia
|
||||||
URL: http://www.alsa-project.org/
|
URL: http://www.alsa-project.org/
|
||||||
|
|
@ -15,7 +15,6 @@ Source5: alsaunmute.1
|
||||||
Source10: alsa.rules
|
Source10: alsa.rules
|
||||||
Source11: alsactl.conf
|
Source11: alsactl.conf
|
||||||
Source20: alsa-restore.service
|
Source20: alsa-restore.service
|
||||||
Source21: alsa-store.service
|
|
||||||
Source22: alsa-state.service
|
Source22: alsa-state.service
|
||||||
|
|
||||||
BuildRequires: alsa-lib-devel >= %{baseversion}
|
BuildRequires: alsa-lib-devel >= %{baseversion}
|
||||||
|
|
@ -34,6 +33,15 @@ Requires: alsa-lib%{?_isa} >= %{baseversion}
|
||||||
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).
|
||||||
|
|
||||||
|
%package alsabat
|
||||||
|
Summary: Advanced Linux Sound Architecture (ALSA) - Basic Audio Tester
|
||||||
|
Group: Applications/Multimedia
|
||||||
|
BuildRequires: fftw-devel
|
||||||
|
|
||||||
|
%description alsabat
|
||||||
|
This package contains tool for basic audio testing using Advanced Linux Sound
|
||||||
|
Architecture (ALSA) framework and Fast Fourier Transform library.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q -n %{name}-%{version}
|
||||||
|
|
||||||
|
|
@ -45,21 +53,20 @@ make %{?_smp_mflags}
|
||||||
cp %{SOURCE4} .
|
cp %{SOURCE4} .
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=%{buildroot}
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
# Install ALSA udev rules
|
# Install ALSA udev rules
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_prefix}/lib/udev/rules.d
|
mkdir -p %{buildroot}/%{_prefix}/lib/udev/rules.d
|
||||||
install -p -m 644 %{SOURCE10} $RPM_BUILD_ROOT/%{_prefix}/lib/udev/rules.d/90-alsa-restore.rules
|
install -p -m 644 %{SOURCE10} %{buildroot}/%{_prefix}/lib/udev/rules.d/90-alsa-restore.rules
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_unitdir}
|
mkdir -p %{buildroot}/%{_unitdir}
|
||||||
install -p -m 644 %{SOURCE20} $RPM_BUILD_ROOT/%{_unitdir}/alsa-restore.service
|
install -p -m 644 %{SOURCE20} %{buildroot}/%{_unitdir}/alsa-restore.service
|
||||||
install -p -m 644 %{SOURCE21} $RPM_BUILD_ROOT/%{_unitdir}/alsa-store.service
|
install -p -m 644 %{SOURCE22} %{buildroot}/%{_unitdir}/alsa-state.service
|
||||||
install -p -m 644 %{SOURCE22} $RPM_BUILD_ROOT/%{_unitdir}/alsa-state.service
|
|
||||||
|
|
||||||
# Install support utilities
|
# Install support utilities
|
||||||
mkdir -p -m755 $RPM_BUILD_ROOT/%{_bindir}
|
mkdir -p -m755 %{buildroot}/%{_bindir}
|
||||||
install -p -m 755 alsaunmute %{buildroot}/%{_bindir}
|
install -p -m 755 alsaunmute %{buildroot}/%{_bindir}
|
||||||
mkdir -p -m755 $RPM_BUILD_ROOT/%{_mandir}/man1
|
mkdir -p -m755 %{buildroot}/%{_mandir}/man1
|
||||||
install -p -m 644 %{SOURCE5} %{buildroot}/%{_mandir}/man1/alsaunmute.1
|
install -p -m 644 %{SOURCE5} %{buildroot}/%{_mandir}/man1/alsaunmute.1
|
||||||
|
|
||||||
# Move /usr/share/alsa/init to /usr/lib/alsa/init
|
# Move /usr/share/alsa/init to /usr/lib/alsa/init
|
||||||
|
|
@ -82,23 +89,58 @@ mkdir -p -m 755 %{buildroot}/var/lib/alsa
|
||||||
%{_prefix}/lib/udev/rules.d/*
|
%{_prefix}/lib/udev/rules.d/*
|
||||||
%{_unitdir}/*
|
%{_unitdir}/*
|
||||||
%{_unitdir}/basic.target.wants/*
|
%{_unitdir}/basic.target.wants/*
|
||||||
%{_unitdir}/shutdown.target.wants/*
|
|
||||||
%{_prefix}/lib/alsa/init/*
|
%{_prefix}/lib/alsa/init/*
|
||||||
%{_bindir}/*
|
%{_bindir}/aconnect
|
||||||
|
%{_bindir}/alsaloop
|
||||||
|
%{_bindir}/alsamixer
|
||||||
|
%{_bindir}/alsaucm
|
||||||
|
%{_bindir}/alsaunmute
|
||||||
|
%{_bindir}/amidi
|
||||||
|
%{_bindir}/amixer
|
||||||
|
%{_bindir}/aplay
|
||||||
|
%{_bindir}/aplaymidi
|
||||||
|
%{_bindir}/arecord
|
||||||
|
%{_bindir}/arecordmidi
|
||||||
|
%{_bindir}/aseqdump
|
||||||
|
%{_bindir}/aseqnet
|
||||||
|
%{_bindir}/iecset
|
||||||
|
%{_bindir}/speaker-test
|
||||||
|
%{_bindir}/alsatplg
|
||||||
%{_sbindir}/*
|
%{_sbindir}/*
|
||||||
%{_datadir}/alsa/
|
%{_datadir}/alsa/
|
||||||
%{_datadir}/sounds/*
|
%{_datadir}/sounds/*
|
||||||
%{_mandir}/man?/*
|
%{_mandir}/man7/*
|
||||||
|
%{_mandir}/man1/alsactl.1.gz
|
||||||
|
%{_mandir}/man1/alsaloop.1.gz
|
||||||
|
%{_mandir}/man1/alsamixer.1.gz
|
||||||
|
%{_mandir}/man1/alsaunmute.1.gz
|
||||||
|
%{_mandir}/man1/amidi.1.gz
|
||||||
|
%{_mandir}/man1/amixer.1.gz
|
||||||
|
%{_mandir}/man1/aplay.1.gz
|
||||||
|
%{_mandir}/man1/aplaymidi.1.gz
|
||||||
|
%{_mandir}/man1/arecord.1.gz
|
||||||
|
%{_mandir}/man1/arecordmidi.1.gz
|
||||||
|
%{_mandir}/man1/aseqdump.1.gz
|
||||||
|
%{_mandir}/man1/aseqnet.1.gz
|
||||||
|
%{_mandir}/man1/iecset.1.gz
|
||||||
|
%{_mandir}/man1/speaker-test.1.gz
|
||||||
|
%{_mandir}/man1/aconnect.1.gz
|
||||||
|
%{_mandir}/man1/alsa-info.sh.1.gz
|
||||||
|
|
||||||
%dir /etc/alsa/
|
%dir /etc/alsa/
|
||||||
%dir %{_prefix}/lib/alsa/
|
%dir %{_prefix}/lib/alsa/
|
||||||
%dir %{_prefix}/lib/alsa/init/
|
%dir %{_prefix}/lib/alsa/init/
|
||||||
%dir /var/lib/alsa/
|
%dir /var/lib/alsa/
|
||||||
|
|
||||||
|
%files alsabat
|
||||||
|
%{_bindir}/alsabat
|
||||||
|
%{_mandir}/man1/alsabat.1.gz
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
if [ ! -r /lib/systemd/system/alsa-state.service ]; then
|
if [ ! -r %{_unitdir}/alsa-state.service ]; then
|
||||||
[ -d /etc/alsa ] || mkdir -m 0755 /etc/alsa
|
[ -d /etc/alsa ] || mkdir -m 0755 /etc/alsa
|
||||||
echo "# Remove this file to disable the alsactl daemon mode" > \
|
echo "# Remove this file to disable the alsactl daemon mode" > \
|
||||||
/etc/alsa/state-daemon.conf
|
/etc/alsa/state-daemon.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
|
@ -117,11 +159,20 @@ fi
|
||||||
%systemd_postun_with_restart alsa-state.service
|
%systemd_postun_with_restart alsa-state.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 31 2016 Jaroslav Kysela <perex@perex.cz> - 1.1.1-1
|
||||||
|
- Updated to 1.1.1
|
||||||
|
- Renamed bat to alsabat (according 1.1.1)
|
||||||
|
|
||||||
|
* Tue Oct 27 2015 Jaroslav Kysela <perex@perex.cz> - 1.1.0-1
|
||||||
|
- Updated to 1.1.0
|
||||||
|
- update systemd unit configuration files
|
||||||
|
- create alsa-utils-bat package
|
||||||
|
|
||||||
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.29-2
|
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.29-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||||
|
|
||||||
* Thu Feb 26 2015 Jaroslav Kysela <perex@perex.cz> - 1.0.29-1
|
* Thu Feb 26 2015 Jaroslav Kysela <perex@perex.cz> - 1.0.29-1
|
||||||
* Updated to 1.0.29
|
- Updated to 1.0.29
|
||||||
|
|
||||||
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.28-2
|
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.28-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||||
|
|
@ -256,7 +307,7 @@ fi
|
||||||
- updated alsa-info.sh to 0.4.54
|
- updated alsa-info.sh to 0.4.54
|
||||||
|
|
||||||
* Wed Feb 04 2009 Jaroslav Kysela <jkysela@redhat.com> 1.0.19-2
|
* Wed Feb 04 2009 Jaroslav Kysela <jkysela@redhat.com> 1.0.19-2
|
||||||
- add %dir directive for /lib/alsa and /lib/alsa/init directories (bz#483324)
|
- add dir directive for /lib/alsa and /lib/alsa/init directories (bz#483324)
|
||||||
|
|
||||||
* Tue Jan 20 2009 Jaroslav Kysela <jkysela@redhat.com> 1.0.19-1
|
* Tue Jan 20 2009 Jaroslav Kysela <jkysela@redhat.com> 1.0.19-1
|
||||||
- updated to 1.0.19 final
|
- updated to 1.0.19 final
|
||||||
|
|
@ -273,7 +324,7 @@ fi
|
||||||
|
|
||||||
* Thu Sep 18 2008 Jaroslav Kysela <jkysela@redhat.com> 1.0.18-2.rc3
|
* Thu Sep 18 2008 Jaroslav Kysela <jkysela@redhat.com> 1.0.18-2.rc3
|
||||||
- fixed /lib/alsa/init path for x86_64 (was /lib64/alsa/init)
|
- fixed /lib/alsa/init path for x86_64 (was /lib64/alsa/init)
|
||||||
- added /etc/alsa/asound.state -> /etc/asound.state shift to %post section
|
- added /etc/alsa/asound.state -> /etc/asound.state shift to post section
|
||||||
- fix udev rules (ommited /dev/ prefix for the alsactl utility)
|
- fix udev rules (ommited /dev/ prefix for the alsactl utility)
|
||||||
- added --ignore option for alsactl (added also to upstream)
|
- added --ignore option for alsactl (added also to upstream)
|
||||||
|
|
||||||
|
|
@ -343,7 +394,7 @@ fi
|
||||||
- added more funcionality to salsa (save/load sound settings),
|
- added more funcionality to salsa (save/load sound settings),
|
||||||
moved volume settings to /etc/alsa/
|
moved volume settings to /etc/alsa/
|
||||||
|
|
||||||
* Thu Apr 10 2007 Martin Stransky <stransky@redhat.com> 1.0.14-0.4.rc2
|
* Tue Apr 10 2007 Martin Stransky <stransky@redhat.com> 1.0.14-0.4.rc2
|
||||||
- added support for large files
|
- added support for large files
|
||||||
- minor fix in alsaunmute
|
- minor fix in alsaunmute
|
||||||
- fixed #209239 - alsaconf: Stale language-dependent files
|
- fixed #209239 - alsaconf: Stale language-dependent files
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
6b289bf874c4c9a63f4b3973093dd404 alsa-utils-1.0.29.tar.bz2
|
f8d00ad5fba757b4c3735d066cc288e2 alsa-utils-1.1.1.tar.bz2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue