]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | %bcond_without python # smixer-python binding | |
5 | %bcond_with resmgr # Resource Manager support | |
6 | # | |
7 | Summary: Advanced Linux Sound Architecture (ALSA) - Library | |
8 | Summary(es.UTF-8): Advanced Linux Sound Architecture (ALSA) - Biblioteca | |
9 | Summary(pl.UTF-8): Advanced Linux Sound Architecture (ALSA) - Biblioteka | |
10 | Summary(pt_BR.UTF-8): Biblioteca para o ALSA (Advanced Linux Sound Architecture) | |
11 | Summary(ru.UTF-8): Библиотека API для работы с драйвером ALSA | |
12 | Summary(uk.UTF-8): Бібліотека API для роботи з драйвером ALSA | |
13 | Name: alsa-lib | |
14 | Version: 1.0.22 | |
15 | Release: 1 | |
16 | License: LGPL v2.1+ | |
17 | Group: Libraries | |
18 | Source0: ftp://ftp.alsa-project.org/pub/lib/%{name}-%{version}.tar.bz2 | |
19 | # Source0-md5: b28a12348905fb6915bc41f0edb2ecce | |
20 | Source1: %{name}-modprobe.conf | |
21 | Source2: %{name}-asound.conf | |
22 | URL: http://www.alsa-project.org/ | |
23 | BuildRequires: alsa-driver-devel | |
24 | BuildRequires: autoconf >= 2.59 | |
25 | BuildRequires: automake | |
26 | BuildRequires: doxygen | |
27 | BuildRequires: libtool | |
28 | %if %{with python} | |
29 | BuildRequires: python-devel >= 1:2.4 | |
30 | BuildRequires: python-modules | |
31 | %endif | |
32 | %{?with_resmgr:BuildRequires: resmgr-devel} | |
33 | BuildConflicts: alsa-lib <= 0.4.0 | |
34 | Obsoletes: alsa-libs | |
35 | Conflicts: alsa-utils < 1.0.20-3 | |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
37 | ||
38 | %description | |
39 | Advanced Linux Sound Architecture (ALSA) - Library | |
40 | ||
41 | Features: | |
42 | - general | |
43 | - modularized architecture | |
44 | - support for versioned and exported symbols | |
45 | - full proc filesystem support - /proc/sound | |
46 | - ISA soundcards | |
47 | - support for 128k ISA DMA buffer | |
48 | - mixer | |
49 | - new enhanced API for applications | |
50 | - support for unlimited number of channels | |
51 | - volume can be set in three ways (percentual (0-100), exact and | |
52 | decibel) | |
53 | - support for mute (and hardware mute if hardware supports it) | |
54 | - support for mixer events | |
55 | - this allows two or more applications to be synchronized | |
56 | - digital audio (PCM) | |
57 | - new enhanced API for applications | |
58 | - full real duplex support | |
59 | - full duplex support for SoundBlaster 16/AWE soundcards | |
60 | - digital audio data for playback and record should be read back using | |
61 | proc filesystem | |
62 | - OSS/Lite compatibility | |
63 | - full mixer compatibity | |
64 | - full PCM (/dev/dsp) compatibility | |
65 | ||
66 | %description -l pl.UTF-8 | |
67 | Advanced Linux Sound Architecture (ALSA) - Biblioteka | |
68 | ||
69 | Możliwości: | |
70 | - generalne | |
71 | - zmodularyzowana architektura | |
72 | - pełne wsparcie dla systemu plików proc - /proc/sound | |
73 | - karty dźwiękowe ISA | |
74 | - obsługa bufora 128k ISA DMA | |
75 | - mikser | |
76 | - nowe rozszerzone API dla aplikacji | |
77 | - obsługa nielimitowanej liczby kanałów | |
78 | - głośność może być ustawiana na trzy różne sposoby (procentowo | |
79 | (0-100), liniowo oraz w skali decybelowej) | |
80 | - obsługa wyciszania (oraz sprzętowego wyciszania) | |
81 | - obsługa zdarzeń miksera | |
82 | - to pozwala dwum lub większej liczbie aplikacji się synchronizować | |
83 | - cyfrowe audio (PCM) | |
84 | - nowe rozszerzone API dla aplikacji | |
85 | - pełna, prawdziwa obsługa trybu duplex | |
86 | - pełna obsługa trybu duplex dla kart SoundBlaster 16/AWE | |
87 | - dane cyfrowego dźwięku dla odtwarzania i nagrywania powinny być | |
88 | odczytywane poprzez system plików /proc | |
89 | - kompatybilność z OSS/Lite | |
90 | - pełna kompatybilność miksera | |
91 | - pełna kompatybilność PCM (/dev/dsp) | |
92 | ||
93 | %description -l pt_BR.UTF-8 | |
94 | Bibliotecas para o ALSA. Esse pacote é necessário para rodar programas | |
95 | Linux queusam o driver de som ALSA. | |
96 | ||
97 | %description -l ru.UTF-8 | |
98 | Библиотека API для работы с драйвером ALSA. | |
99 | ||
100 | %description -l uk.UTF-8 | |
101 | Бібліотека API для роботи з драйвером ALSA. | |
102 | ||
103 | %package devel | |
104 | Summary: Advanced Linux Sound Architecture (ALSA) - header files | |
105 | Summary(es.UTF-8): Archivos de desarrollo de ALSA | |
106 | Summary(pl.UTF-8): Advanced Linux Sound Architecture (ALSA) - pliki nagłówkowe | |
107 | Summary(pt_BR.UTF-8): Arquivos de desenvolvimento do ALSA (Advanced Linux Sound Architecture) | |
108 | Summary(ru.UTF-8): Библиотека API для работы с драйвером ALSA - файлы программиста | |
109 | Summary(uk.UTF-8): Бібліотека API для роботи з драйвером ALSA - файли програміста | |
110 | Group: Development/Libraries | |
111 | Requires: %{name} = %{version}-%{release} | |
112 | Requires: alsa-driver-devel | |
113 | Obsoletes: alsa-devel | |
114 | Obsoletes: alsa-lib-devel-doc | |
115 | ||
116 | %description devel | |
117 | Advanced Linux Sound Architecture (ALSA) - header files. | |
118 | ||
119 | %description devel -l es.UTF-8 | |
120 | Este paquete contiene los archivos necesarios para compilar programas | |
121 | que usan la biblioteca del sistema ALSA. No es necesario instalarlo si | |
122 | lo que se desea es solamente ejecutar programas. | |
123 | ||
124 | %description devel -l pl.UTF-8 | |
125 | Advanced Linux Sound Architecture (ALSA) - pliki nagłówkowe. | |
126 | ||
127 | %description devel -l pt_BR.UTF-8 | |
128 | Esse pacote contém os arquivos necessários para compilar programas que | |
129 | usam a biblioteca do ALSA. Não é necessário instalar esse pacote para | |
130 | apenas rodar programas. | |
131 | ||
132 | %description devel -l ru.UTF-8 | |
133 | Библиотеки разработчика и хедера для библиотеки API для работы с | |
134 | драйвером ALSA. | |
135 | ||
136 | %description devel -l uk.UTF-8 | |
137 | Бібліотеки програміста та хедери для бібліотеки API для роботи з | |
138 | драйвером ALSA. | |
139 | ||
140 | %package static | |
141 | Summary: Advanced Linux Sound Architecture (ALSA) - static library | |
142 | Summary(pl.UTF-8): Advanced Linux Sound Architecture (ALSA) - biblioteka statyczna | |
143 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com a alsa-lib | |
144 | Summary(ru.UTF-8): Статическая библиотека API для работы с драйвером ALSA | |
145 | Summary(uk.UTF-8): Статична бібліотека API для роботи з драйвером ALSA | |
146 | Group: Development/Libraries | |
147 | Requires: %{name}-devel = %{version}-%{release} | |
148 | ||
149 | %description static | |
150 | Advanced Linux Sound Architecture (ALSA) - static library. | |
151 | ||
152 | %description static -l pl.UTF-8 | |
153 | Advanced Linux Sound Architecture (ALSA) - biblioteka statyczna. | |
154 | ||
155 | %description static -l pt_BR.UTF-8 | |
156 | Bibliotecas estáticas para desenvolvimento com a alsa-lib | |
157 | ||
158 | %description static -l ru.UTF-8 | |
159 | Статическая библиотека API для работы с драйвером ALSA. | |
160 | ||
161 | %description static -l uk.UTF-8 | |
162 | Статична бібліотека API для роботи з драйвером ALSA. | |
163 | ||
164 | %package smixer-python | |
165 | Summary: Python binding module for ALSA Mixer Interface | |
166 | Summary(pl.UTF-8): Moduł wiązania Pythona dla interfejsu miksera architektury ALSA | |
167 | Group: Libraries | |
168 | Requires: %{name} = %{version}-%{release} | |
169 | ||
170 | %description smixer-python | |
171 | Python binding module for ALSA Mixer Interface. | |
172 | ||
173 | %description smixer-python -l pl.UTF-8 | |
174 | Moduł wiązania Pythona dla interfejsu miksera architektury ALSA. | |
175 | ||
176 | %prep | |
177 | %setup -q | |
178 | ||
179 | %build | |
180 | %{__libtoolize} | |
181 | %{__aclocal} | |
182 | %{__autoconf} | |
183 | %{__autoheader} | |
184 | %{__automake} | |
185 | %configure \ | |
186 | --enable-static \ | |
187 | %{!?with_python:--disable-python} \ | |
188 | %{?with_resmgr:--enable-resmgr} \ | |
189 | %{!?with_static_libs:--disable-static} | |
190 | ||
191 | %{__make} | |
192 | %{__make} doc | |
193 | ||
194 | %install | |
195 | rm -rf $RPM_BUILD_ROOT | |
196 | ||
197 | install -d $RPM_BUILD_ROOT/etc/{alsa,modprobe.d} | |
198 | ||
199 | %{__make} install \ | |
200 | DESTDIR=$RPM_BUILD_ROOT | |
201 | ||
202 | install -D utils/alsa.m4 $RPM_BUILD_ROOT%{_aclocaldir}/alsa.m4 | |
203 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/modprobe.d/alsa-base.conf | |
204 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/asound.conf | |
205 | ||
206 | rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/smixer/*.{a,la} | |
207 | ||
208 | %clean | |
209 | rm -rf $RPM_BUILD_ROOT | |
210 | ||
211 | %post -p /sbin/ldconfig | |
212 | %postun -p /sbin/ldconfig | |
213 | ||
214 | %files | |
215 | %defattr(644,root,root,755) | |
216 | %doc doc/asoundrc.txt | |
217 | %attr(755,root,root) %{_bindir}/aserver | |
218 | %attr(755,root,root) %{_libdir}/libasound.so.*.*.* | |
219 | %attr(755,root,root) %ghost %{_libdir}/libasound.so.2 | |
220 | %dir %{_libdir}/alsa-lib | |
221 | %dir %{_libdir}/alsa-lib/smixer | |
222 | %attr(755,root,root) %{_libdir}/alsa-lib/smixer/smixer-ac97.so | |
223 | %attr(755,root,root) %{_libdir}/alsa-lib/smixer/smixer-hda.so | |
224 | %attr(755,root,root) %{_libdir}/alsa-lib/smixer/smixer-sbase.so | |
225 | %{_datadir}/alsa | |
226 | %dir %{_sysconfdir}/alsa | |
227 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asound.conf | |
228 | %attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/modprobe.d/alsa-base.conf | |
229 | ||
230 | %files devel | |
231 | %defattr(644,root,root,755) | |
232 | %doc doc/doxygen/html/* | |
233 | %attr(755,root,root) %{_libdir}/libasound.so | |
234 | %{_libdir}/libasound.la | |
235 | %{_includedir}/sys/asoundlib.h | |
236 | %{_includedir}/alsa | |
237 | %{_aclocaldir}/alsa.m4 | |
238 | %{_pkgconfigdir}/alsa.pc | |
239 | ||
240 | %if %{with static_libs} | |
241 | %files static | |
242 | %defattr(644,root,root,755) | |
243 | %{_libdir}/libasound.a | |
244 | %endif | |
245 | ||
246 | %if %{with python} | |
247 | %files smixer-python | |
248 | %defattr(644,root,root,755) | |
249 | %attr(755,root,root) %{_libdir}/alsa-lib/smixer/smixer-python.so | |
250 | %endif |