]>
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 |
92c7480d | 15 | Version: 1.1.3 |
5c5771fc | 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 |
92c7480d | 20 | # Source0-md5: eefe5992567ba00d6110a540657aaf5c |
39b64239 | 21 | Source1: %{name}-modprobe.conf |
003445c2 | 22 | Source2: %{name}-asound.conf |
41a4a34e | 23 | URL: http://www.alsa-project.org/ |
743a8b82 | 24 | BuildRequires: autoconf >= 2.59 |
5e32b4b7 | 25 | BuildRequires: automake |
ab387138 | 26 | BuildRequires: doxygen |
5c5771fc | 27 | BuildRequires: libtool >= 1.4 |
cc2d937f | 28 | %if %{with python} |
29 | BuildRequires: python-devel >= 1:2.4 | |
30 | BuildRequires: python-modules | |
31 | %endif | |
2b53e878 | 32 | %{?with_resmgr:BuildRequires: resmgr-devel} |
c85c2963 JB |
33 | BuildConflicts: alsa-lib <= 0.4.0 |
34 | Obsoletes: alsa-libs | |
7e70afc1 | 35 | Conflicts: alsa-utils < 1.0.20-3 |
1a6b1ab3 | 36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41a4a34e | 37 | |
41a4a34e JR |
38 | %description |
39 | Advanced Linux Sound Architecture (ALSA) - Library | |
40 | ||
285fe16b | 41 | Features: |
7cf63ff1 | 42 | - general |
060bb531 | 43 | - modularized architecture |
95c05e91 | 44 | - support for versioned and exported symbols |
45 | - full proc filesystem support - /proc/sound | |
7cf63ff1 | 46 | - ISA soundcards |
95c05e91 | 47 | - support for 128k ISA DMA buffer |
7cf63ff1 | 48 | - mixer |
95c05e91 | 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 | |
7cf63ff1 | 56 | - digital audio (PCM) |
95c05e91 | 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 | |
7cf63ff1 | 62 | - OSS/Lite compatibility |
95c05e91 | 63 | - full mixer compatibity |
64 | - full PCM (/dev/dsp) compatibility | |
41a4a34e | 65 | |
46baad44 | 66 | %description -l pl.UTF-8 |
41a4a34e JR |
67 | Advanced Linux Sound Architecture (ALSA) - Biblioteka |
68 | ||
46baad44 | 69 | Możliwości: |
7cf63ff1 | 70 | - generalne |
060bb531 | 71 | - zmodularyzowana architektura |
46baad44 JR |
72 | - pełne wsparcie dla systemu plików proc - /proc/sound |
73 | - karty dźwiękowe ISA | |
74 | - obsługa bufora 128k ISA DMA | |
7cf63ff1 | 75 | - mikser |
95c05e91 | 76 | - nowe rozszerzone API dla aplikacji |
46baad44 JR |
77 | - obsługa nielimitowanej liczby kanałów |
78 | - głośność może być ustawiana na trzy różne sposoby (procentowo | |
95c05e91 | 79 | (0-100), liniowo oraz w skali decybelowej) |
46baad44 JR |
80 | - obsługa wyciszania (oraz sprzętowego wyciszania) |
81 | - obsługa zdarzeń miksera | |
82 | - to pozwala dwum lub większej liczbie aplikacji się synchronizować | |
7cf63ff1 | 83 | - cyfrowe audio (PCM) |
95c05e91 | 84 | - nowe rozszerzone API dla aplikacji |
46baad44 JR |
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 | |
c85c2963 | 95 | Linux queusam o driver de som ALSA. |
3adfa070 | 96 | |
46baad44 JR |
97 | %description -l ru.UTF-8 |
98 | Библиотека API для работы с драйвером ALSA. | |
d80db9f4 | 99 | |
46baad44 JR |
100 | %description -l uk.UTF-8 |
101 | Бібліотека API для роботи з драйвером ALSA. | |
d80db9f4 | 102 | |
41a4a34e JR |
103 | %package devel |
104 | Summary: Advanced Linux Sound Architecture (ALSA) - header files | |
caabf65a ER |
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 - файли програміста | |
41a4a34e | 110 | Group: Development/Libraries |
9faa9534 | 111 | Requires: %{name} = %{version}-%{release} |
dd75a39e | 112 | Obsoletes: alsa-devel |
1a6b1ab3 | 113 | Obsoletes: alsa-lib-devel-doc |
12264fc6 | 114 | |
41a4a34e JR |
115 | %description devel |
116 | Advanced Linux Sound Architecture (ALSA) - header files. | |
117 | ||
46baad44 | 118 | %description devel -l es.UTF-8 |
3adfa070 | 119 | Este paquete contiene los archivos necesarios para compilar programas |
120 | que usan la biblioteca del sistema ALSA. No es necesario instalarlo si | |
121 | lo que se desea es solamente ejecutar programas. | |
122 | ||
46baad44 JR |
123 | %description devel -l pl.UTF-8 |
124 | Advanced Linux Sound Architecture (ALSA) - pliki nagłówkowe. | |
41a4a34e | 125 | |
46baad44 JR |
126 | %description devel -l pt_BR.UTF-8 |
127 | Esse pacote contém os arquivos necessários para compilar programas que | |
128 | usam a biblioteca do ALSA. Não é necessário instalar esse pacote para | |
3adfa070 | 129 | apenas rodar programas. |
130 | ||
46baad44 JR |
131 | %description devel -l ru.UTF-8 |
132 | Библиотеки разработчика и хедера для библиотеки API для работы с | |
133 | драйвером ALSA. | |
d80db9f4 | 134 | |
46baad44 JR |
135 | %description devel -l uk.UTF-8 |
136 | Бібліотеки програміста та хедери для бібліотеки API для роботи з | |
137 | драйвером ALSA. | |
d80db9f4 | 138 | |
41a4a34e | 139 | %package static |
285fe16b | 140 | Summary: Advanced Linux Sound Architecture (ALSA) - static library |
caabf65a ER |
141 | Summary(pl.UTF-8): Advanced Linux Sound Architecture (ALSA) - biblioteka statyczna |
142 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com a alsa-lib | |
143 | Summary(ru.UTF-8): Статическая библиотека API для работы с драйвером ALSA | |
144 | Summary(uk.UTF-8): Статична бібліотека API для роботи з драйвером ALSA | |
41a4a34e | 145 | Group: Development/Libraries |
9faa9534 | 146 | Requires: %{name}-devel = %{version}-%{release} |
41a4a34e JR |
147 | |
148 | %description static | |
285fe16b | 149 | Advanced Linux Sound Architecture (ALSA) - static library. |
41a4a34e | 150 | |
46baad44 | 151 | %description static -l pl.UTF-8 |
285fe16b | 152 | Advanced Linux Sound Architecture (ALSA) - biblioteka statyczna. |
41a4a34e | 153 | |
46baad44 JR |
154 | %description static -l pt_BR.UTF-8 |
155 | Bibliotecas estáticas para desenvolvimento com a alsa-lib | |
3adfa070 | 156 | |
46baad44 JR |
157 | %description static -l ru.UTF-8 |
158 | Статическая библиотека API для работы с драйвером ALSA. | |
d80db9f4 | 159 | |
46baad44 JR |
160 | %description static -l uk.UTF-8 |
161 | Статична бібліотека API для роботи з драйвером ALSA. | |
d80db9f4 | 162 | |
3aa919aa ER |
163 | %package apidocs |
164 | Summary: ALSA Library API documentation | |
cb10dc24 | 165 | Summary(pl.UTF-8): Dokumentacja API biblioteki ALSA |
3aa919aa | 166 | Group: Documentation |
26b8a3c8 ER |
167 | %if "%{_rpmversion}" >= "5" |
168 | BuildArch: noarch | |
169 | %endif | |
3aa919aa ER |
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 |
41a4a34e JR |
191 | |
192 | %build | |
ab387138 | 193 | %{__libtoolize} |
d17213ad | 194 | %{__aclocal} -I m4 |
ab387138 | 195 | %{__autoconf} |
743a8b82 | 196 | %{__autoheader} |
6514118c | 197 | %{__automake} |
d17213ad | 198 | configure_opts="\ |
dff5bfd7 | 199 | --disable-silent-rules \ |
2b53e878 | 200 | %{!?with_python:--disable-python} \ |
d17213ad AM |
201 | %{?with_resmgr:--enable-resmgr} |
202 | " | |
a16bf25d | 203 | |
d17213ad | 204 | %if %{with static_libs} |
b4098a33 JB |
205 | install -d build-static |
206 | cd build-static | |
207 | ../%configure $configure_opts \ | |
d17213ad AM |
208 | --disable-shared \ |
209 | --enable-static | |
cc39b8d8 | 210 | %{__make} |
b4098a33 | 211 | cd .. |
d17213ad AM |
212 | %endif |
213 | ||
b4098a33 JB |
214 | install -d build-shared |
215 | cd build-shared | |
216 | ../%configure $configure_opts \ | |
d17213ad AM |
217 | --enable-shared \ |
218 | --disable-static | |
219 | ||
220 | %{__make} | |
3aa919aa | 221 | %{?with_apidocs:%{__make} doc} |
b4098a33 | 222 | cd .. |
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 | |
b4098a33 JB |
228 | %if %{with static_libs} |
229 | %{__make} -C build-static/src install-libLTLIBRARIES \ | |
ab387138 | 230 | DESTDIR=$RPM_BUILD_ROOT |
b4098a33 | 231 | %endif |
ab387138 | 232 | |
b4098a33 JB |
233 | %{__make} -C build-shared install \ |
234 | DESTDIR=$RPM_BUILD_ROOT | |
d17213ad | 235 | |
ac9a175d JR |
236 | mv -f $RPM_BUILD_ROOT%{_libdir}/libasound.so.* $RPM_BUILD_ROOT/%{_lib} |
237 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libasound.so | |
238 | ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib}; echo libasound.so.*.*) \ | |
239 | $RPM_BUILD_ROOT%{_libdir}/libasound.so | |
240 | ||
285fe16b | 241 | install -D utils/alsa.m4 $RPM_BUILD_ROOT%{_aclocaldir}/alsa.m4 |
8d5ca859 | 242 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/modprobe.d/alsa-base.conf |
3aa919aa | 243 | install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/asound.conf |
41a4a34e | 244 | |
b4098a33 | 245 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/alsa-lib/smixer/*.la |
060bb531 | 246 | |
41a4a34e JR |
247 | %clean |
248 | rm -rf $RPM_BUILD_ROOT | |
249 | ||
6514118c JB |
250 | %post -p /sbin/ldconfig |
251 | %postun -p /sbin/ldconfig | |
252 | ||
41a4a34e JR |
253 | %files |
254 | %defattr(644,root,root,755) | |
e175bf4b | 255 | %doc doc/asoundrc.txt |
2b53e878 | 256 | %attr(755,root,root) %{_bindir}/aserver |
ac9a175d JR |
257 | %attr(755,root,root) /%{_lib}/libasound.so.*.*.* |
258 | %attr(755,root,root) %ghost /%{_lib}/libasound.so.2 | |
060bb531 JB |
259 | %dir %{_libdir}/alsa-lib |
260 | %dir %{_libdir}/alsa-lib/smixer | |
2b53e878 SS |
261 | %attr(755,root,root) %{_libdir}/alsa-lib/smixer/smixer-ac97.so |
262 | %attr(755,root,root) %{_libdir}/alsa-lib/smixer/smixer-hda.so | |
2b53e878 | 263 | %attr(755,root,root) %{_libdir}/alsa-lib/smixer/smixer-sbase.so |
6514118c | 264 | %{_datadir}/alsa |
a179c321 | 265 | %dir %{_sysconfdir}/alsa |
003445c2 | 266 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asound.conf |
3aa919aa | 267 | %config(noreplace) %verify(not md5 mtime size) /etc/modprobe.d/alsa-base.conf |
41a4a34e JR |
268 | |
269 | %files devel | |
270 | %defattr(644,root,root,755) | |
7a8ac7d3 JB |
271 | %attr(755,root,root) %{_libdir}/libasound.so |
272 | %{_libdir}/libasound.la | |
273 | %{_includedir}/sys/asoundlib.h | |
0252e136 | 274 | %{_includedir}/alsa |
7a8ac7d3 JB |
275 | %{_aclocaldir}/alsa.m4 |
276 | %{_pkgconfigdir}/alsa.pc | |
41a4a34e | 277 | |
9a7772e2 | 278 | %if %{with static_libs} |
41a4a34e JR |
279 | %files static |
280 | %defattr(644,root,root,755) | |
7a8ac7d3 | 281 | %{_libdir}/libasound.a |
9a7772e2 | 282 | %endif |
743a8b82 | 283 | |
3aa919aa ER |
284 | %if %{with apidocs} |
285 | %files apidocs | |
286 | %defattr(644,root,root,755) | |
b4098a33 | 287 | %doc build-shared/doc/doxygen/html/* |
3aa919aa ER |
288 | %endif |
289 | ||
743a8b82 JB |
290 | %if %{with python} |
291 | %files smixer-python | |
292 | %defattr(644,root,root,755) | |
293 | %attr(755,root,root) %{_libdir}/alsa-lib/smixer/smixer-python.so | |
294 | %endif |