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