]>
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.4 | |
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: 01e3934ca5bd22a80c27289d1b0adcdc | |
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: xmlto | |
36 | Requires: alsa-lib >= 1.0.27 | |
37 | Requires: awk | |
38 | Requires: dialog | |
39 | Requires: diffutils | |
40 | Requires: systemd-units >= 0.38 | |
41 | Requires: which | |
42 | Suggests: gpm | |
43 | Obsoletes: alsa-udev | |
44 | Obsoletes: alsaconf | |
45 | Obsoletes: udev-alsa | |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
47 | ||
48 | %description | |
49 | This packages contains command line utilities for the ALSA project: | |
50 | - alsactl - utility for store / restore of soundcard settings | |
51 | - aplay/arecord - utility for playback / record of .wav, .voc, .au | |
52 | files | |
53 | - amixer - a command line mixer | |
54 | - alsamixer - ncurses mixer | |
55 | ||
56 | %description -l es.UTF-8 | |
57 | Utilitarios para el sistema ALSA, la arquitetura avanzada de sonido | |
58 | para Linux. | |
59 | ||
60 | %description -l pl.UTF-8 | |
61 | Pakiet zawiera następujące, działające z linii poleceń, narzędzia dla | |
62 | projektu ALSA (Advanced Linux Sound Architecture): | |
63 | - alsactl - narzędzie do zapamiętywania / przywracania ustawień karty | |
64 | dźwiękowej | |
65 | - aplay/arecord - narzędzia do odtwarzania / nagrywania plików .wav, | |
66 | .voc, .au | |
67 | - amixer - mikser działający z linii poleceń | |
68 | - alsamixer - mikser z interfejsem opartym o ncurses | |
69 | ||
70 | %description -l pt_BR.UTF-8 | |
71 | Utilitários para o ALSA, a arquitetura de som avançada para o Linux. | |
72 | ||
73 | %description -l ru.UTF-8 | |
74 | Этот пакет содержит утилиты командной строки для ALSA project: | |
75 | - alsactl - утилита для сохранения/восстановления настроек звуковой | |
76 | карты | |
77 | - aplay/arecord - утилита для записи/проигрывания файлов .wav, .voc, | |
78 | .au | |
79 | - amixer - микшер, управляемый из командной строки | |
80 | - alsamixer - микшер с интерфейсом ncurses | |
81 | ||
82 | %description -l uk.UTF-8 | |
83 | Цей пакет містить утиліти командного рядка для ALSA project: | |
84 | - alsactl - утиліта для збереження/відновлення настанов звукової карти | |
85 | - aplay/arecord - утиліта для запису/програвання файлів .wav, .voc, | |
86 | .au | |
87 | - amixer - мікшер, який керується з командного рядка | |
88 | - alsamixer - мікшер з інтерфейсом ncurses | |
89 | ||
90 | %package init | |
91 | Summary: Init script for Advanced Linux Sound Architecture | |
92 | Summary(pl.UTF-8): Skrypt init dla Advanced Linux Sound Architecture | |
93 | Group: Applications/Sound | |
94 | Requires(post,preun): /sbin/chkconfig | |
95 | Requires: %{name} = %{version}-%{release} | |
96 | Requires: rc-scripts | |
97 | Requires: systemd-units | |
98 | Obsoletes: alsa-udev | |
99 | ||
100 | %description init | |
101 | Init script for Advanced Linux Sound Architecture. | |
102 | ||
103 | %description init -l pl.UTF-8 | |
104 | Skrypt init dla Advanced Linux Sound Architecture. | |
105 | ||
106 | %prep | |
107 | %setup -q | |
108 | %patch0 -p1 | |
109 | %patch1 -p1 | |
110 | ||
111 | %build | |
112 | %{__gettextize} | |
113 | %{__aclocal} | |
114 | %{__autoconf} | |
115 | %{__autoheader} | |
116 | %{__automake} | |
117 | CFLAGS="%{rpmcflags} -I/usr/include/ncurses" | |
118 | CXXFLAGS="%{rpmcxxflags} -fno-rtti -fno-exceptions" | |
119 | # we need alsactl for udev as early as possible | |
120 | %configure \ | |
121 | --sbindir=/sbin \ | |
122 | --with-systemdsystemunitdir=%{systemdunitdir} | |
123 | ||
124 | %{__make} | |
125 | ||
126 | %install | |
127 | rm -rf $RPM_BUILD_ROOT | |
128 | ||
129 | %{__make} install \ | |
130 | DESTDIR=$RPM_BUILD_ROOT | |
131 | ||
132 | install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/alsasound | |
133 | install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/alsa-oss-pcm | |
134 | install -D %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/alsa/alsactl.conf | |
135 | ||
136 | install -d $RPM_BUILD_ROOT/lib/alsa | |
137 | mv $RPM_BUILD_ROOT%{_datadir}/alsa/init $RPM_BUILD_ROOT/lib/alsa | |
138 | ||
139 | ln -s /lib/alsa/init $RPM_BUILD_ROOT%{_datadir}/alsa/init | |
140 | install -d $RPM_BUILD_ROOT%{_sbindir} | |
141 | ln -s /sbin/alsactl $RPM_BUILD_ROOT%{_sbindir}/alsactl | |
142 | ||
143 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1 | |
144 | echo ".so aplay.1" > $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1 | |
145 | ||
146 | %find_lang alsa-utils --all-name | |
147 | ||
148 | %clean | |
149 | rm -rf $RPM_BUILD_ROOT | |
150 | ||
151 | %pretrans | |
152 | # this needs to be a dir | |
153 | if [ -d %{_datadir}/alsa/init -a ! -h %{_datadir}/alsa/init ]; then | |
154 | mv -b %{_datadir}/alsa/init{,.dir} | |
155 | %banner -e %{name} <<EOF | |
156 | Check %{_datadir}/alsa/init.dir for your own files and remove it when done. | |
157 | EOF | |
158 | fi | |
159 | ||
160 | %post init | |
161 | /sbin/chkconfig --add alsasound | |
162 | %service alsasound restart "ALSA %{version} services" | |
163 | ||
164 | %preun init | |
165 | if [ "$1" = "0" ]; then | |
166 | %service alsasound stop | |
167 | /sbin/chkconfig --del alsasound | |
168 | fi | |
169 | ||
170 | %triggerpostun -- %{name} < 1.0.24.2-2 | |
171 | install -d /var/lib/alsa | |
172 | if [ -f /etc/asound.state ]; then | |
173 | mv -f /etc/asound.state /var/lib/alsa/asound.state | |
174 | fi | |
175 | ||
176 | %files -f alsa-utils.lang | |
177 | %defattr(644,root,root,755) | |
178 | %doc ChangeLog README TODO | |
179 | %attr(755,root,root) /sbin/alsa-info.sh | |
180 | %attr(755,root,root) /sbin/alsabat-test.sh | |
181 | %attr(755,root,root) /sbin/alsaconf | |
182 | %attr(755,root,root) /sbin/alsactl | |
183 | %attr(755,root,root) %{_bindir}/aconnect | |
184 | %attr(755,root,root) %{_bindir}/alsabat | |
185 | %attr(755,root,root) %{_bindir}/alsaloop | |
186 | %attr(755,root,root) %{_bindir}/alsamixer | |
187 | %attr(755,root,root) %{_bindir}/alsatplg | |
188 | %attr(755,root,root) %{_bindir}/alsaucm | |
189 | %attr(755,root,root) %{_bindir}/amidi | |
190 | %attr(755,root,root) %{_bindir}/amixer | |
191 | %attr(755,root,root) %{_bindir}/aplay | |
192 | %attr(755,root,root) %{_bindir}/aplaymidi | |
193 | %attr(755,root,root) %{_bindir}/arecord | |
194 | %attr(755,root,root) %{_bindir}/arecordmidi | |
195 | %attr(755,root,root) %{_bindir}/aseqdump | |
196 | %attr(755,root,root) %{_bindir}/aseqnet | |
197 | %attr(755,root,root) %{_bindir}/iecset | |
198 | %attr(755,root,root) %{_bindir}/speaker-test | |
199 | # symlink | |
200 | %attr(755,root,root) %{_sbindir}/alsactl | |
201 | %{_sysconfdir}/alsa/alsactl.conf | |
202 | /lib/udev/rules.d/90-alsa-restore.rules | |
203 | %{systemdunitdir}/alsa-restore.service | |
204 | %{systemdunitdir}/basic.target.wants/alsa-restore.service | |
205 | %dir /var/lib/alsa | |
206 | %dir /lib/alsa | |
207 | /lib/alsa/init | |
208 | %{_datadir}/alsa/init | |
209 | %{_datadir}/alsa/speaker-test | |
210 | %{_datadir}/sounds/alsa | |
211 | %{_mandir}/man1/aconnect.1* | |
212 | %{_mandir}/man1/alsa-info.sh.1* | |
213 | %{_mandir}/man1/alsabat.1* | |
214 | %{_mandir}/man1/alsactl.1* | |
215 | %{_mandir}/man1/alsaloop.1* | |
216 | %{_mandir}/man1/alsamixer.1* | |
217 | %{_mandir}/man1/alsaucm.1* | |
218 | %{_mandir}/man1/amidi.1* | |
219 | %{_mandir}/man1/amixer.1* | |
220 | %{_mandir}/man1/aplay.1* | |
221 | %{_mandir}/man1/aplaymidi.1* | |
222 | %{_mandir}/man1/arecord.1* | |
223 | %{_mandir}/man1/arecordmidi.1* | |
224 | %{_mandir}/man1/aseqdump.1* | |
225 | %{_mandir}/man1/aseqnet.1* | |
226 | %{_mandir}/man1/iecset.1* | |
227 | %{_mandir}/man1/speaker-test.1* | |
228 | %{_mandir}/man7/alsactl_init.7* | |
229 | %{_mandir}/man8/alsaconf.8* | |
230 | %lang(fr) %{_mandir}/fr/man8/alsaconf.8* | |
231 | ||
232 | %files init | |
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 | |
236 | %{systemdunitdir}/alsa-state.service | |
237 | %{systemdunitdir}/basic.target.wants/alsa-state.service |