1 Summary: Advanced Linux Sound Architecture (ALSA) - Utils
2 Summary(es.UTF-8): Utilitarios para ALSA (Advanced Linux Sound Architecture)
3 Summary(pl.UTF-8): Advanced Linux Sound Architecture (ALSA) - Narzędzia
4 Summary(pt_BR.UTF-8): Utilitários para o ALSA (Advanced Linux Sound Architecture)
5 Summary(ru.UTF-8): Утилиты командной строки для ALSA project
6 Summary(uk.UTF-8): Утиліти командного рядка для ALSA project
10 # some apps GPL v2, some GPL v2+
12 Group: Applications/Sound
13 Source0: ftp://ftp.alsa-project.org/pub/utils/%{name}-%{version}.tar.bz2
14 # Source0-md5: 361552d5b1cacd0a1e7ba09e69990211
15 Source1: alsasound.init
16 # does anything use this (probably outdated) file? not alsasound.init
19 Patch0: %{name}-fast_sampling.patch
20 Patch1: %{name}-modprobe.patch
21 URL: http://www.alsa-project.org/
22 BuildRequires: alsa-lib-devel >= 1.0.26
23 BuildRequires: autoconf >= 2.59
24 BuildRequires: automake
25 BuildRequires: gettext-tools >= 0.15
26 BuildRequires: libsamplerate-devel >= 0.1.3
27 BuildRequires: libtool
28 BuildRequires: ncurses-devel
29 BuildRequires: ncurses-ext-devel
30 BuildRequires: pkgconfig
31 BuildRequires: rpmbuild(macros) >= 1.268
33 Requires: alsa-lib >= 1.0.26
37 Requires: systemd-units >= 0.38
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 This packages contains command line utilities for the ALSA project:
47 - alsactl - utility for store / restore of soundcard settings
48 - aplay/arecord - utility for playback / record of .wav, .voc, .au
50 - amixer - a command line mixer
51 - alsamixer - ncurses mixer
53 %description -l es.UTF-8
54 Utilitarios para el sistema ALSA, la arquitetura avanzada de sonido
57 %description -l pl.UTF-8
58 Pakiet zawiera następujące, działające z linii poleceń, narzędzia dla
59 projektu ALSA (Advanced Linux Sound Architecture):
60 - alsactl - narzędzie do zapamiętywania / przywracania ustawień karty
62 - aplay/arecord - narzędzia do odtwarzania / nagrywania plików .wav,
64 - amixer - mikser działający z linii poleceń
65 - alsamixer - mikser z interfejsem opartym o ncurses
67 %description -l pt_BR.UTF-8
68 Utilitários para o ALSA, a arquitetura de som avançada para o Linux.
70 %description -l ru.UTF-8
71 Этот пакет содержит утилиты командной строки для ALSA project:
72 - alsactl - утилита для сохранения/восстановления настроек звуковой
74 - aplay/arecord - утилита для записи/проигрывания файлов .wav, .voc,
76 - amixer - микшер, управляемый из командной строки
77 - alsamixer - микшер с интерфейсом ncurses
79 %description -l uk.UTF-8
80 Цей пакет містить утиліти командного рядка для ALSA project:
81 - alsactl - утиліта для збереження/відновлення настанов звукової карти
82 - aplay/arecord - утиліта для запису/програвання файлів .wav, .voc,
84 - amixer - мікшер, який керується з командного рядка
85 - alsamixer - мікшер з інтерфейсом ncurses
88 Summary: Init script for Advanced Linux Sound Architecture
89 Summary(pl.UTF-8): Skrypt init dla Advanced Linux Sound Architecture
90 Group: Applications/Sound
91 Requires(post,preun): /sbin/chkconfig
92 Requires: %{name} = %{version}-%{release}
94 Requires: systemd-units
98 Init script for Advanced Linux Sound Architecture.
100 %description init -l pl.UTF-8
101 Skrypt init dla Advanced Linux Sound Architecture.
114 CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
115 CXXFLAGS="%{rpmcxxflags} -fno-rtti -fno-exceptions"
116 # we need alsactl for udev as early as possible
119 --with-systemdsystemunitdir=%{systemdunitdir}
124 rm -rf $RPM_BUILD_ROOT
127 DESTDIR=$RPM_BUILD_ROOT
129 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/alsasound
130 install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/alsa-oss-pcm
131 install -D %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/alsa/alsactl.conf
133 install -d $RPM_BUILD_ROOT/lib/alsa
134 mv $RPM_BUILD_ROOT%{_datadir}/alsa/init $RPM_BUILD_ROOT/lib/alsa
136 ln -s /lib/alsa/init $RPM_BUILD_ROOT%{_datadir}/alsa/init
137 install -d $RPM_BUILD_ROOT%{_sbindir}
138 ln -s /sbin/alsactl $RPM_BUILD_ROOT%{_sbindir}/alsactl
140 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1
141 echo ".so aplay.1" > $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1
143 %find_lang alsa-utils --all-name
146 rm -rf $RPM_BUILD_ROOT
149 # this needs to be a dir
150 if [ -d %{_datadir}/alsa/init -a ! -h %{_datadir}/alsa/init ]; then
151 mv -b %{_datadir}/alsa/init{,.dir}
152 %banner -e %{name} <<EOF
153 Check %{_datadir}/alsa/init.dir for your own files and remove it when done.
158 /sbin/chkconfig --add alsasound
159 %service alsasound restart "ALSA %{version} services"
162 if [ "$1" = "0" ]; then
163 %service alsasound stop
164 /sbin/chkconfig --del alsasound
167 %triggerpostun -- %{name} < 1.0.24.2-2
168 install -d /var/lib/alsa
169 if [ -f /etc/asound.state ]; then
170 mv -f /etc/asound.state /var/lib/alsa/asound.state
173 %files -f alsa-utils.lang
174 %defattr(644,root,root,755)
175 %doc ChangeLog README TODO
176 %attr(755,root,root) /sbin/alsaconf
177 %attr(755,root,root) /sbin/alsactl
178 %attr(755,root,root) %{_bindir}/aconnect
179 %attr(755,root,root) %{_bindir}/alsaloop
180 %attr(755,root,root) %{_bindir}/alsamixer
181 %attr(755,root,root) %{_bindir}/alsaucm
182 %attr(755,root,root) %{_bindir}/amidi
183 %attr(755,root,root) %{_bindir}/amixer
184 %attr(755,root,root) %{_bindir}/aplay
185 %attr(755,root,root) %{_bindir}/aplaymidi
186 %attr(755,root,root) %{_bindir}/arecord
187 %attr(755,root,root) %{_bindir}/arecordmidi
188 %attr(755,root,root) %{_bindir}/aseqdump
189 %attr(755,root,root) %{_bindir}/aseqnet
190 %attr(755,root,root) %{_bindir}/iecset
191 %attr(755,root,root) %{_bindir}/speaker-test
193 %attr(755,root,root) %{_sbindir}/alsactl
194 %{_sysconfdir}/alsa/alsactl.conf
195 /lib/udev/rules.d/90-alsa-restore.rules
196 %{systemdunitdir}/alsa-restore.service
197 %{systemdunitdir}/alsa-store.service
198 %{systemdunitdir}/basic.target.wants/alsa-restore.service
199 %{systemdunitdir}/shutdown.target.wants/alsa-store.service
203 %{_datadir}/alsa/init
204 %{_datadir}/alsa/speaker-test
205 %{_datadir}/sounds/alsa
206 %{_mandir}/man1/aconnect.1*
207 %{_mandir}/man1/alsactl.1*
208 %{_mandir}/man1/alsaloop.1*
209 %{_mandir}/man1/alsamixer.1*
210 %{_mandir}/man1/amidi.1*
211 %{_mandir}/man1/amixer.1*
212 %{_mandir}/man1/aplay.1*
213 %{_mandir}/man1/aplaymidi.1*
214 %{_mandir}/man1/arecord.1*
215 %{_mandir}/man1/arecordmidi.1*
216 %{_mandir}/man1/aseqnet.1*
217 %{_mandir}/man1/aseqdump.1*
218 %{_mandir}/man1/iecset.1*
219 %{_mandir}/man1/speaker-test.1*
220 %{_mandir}/man7/alsactl_init.7*
221 %{_mandir}/man8/alsaconf.8*
222 %lang(fr) %{_mandir}/fr/man8/alsaconf.8*
225 %defattr(644,root,root,755)
226 %attr(754,root,root) /etc/rc.d/init.d/alsasound
227 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/alsa-oss-pcm
228 %{systemdunitdir}/alsa-state.service
229 %{systemdunitdir}/basic.target.wants/alsa-state.service