1 # TODO: --with-systemdsystemunitdir
2 Summary: Advanced Linux Sound Architecture (ALSA) - Utils
3 Summary(es.UTF-8): Utilitarios para ALSA (Advanced Linux Sound Architecture)
4 Summary(pl.UTF-8): Advanced Linux Sound Architecture (ALSA) - Narzędzia
5 Summary(pt_BR.UTF-8): Utilitários para o ALSA (Advanced Linux Sound Architecture)
6 Summary(ru.UTF-8): Утилиты командной строки для ALSA project
7 Summary(uk.UTF-8): Утиліти командного рядка для ALSA project
11 # some apps GPL v2, some GPL v2+
13 Group: Applications/Sound
14 Source0: ftp://ftp.alsa-project.org/pub/utils/%{name}-%{version}.tar.bz2
15 # Source0-md5: f81f9dcb9a014fd32cb3a70066a5b9a9
16 Source1: alsasound.init
17 # does anything use this (probably outdated) file? not alsasound.init
20 Patch0: %{name}-fast_sampling.patch
21 Patch1: %{name}-modprobe.patch
22 URL: http://www.alsa-project.org/
23 BuildRequires: alsa-lib-devel >= 1.0.25
24 BuildRequires: autoconf >= 2.59
25 BuildRequires: automake
26 BuildRequires: gettext-devel >= 0.15
27 BuildRequires: libsamplerate-devel >= 0.1.3
28 BuildRequires: libtool
29 BuildRequires: ncurses-devel
30 BuildRequires: ncurses-ext-devel
31 BuildRequires: pkgconfig
32 BuildRequires: rpmbuild(macros) >= 1.268
34 Requires: alsa-lib >= 1.0.25
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 This packages contains command line utilities for the ALSA project:
46 - alsactl - utility for store / restore of soundcard settings
47 - aplay/arecord - utility for playback / record of .wav, .voc, .au
49 - amixer - a command line mixer
50 - alsamixer - ncurses mixer
52 %description -l es.UTF-8
53 Utilitarios para el sistema ALSA, la arquitetura avanzada de sonido
56 %description -l pl.UTF-8
57 Pakiet zawiera następujące, działające z linii poleceń, narzędzia dla
58 projektu ALSA (Advanced Linux Sound Architecture):
59 - alsactl - narzędzie do zapamiętywania / przywracania ustawień karty
61 - aplay/arecord - narzędzia do odtwarzania / nagrywania plików .wav,
63 - amixer - mikser działający z linii poleceń
64 - alsamixer - mikser z interfejsem opartym o ncurses
66 %description -l pt_BR.UTF-8
67 Utilitários para o ALSA, a arquitetura de som avançada para o Linux.
69 %description -l ru.UTF-8
70 Этот пакет содержит утилиты командной строки для ALSA project:
71 - alsactl - утилита для сохранения/восстановления настроек звуковой
73 - aplay/arecord - утилита для записи/проигрывания файлов .wav, .voc,
75 - amixer - микшер, управляемый из командной строки
76 - alsamixer - микшер с интерфейсом ncurses
78 %description -l uk.UTF-8
79 Цей пакет містить утиліти командного рядка для ALSA project:
80 - alsactl - утиліта для збереження/відновлення настанов звукової карти
81 - aplay/arecord - утиліта для запису/програвання файлів .wav, .voc,
83 - amixer - мікшер, який керується з командного рядка
84 - alsamixer - мікшер з інтерфейсом ncurses
87 Summary: udev rules for Advanced Linux Sound Architecture
88 Summary(pl.UTF-8): Reguły udeva dla Advanced Linux Sound Architecture
89 Group: Applications/Sound
90 Requires: %{name} = %{version}-%{release}
93 %description -n udev-alsa
94 udev rules for Advanced Linux Sound Architecture.
96 %description -n udev-alsa -l pl.UTF-8
97 Reguły udeva dla Advanced Linux Sound Architecture.
100 Summary: Init script for Advanced Linux Sound Architecture
101 Summary(pl.UTF-8): Skrypt init dla Advanced Linux Sound Architecture
102 Group: Applications/Sound
103 Requires(post,preun): /sbin/chkconfig
104 Requires: %{name} = %{version}-%{release}
109 Init script for Advanced Linux Sound Architecture.
111 %description init -l pl.UTF-8
112 Skrypt init dla Advanced Linux Sound Architecture.
125 CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
126 CXXFLAGS="%{rpmcxxflags} -fno-rtti -fno-exceptions"
127 # we need alsactl for udev as early as possible
133 rm -rf $RPM_BUILD_ROOT
136 DESTDIR=$RPM_BUILD_ROOT
138 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/alsasound
139 install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/alsa-oss-pcm
140 install -D %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/alsa/alsactl.conf
142 install -d $RPM_BUILD_ROOT/lib/alsa
143 mv $RPM_BUILD_ROOT%{_datadir}/alsa/init $RPM_BUILD_ROOT/lib/alsa
145 ln -s /lib/alsa/init $RPM_BUILD_ROOT%{_datadir}/alsa/init
146 install -d $RPM_BUILD_ROOT%{_sbindir}
147 ln -s /sbin/alsactl $RPM_BUILD_ROOT%{_sbindir}/alsactl
149 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1
150 echo ".so aplay.1" > $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1
152 %find_lang alsa-utils --all-name
155 rm -rf $RPM_BUILD_ROOT
158 # this needs to be a dir
159 if [ -d %{_datadir}/alsa/init ]; then
160 mv -b %{_datadir}/alsa/init{,.dir}
161 %banner -e %{name} <<EOF
162 Check %{_datadir}/alsa/init.dir for your own files and remove it when done.
167 /sbin/chkconfig --add alsasound
168 %service alsasound restart "ALSA %{version} services"
171 if [ "$1" = "0" ]; then
172 %service alsasound stop
173 /sbin/chkconfig --del alsasound
176 %triggerpostun -- %{name} < 1.0.24.2-2
177 install -d /var/lib/alsa
178 if [ -f /etc/asound.state ]; then
179 mv -f /etc/asound.state /var/lib/alsa/asound.state
182 %files -f alsa-utils.lang
183 %defattr(644,root,root,755)
184 %doc ChangeLog README TODO
185 %attr(755,root,root) /sbin/alsaconf
186 %attr(755,root,root) /sbin/alsactl
187 %attr(755,root,root) %{_bindir}/aconnect
188 %attr(755,root,root) %{_bindir}/alsaloop
189 %attr(755,root,root) %{_bindir}/alsamixer
190 %attr(755,root,root) %{_bindir}/alsaucm
191 %attr(755,root,root) %{_bindir}/amidi
192 %attr(755,root,root) %{_bindir}/amixer
193 %attr(755,root,root) %{_bindir}/aplay
194 %attr(755,root,root) %{_bindir}/aplaymidi
195 %attr(755,root,root) %{_bindir}/arecord
196 %attr(755,root,root) %{_bindir}/arecordmidi
197 %attr(755,root,root) %{_bindir}/aseqdump
198 %attr(755,root,root) %{_bindir}/aseqnet
199 %attr(755,root,root) %{_bindir}/iecset
200 %attr(755,root,root) %{_bindir}/speaker-test
202 %attr(755,root,root) %{_sbindir}/alsactl
203 %{_sysconfdir}/alsa/alsactl.conf
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 /lib/udev/rules.d/90-alsa-restore.rules
233 %defattr(644,root,root,755)
234 %attr(754,root,root) /etc/rc.d/init.d/alsasound
235 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/alsa-oss-pcm