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