]>
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.0.20 | |
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: 6837e673ef19da96d8bd2f9e18cd9574 | |
15 | Source1: alsasound.init | |
16 | Source2: alsa-oss-pcm | |
17 | URL: http://www.alsa-project.org/ | |
18 | Patch0: %{name}-fast_sampling.patch | |
19 | Patch1: %{name}-modprobe.patch | |
20 | BuildRequires: alsa-lib-devel >= 1.0.14 | |
21 | BuildRequires: autoconf >= 2.59 | |
22 | BuildRequires: automake | |
23 | BuildRequires: flex | |
24 | BuildRequires: gettext-devel >= 0.14 | |
25 | BuildRequires: libtool | |
26 | BuildRequires: ncurses-devel | |
27 | BuildRequires: rpmbuild(macros) >= 1.268 | |
28 | Requires: alsa-lib >= 1.0.14 | |
29 | Requires: awk | |
30 | Requires: dialog | |
31 | Requires: diffutils | |
32 | Requires: which | |
33 | Suggests: gpm | |
34 | Obsoletes: alsaconf | |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
38 | This packages contains command line utilities for the ALSA project: | |
39 | - alsactl - utility for store / restore of soundcard settings | |
40 | - aplay/arecord - utility for playback / record of .wav, .voc, .au | |
41 | files | |
42 | - amixer - a command line mixer | |
43 | - alsamixer - ncurses mixer | |
44 | ||
45 | %description -l es.UTF-8 | |
46 | Utilitarios para el sistema ALSA, la arquitetura avanzada de sonido | |
47 | para Linux. | |
48 | ||
49 | %description -l pl.UTF-8 | |
50 | Pakiet zawiera następujące, działające z linii poleceń, narzędzia dla | |
51 | projektu ALSA (Advanced Linux Sound Architecture): | |
52 | - alsactl - narzędzie do zapamiętywania / przywracania ustawień karty | |
53 | dźwiękowej | |
54 | - aplay/arecord - narzędzia do odtwarzania / nagrywania plików .wav, | |
55 | .voc, .au | |
56 | - amixer - mikser działający z linii poleceń | |
57 | - alsamixer - mikser z interfejsem opartym o ncurses | |
58 | ||
59 | %description -l pt_BR.UTF-8 | |
60 | Utilitários para o ALSA, a arquitetura de som avançada para o Linux. | |
61 | ||
62 | %description -l ru.UTF-8 | |
63 | Этот пакет содержит утилиты командной строки для ALSA project: | |
64 | - alsactl - утилита для сохранения/восстановления настроек звуковой | |
65 | карты | |
66 | - aplay/arecord - утилита для записи/проигрывания файлов .wav, .voc, | |
67 | .au | |
68 | - amixer - микшер, управляемый из командной строки | |
69 | - alsamixer - микшер с интерфейсом ncurses | |
70 | ||
71 | %description -l uk.UTF-8 | |
72 | Цей пакет містить утиліти командного рядка для ALSA project: | |
73 | - alsactl - утиліта для збереження/відновлення настанов звукової карти | |
74 | - aplay/arecord - утиліта для запису/програвання файлів .wav, .voc, | |
75 | .au | |
76 | - amixer - мікшер, який керується з командного рядка | |
77 | - alsamixer - мікшер з інтерфейсом ncurses | |
78 | ||
79 | %package init | |
80 | Summary: Init script for Advanced Linux Sound Architecture | |
81 | Summary(pl.UTF-8): Skrypt init dla Advanced Linux Sound Architecture | |
82 | Group: Applications/Sound | |
83 | Requires(post,preun): /sbin/chkconfig | |
84 | Requires: %{name} = %{version}-%{release} | |
85 | Requires: rc-scripts | |
86 | Obsoletes: alsa-udev | |
87 | ||
88 | %description init | |
89 | Init script for Advanced Linux Sound Architecture. | |
90 | ||
91 | %description init -l pl.UTF-8 | |
92 | Skrypt init dla Advanced Linux Sound Architecture. | |
93 | ||
94 | %prep | |
95 | %setup -q | |
96 | %patch0 -p1 | |
97 | %patch1 -p1 | |
98 | ||
99 | %build | |
100 | %{__gettextize} | |
101 | %{__aclocal} | |
102 | %{__autoconf} | |
103 | %{__autoheader} | |
104 | %{__automake} | |
105 | CFLAGS="%{rpmcflags} -I/usr/include/ncurses" | |
106 | CXXFLAGS="%{rpmcxxflags} -fno-rtti -fno-exceptions" | |
107 | %configure | |
108 | %{__make} | |
109 | ||
110 | %install | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
113 | %{__make} install \ | |
114 | DESTDIR=$RPM_BUILD_ROOT | |
115 | ||
116 | install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/alsasound | |
117 | install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/alsa-oss-pcm | |
118 | ||
119 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1 | |
120 | echo ".so aplay.1" > $RPM_BUILD_ROOT%{_mandir}/man1/arecord.1 | |
121 | ||
122 | touch $RPM_BUILD_ROOT%{_sysconfdir}/asound.conf | |
123 | ||
124 | %find_lang alsa-utils --all-name | |
125 | ||
126 | %clean | |
127 | rm -rf $RPM_BUILD_ROOT | |
128 | ||
129 | %post init | |
130 | /sbin/chkconfig --add alsasound | |
131 | %service alsasound restart "ALSA %{version} services" | |
132 | ||
133 | %preun init | |
134 | if [ "$1" = "0" ]; then | |
135 | %service alsasound stop | |
136 | /sbin/chkconfig --del alsasound | |
137 | fi | |
138 | ||
139 | %files -f alsa-utils.lang | |
140 | %defattr(644,root,root,755) | |
141 | %doc README ChangeLog | |
142 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asound.conf | |
143 | %attr(755,root,root) %{_bindir}/* | |
144 | %attr(755,root,root) %{_sbindir}/* | |
145 | %{_datadir}/alsa/init | |
146 | %{_datadir}/alsa/speaker-test | |
147 | %{_datadir}/sounds/alsa | |
148 | %{_mandir}/man1/aconnect.1* | |
149 | %{_mandir}/man1/alsactl.1* | |
150 | %{_mandir}/man1/alsamixer.1* | |
151 | %{_mandir}/man1/amidi.1* | |
152 | %{_mandir}/man1/amixer.1* | |
153 | %{_mandir}/man1/aplay.1* | |
154 | %{_mandir}/man1/aplaymidi.1* | |
155 | %{_mandir}/man1/arecord.1* | |
156 | %{_mandir}/man1/arecordmidi.1* | |
157 | %{_mandir}/man1/aseqnet.1* | |
158 | %{_mandir}/man1/aseqdump.1* | |
159 | %{_mandir}/man1/iecset.1* | |
160 | %{_mandir}/man1/speaker-test.1* | |
161 | %{_mandir}/man7/alsactl_init.7* | |
162 | %{_mandir}/man8/alsaconf.8* | |
163 | %lang(fr) %{_mandir}/fr/man8/alsaconf.8* | |
164 | ||
165 | %files init | |
166 | %defattr(644,root,root,755) | |
167 | %attr(754,root,root) /etc/rc.d/init.d/alsasound | |
168 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/alsa-oss-pcm |