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: cbfb21a24f63fb052b3392195639ce48
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 Patch2: %{name}-build.patch
22 Patch3: alsactl-fix.patch
23 URL: http://www.alsa-project.org/
24 BuildRequires: alsa-lib-devel >= 1.0.26
25 BuildRequires: autoconf >= 2.59
26 BuildRequires: automake
27 BuildRequires: gettext-devel >= 0.15
28 BuildRequires: libsamplerate-devel >= 0.1.3
29 BuildRequires: libtool
30 BuildRequires: ncurses-devel
31 BuildRequires: ncurses-ext-devel
32 BuildRequires: pkgconfig
33 BuildRequires: rpmbuild(macros) >= 1.268
35 Requires: alsa-lib >= 1.0.26
39 Requires: systemd-units >= 0.38
45 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48 This packages contains command line utilities for the ALSA project:
49 - alsactl - utility for store / restore of soundcard settings
50 - aplay/arecord - utility for playback / record of .wav, .voc, .au
52 - amixer - a command line mixer
53 - alsamixer - ncurses mixer
55 %description -l es.UTF-8
56 Utilitarios para el sistema ALSA, la arquitetura avanzada de sonido
59 %description -l pl.UTF-8
60 Pakiet zawiera następujące, działające z linii poleceń, narzędzia dla
61 projektu ALSA (Advanced Linux Sound Architecture):
62 - alsactl - narzędzie do zapamiętywania / przywracania ustawień karty
64 - aplay/arecord - narzędzia do odtwarzania / nagrywania plików .wav,
66 - amixer - mikser działający z linii poleceń
67 - alsamixer - mikser z interfejsem opartym o ncurses
69 %description -l pt_BR.UTF-8
70 Utilitários para o ALSA, a arquitetura de som avançada para o Linux.
72 %description -l ru.UTF-8
73 Этот пакет содержит утилиты командной строки для ALSA project:
74 - alsactl - утилита для сохранения/восстановления настроек звуковой
76 - aplay/arecord - утилита для записи/проигрывания файлов .wav, .voc,
78 - amixer - микшер, управляемый из командной строки
79 - alsamixer - микшер с интерфейсом ncurses
81 %description -l uk.UTF-8
82 Цей пакет містить утиліти командного рядка для ALSA project:
83 - alsactl - утиліта для збереження/відновлення настанов звукової карти
84 - aplay/arecord - утиліта для запису/програвання файлів .wav, .voc,
86 - amixer - мікшер, який керується з командного рядка
87 - alsamixer - мікшер з інтерфейсом ncurses
90 Summary: Init script for Advanced Linux Sound Architecture
91 Summary(pl.UTF-8): Skrypt init dla Advanced Linux Sound Architecture
92 Group: Applications/Sound
93 Requires(post,preun): /sbin/chkconfig
94 Requires: %{name} = %{version}-%{release}
96 Requires: systemd-units
100 Init script for Advanced Linux Sound Architecture.
102 %description init -l pl.UTF-8
103 Skrypt init dla Advanced Linux Sound Architecture.
118 CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
119 CXXFLAGS="%{rpmcxxflags} -fno-rtti -fno-exceptions"
120 # we need alsactl for udev as early as possible
123 --with-systemdsystemunitdir=%{systemdunitdir}
128 rm -rf $RPM_BUILD_ROOT
131 DESTDIR=$RPM_BUILD_ROOT
133 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/alsasound
134 install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/alsa-oss-pcm
135 install -D %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/alsa/alsactl.conf
137 install -d $RPM_BUILD_ROOT/lib/alsa
138 mv $RPM_BUILD_ROOT%{_datadir}/alsa/init $RPM_BUILD_ROOT/lib/alsa
140 ln -s /lib/alsa/init $RPM_BUILD_ROOT%{_datadir}/alsa/init
141 install -d $RPM_BUILD_ROOT%{_sbindir}
142 ln -s /sbin/alsactl $RPM_BUILD_ROOT%{_sbindir}/alsactl
144 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1
145 echo ".so aplay.1" > $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1
147 %find_lang alsa-utils --all-name
150 rm -rf $RPM_BUILD_ROOT
153 # this needs to be a dir
154 if [ -d %{_datadir}/alsa/init -a ! -h %{_datadir}/alsa/init ]; then
155 mv -b %{_datadir}/alsa/init{,.dir}
156 %banner -e %{name} <<EOF
157 Check %{_datadir}/alsa/init.dir for your own files and remove it when done.
162 /sbin/chkconfig --add alsasound
163 %service alsasound restart "ALSA %{version} services"
166 if [ "$1" = "0" ]; then
167 %service alsasound stop
168 /sbin/chkconfig --del alsasound
171 %triggerpostun -- %{name} < 1.0.24.2-2
172 install -d /var/lib/alsa
173 if [ -f /etc/asound.state ]; then
174 mv -f /etc/asound.state /var/lib/alsa/asound.state
177 %files -f alsa-utils.lang
178 %defattr(644,root,root,755)
179 %doc ChangeLog README TODO
180 %attr(755,root,root) /sbin/alsaconf
181 %attr(755,root,root) /sbin/alsactl
182 %attr(755,root,root) %{_bindir}/aconnect
183 %attr(755,root,root) %{_bindir}/alsaloop
184 %attr(755,root,root) %{_bindir}/alsamixer
185 %attr(755,root,root) %{_bindir}/alsaucm
186 %attr(755,root,root) %{_bindir}/amidi
187 %attr(755,root,root) %{_bindir}/amixer
188 %attr(755,root,root) %{_bindir}/aplay
189 %attr(755,root,root) %{_bindir}/aplaymidi
190 %attr(755,root,root) %{_bindir}/arecord
191 %attr(755,root,root) %{_bindir}/arecordmidi
192 %attr(755,root,root) %{_bindir}/aseqdump
193 %attr(755,root,root) %{_bindir}/aseqnet
194 %attr(755,root,root) %{_bindir}/iecset
195 %attr(755,root,root) %{_bindir}/speaker-test
197 %attr(755,root,root) %{_sbindir}/alsactl
198 %{_sysconfdir}/alsa/alsactl.conf
199 %{systemdunitdir}/alsa-restore.service
200 %{systemdunitdir}/alsa-store.service
201 %{systemdunitdir}/basic.target.wants/alsa-restore.service
202 %{systemdunitdir}/shutdown.target.wants/alsa-store.service
203 /lib/udev/rules.d/90-alsa-restore.rules
207 %{_datadir}/alsa/init
208 %{_datadir}/alsa/speaker-test
209 %{_datadir}/sounds/alsa
210 %{_mandir}/man1/aconnect.1*
211 %{_mandir}/man1/alsactl.1*
212 %{_mandir}/man1/alsaloop.1*
213 %{_mandir}/man1/alsamixer.1*
214 %{_mandir}/man1/amidi.1*
215 %{_mandir}/man1/amixer.1*
216 %{_mandir}/man1/aplay.1*
217 %{_mandir}/man1/aplaymidi.1*
218 %{_mandir}/man1/arecord.1*
219 %{_mandir}/man1/arecordmidi.1*
220 %{_mandir}/man1/aseqnet.1*
221 %{_mandir}/man1/aseqdump.1*
222 %{_mandir}/man1/iecset.1*
223 %{_mandir}/man1/speaker-test.1*
224 %{_mandir}/man7/alsactl_init.7*
225 %{_mandir}/man8/alsaconf.8*
226 %lang(fr) %{_mandir}/fr/man8/alsaconf.8*
229 %defattr(644,root,root,755)
230 %attr(754,root,root) /etc/rc.d/init.d/alsasound
231 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/alsa-oss-pcm
232 %{systemdunitdir}/alsa-state.service
233 %{systemdunitdir}/basic.target.wants/alsa-state.service