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