]>
Commit | Line | Data |
---|---|---|
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 | |
7 | Name: alsa-utils | |
8 | Version: 1.1.5 | |
9 | Release: 1 | |
10 | # some apps GPL v2, some GPL v2+ | |
11 | License: GPL v2 | |
12 | Group: Applications/Sound | |
13 | Source0: ftp://ftp.alsa-project.org/pub/utils/%{name}-%{version}.tar.bz2 | |
14 | # Source0-md5: dfe6ea147a5e07a056919591c2f5dac3 | |
15 | Source1: alsasound.init | |
16 | # does anything use this (probably outdated) file? not alsasound.init | |
17 | Source2: alsa-oss-pcm | |
18 | Source3: alsactl.conf | |
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.27 | |
23 | BuildRequires: autoconf >= 2.59 | |
24 | BuildRequires: automake | |
25 | # rst2man | |
26 | BuildRequires: docutils | |
27 | BuildRequires: fftw3-devel >= 3 | |
28 | BuildRequires: gettext-tools >= 0.15 | |
29 | BuildRequires: libsamplerate-devel >= 0.1.3 | |
30 | BuildRequires: libtool | |
31 | BuildRequires: ncurses-devel >= 5 | |
32 | BuildRequires: ncurses-ext-devel >= 5 | |
33 | BuildRequires: pkgconfig | |
34 | BuildRequires: rpmbuild(macros) >= 1.268 | |
35 | BuildRequires: systemd-units >= 18 | |
36 | BuildRequires: xmlto | |
37 | Requires: alsa-lib >= 1.0.27 | |
38 | Requires: awk | |
39 | Requires: dialog | |
40 | Requires: diffutils | |
41 | Requires: systemd-units >= 18 | |
42 | Requires: which | |
43 | Suggests: gpm | |
44 | Obsoletes: alsa-udev | |
45 | Obsoletes: alsaconf | |
46 | Obsoletes: udev-alsa | |
47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
48 | ||
49 | %description | |
50 | This packages contains command line utilities for the ALSA project: | |
51 | - alsactl - utility for store / restore of soundcard settings | |
52 | - aplay/arecord - utility for playback / record of .wav, .voc, .au | |
53 | files | |
54 | - amixer - a command line mixer | |
55 | - alsamixer - ncurses mixer | |
56 | ||
57 | %description -l es.UTF-8 | |
58 | Utilitarios para el sistema ALSA, la arquitetura avanzada de sonido | |
59 | para Linux. | |
60 | ||
61 | %description -l pl.UTF-8 | |
62 | Pakiet zawiera następujące, działające z linii poleceń, narzędzia dla | |
63 | projektu ALSA (Advanced Linux Sound Architecture): | |
64 | - alsactl - narzędzie do zapamiętywania / przywracania ustawień karty | |
65 | dźwiękowej | |
66 | - aplay/arecord - narzędzia do odtwarzania / nagrywania plików .wav, | |
67 | .voc, .au | |
68 | - amixer - mikser działający z linii poleceń | |
69 | - alsamixer - mikser z interfejsem opartym o ncurses | |
70 | ||
71 | %description -l pt_BR.UTF-8 | |
72 | Utilitários para o ALSA, a arquitetura de som avançada para o Linux. | |
73 | ||
74 | %description -l ru.UTF-8 | |
75 | Этот пакет содержит утилиты командной строки для ALSA project: | |
76 | - alsactl - утилита для сохранения/восстановления настроек звуковой | |
77 | карты | |
78 | - aplay/arecord - утилита для записи/проигрывания файлов .wav, .voc, | |
79 | .au | |
80 | - amixer - микшер, управляемый из командной строки | |
81 | - alsamixer - микшер с интерфейсом ncurses | |
82 | ||
83 | %description -l uk.UTF-8 | |
84 | Цей пакет містить утиліти командного рядка для ALSA project: | |
85 | - alsactl - утиліта для збереження/відновлення настанов звукової карти | |
86 | - aplay/arecord - утиліта для запису/програвання файлів .wav, .voc, | |
87 | .au | |
88 | - amixer - мікшер, який керується з командного рядка | |
89 | - alsamixer - мікшер з інтерфейсом ncurses | |
90 | ||
91 | %package init | |
92 | Summary: Init script for Advanced Linux Sound Architecture | |
93 | Summary(pl.UTF-8): Skrypt init dla Advanced Linux Sound Architecture | |
94 | Group: Applications/Sound | |
95 | Requires(post,preun): /sbin/chkconfig | |
96 | Requires: %{name} = %{version}-%{release} | |
97 | Requires: rc-scripts | |
98 | Requires: systemd-units | |
99 | Obsoletes: alsa-udev | |
100 | ||
101 | %description init | |
102 | Init script for Advanced Linux Sound Architecture. | |
103 | ||
104 | %description init -l pl.UTF-8 | |
105 | Skrypt init dla Advanced Linux Sound Architecture. | |
106 | ||
107 | %prep | |
108 | %setup -q | |
109 | %patch0 -p1 | |
110 | %patch1 -p1 | |
111 | ||
112 | %build | |
113 | %{__gettextize} | |
114 | %{__aclocal} | |
115 | %{__autoconf} | |
116 | %{__autoheader} | |
117 | %{__automake} | |
118 | CFLAGS="%{rpmcflags} -I/usr/include/ncurses" | |
119 | CXXFLAGS="%{rpmcxxflags} -fno-rtti -fno-exceptions" | |
120 | # we need alsactl for udev as early as possible | |
121 | %configure \ | |
122 | --sbindir=/sbin \ | |
123 | --with-systemdsystemunitdir=%{systemdunitdir} | |
124 | ||
125 | %{__make} | |
126 | ||
127 | %install | |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
130 | %{__make} install \ | |
131 | DESTDIR=$RPM_BUILD_ROOT | |
132 | ||
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 | |
136 | ||
137 | install -d $RPM_BUILD_ROOT/lib/alsa | |
138 | mv $RPM_BUILD_ROOT%{_datadir}/alsa/init $RPM_BUILD_ROOT/lib/alsa | |
139 | ||
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 | |
143 | ||
144 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1 | |
145 | echo ".so aplay.1" > $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1 | |
146 | ||
147 | %find_lang alsa-utils --all-name | |
148 | ||
149 | %clean | |
150 | rm -rf $RPM_BUILD_ROOT | |
151 | ||
152 | %pretrans | |
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. | |
158 | EOF | |
159 | fi | |
160 | ||
161 | %post init | |
162 | /sbin/chkconfig --add alsasound | |
163 | %service alsasound restart "ALSA %{version} services" | |
164 | ||
165 | %preun init | |
166 | if [ "$1" = "0" ]; then | |
167 | %service alsasound stop | |
168 | /sbin/chkconfig --del alsasound | |
169 | fi | |
170 | ||
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 | |
175 | fi | |
176 | ||
177 | %files -f alsa-utils.lang | |
178 | %defattr(644,root,root,755) | |
179 | %doc ChangeLog README TODO | |
180 | %attr(755,root,root) /sbin/alsa-info.sh | |
181 | %attr(755,root,root) /sbin/alsabat-test.sh | |
182 | %attr(755,root,root) /sbin/alsaconf | |
183 | %attr(755,root,root) /sbin/alsactl | |
184 | %attr(755,root,root) %{_bindir}/aconnect | |
185 | %attr(755,root,root) %{_bindir}/alsabat | |
186 | %attr(755,root,root) %{_bindir}/alsaloop | |
187 | %attr(755,root,root) %{_bindir}/alsamixer | |
188 | %attr(755,root,root) %{_bindir}/alsatplg | |
189 | %attr(755,root,root) %{_bindir}/alsaucm | |
190 | %attr(755,root,root) %{_bindir}/amidi | |
191 | %attr(755,root,root) %{_bindir}/amixer | |
192 | %attr(755,root,root) %{_bindir}/aplay | |
193 | %attr(755,root,root) %{_bindir}/aplaymidi | |
194 | %attr(755,root,root) %{_bindir}/arecord | |
195 | %attr(755,root,root) %{_bindir}/arecordmidi | |
196 | %attr(755,root,root) %{_bindir}/aseqdump | |
197 | %attr(755,root,root) %{_bindir}/aseqnet | |
198 | %attr(755,root,root) %{_bindir}/iecset | |
199 | %attr(755,root,root) %{_bindir}/speaker-test | |
200 | # symlink | |
201 | %attr(755,root,root) %{_sbindir}/alsactl | |
202 | %{_sysconfdir}/alsa/alsactl.conf | |
203 | /lib/udev/rules.d/90-alsa-restore.rules | |
204 | %{systemdunitdir}/alsa-restore.service | |
205 | %{systemdunitdir}/sound.target.wants/alsa-restore.service | |
206 | %dir /var/lib/alsa | |
207 | %dir /lib/alsa | |
208 | /lib/alsa/init | |
209 | %{_datadir}/alsa/init | |
210 | %{_datadir}/alsa/speaker-test | |
211 | %{_datadir}/sounds/alsa | |
212 | %{_mandir}/man1/aconnect.1* | |
213 | %{_mandir}/man1/alsa-info.sh.1* | |
214 | %{_mandir}/man1/alsabat.1* | |
215 | %{_mandir}/man1/alsactl.1* | |
216 | %{_mandir}/man1/alsaloop.1* | |
217 | %{_mandir}/man1/alsamixer.1* | |
218 | %{_mandir}/man1/alsaucm.1* | |
219 | %{_mandir}/man1/amidi.1* | |
220 | %{_mandir}/man1/amixer.1* | |
221 | %{_mandir}/man1/aplay.1* | |
222 | %{_mandir}/man1/aplaymidi.1* | |
223 | %{_mandir}/man1/arecord.1* | |
224 | %{_mandir}/man1/arecordmidi.1* | |
225 | %{_mandir}/man1/aseqdump.1* | |
226 | %{_mandir}/man1/aseqnet.1* | |
227 | %{_mandir}/man1/iecset.1* | |
228 | %{_mandir}/man1/speaker-test.1* | |
229 | %{_mandir}/man7/alsactl_init.7* | |
230 | %{_mandir}/man8/alsaconf.8* | |
231 | %lang(fr) %{_mandir}/fr/man8/alsaconf.8* | |
232 | ||
233 | %files init | |
234 | %defattr(644,root,root,755) | |
235 | %attr(754,root,root) /etc/rc.d/init.d/alsasound | |
236 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/alsa-oss-pcm | |
237 | %{systemdunitdir}/alsa-state.service | |
238 | %{systemdunitdir}/sound.target.wants/alsa-state.service |