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