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 python2 # python 2.x instead of python 3.x for smixer pymodules
7 %bcond_with resmgr # Resource Manager support
9 Summary: Advanced Linux Sound Architecture (ALSA) - Library
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
20 Source0: ftp://ftp.alsa-project.org/pub/lib/%{name}-%{version}.tar.bz2
21 # Source0-md5: 51ca1283e27e7dc10207ccce33919cf2
22 Source1: %{name}-modprobe.conf
23 Source2: %{name}-asound.conf
25 URL: http://www.alsa-project.org/
26 BuildRequires: autoconf >= 2.59
27 BuildRequires: automake
28 BuildRequires: doxygen
29 BuildRequires: libtool >= 1.4
32 BuildRequires: python-devel >= 1:2.4
33 BuildRequires: python-modules >= 1:2.4
35 BuildRequires: python3-devel >= 1:3.2
36 BuildRequires: python3-modules >= 1:3.2
39 %{?with_resmgr:BuildRequires: resmgr-devel}
40 BuildConflicts: alsa-lib <= 0.4.0
42 Conflicts: alsa-utils < 1.0.20-3
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 Advanced Linux Sound Architecture (ALSA) - Library
50 - modularized architecture
51 - support for versioned and exported symbols
52 - full proc filesystem support - /proc/sound
54 - support for 128k ISA DMA buffer
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
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
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
69 - OSS/Lite compatibility
70 - full mixer compatibity
71 - full PCM (/dev/dsp) compatibility
73 %description -l pl.UTF-8
74 Advanced Linux Sound Architecture (ALSA) - Biblioteka
78 - zmodularyzowana architektura
79 - pełne wsparcie dla systemu plików proc - /proc/sound
81 - obsługa bufora 128k ISA DMA
83 - nowe rozszerzone API dla aplikacji
84 - obsługa nielimitowanej liczby kanałów
85 - głośność może być ustawiana na trzy różne sposoby (procentowo
86 (0-100), liniowo oraz w skali decybelowej)
87 - obsługa wyciszania (oraz sprzętowego wyciszania)
88 - obsługa zdarzeń miksera
89 - to pozwala dwum lub większej liczbie aplikacji się synchronizować
91 - nowe rozszerzone API dla aplikacji
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)
100 %description -l pt_BR.UTF-8
101 Bibliotecas para o ALSA. Esse pacote é necessário para rodar programas
102 Linux queusam o driver de som ALSA.
104 %description -l ru.UTF-8
105 Библиотека API для работы с драйвером ALSA.
107 %description -l uk.UTF-8
108 Бібліотека API для роботи з драйвером ALSA.
111 Summary: Advanced Linux Sound Architecture (ALSA) - header files
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 - файли програміста
117 Group: Development/Libraries
118 Requires: %{name} = %{version}-%{release}
119 Obsoletes: alsa-devel
120 Obsoletes: alsa-lib-devel-doc
123 Advanced Linux Sound Architecture (ALSA) - header files.
125 %description devel -l es.UTF-8
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.
130 %description devel -l pl.UTF-8
131 Advanced Linux Sound Architecture (ALSA) - pliki nagłówkowe.
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
136 apenas rodar programas.
138 %description devel -l ru.UTF-8
139 Библиотеки разработчика и хедера для библиотеки API для работы с
142 %description devel -l uk.UTF-8
143 Бібліотеки програміста та хедери для бібліотеки API для роботи з
147 Summary: Advanced Linux Sound Architecture (ALSA) - static library
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
152 Group: Development/Libraries
153 Requires: %{name}-devel = %{version}-%{release}
156 Advanced Linux Sound Architecture (ALSA) - static library.
158 %description static -l pl.UTF-8
159 Advanced Linux Sound Architecture (ALSA) - biblioteka statyczna.
161 %description static -l pt_BR.UTF-8
162 Bibliotecas estáticas para desenvolvimento com a alsa-lib
164 %description static -l ru.UTF-8
165 Статическая библиотека API для работы с драйвером ALSA.
167 %description static -l uk.UTF-8
168 Статична бібліотека API для роботи з драйвером ALSA.
171 Summary: ALSA Library API documentation
172 Summary(pl.UTF-8): Dokumentacja API biblioteki ALSA
174 %if "%{_rpmversion}" >= "5"
179 API and internal documentation for ALSA Library.
181 %description apidocs -l pl.UTF-8
182 Dokumentacja API biblioteki ALSA.
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
188 Requires: %{name} = %{version}-%{release}
190 %description smixer-python
191 Python binding module for ALSA Mixer Interface.
193 %description smixer-python -l pl.UTF-8
194 Moduł wiązania Pythona dla interfejsu miksera architektury ALSA.
198 cp -p %{SOURCE3} src/conf
207 --disable-silent-rules \
208 %{!?with_python:--disable-python} \
209 %{?with_python2:--enable-python2} \
210 %{?with_resmgr:--enable-resmgr} \
211 --enable-mixer-modules \
212 --enable-mixer-pymods
215 %if %{with static_libs}
216 install -d build-static
218 ../%configure $configure_opts \
225 install -d build-shared
227 ../%configure $configure_opts \
232 %{?with_apidocs:%{__make} doc}
236 rm -rf $RPM_BUILD_ROOT
237 install -d $RPM_BUILD_ROOT{/%{_lib},%{_sysconfdir}/alsa/conf.d,%{_datadir}/alsa/alsa.conf.d,/etc/modprobe.d}
239 %if %{with static_libs}
240 %{__make} -C build-static/src install-libLTLIBRARIES \
241 DESTDIR=$RPM_BUILD_ROOT
244 %{__make} -C build-shared install \
245 DESTDIR=$RPM_BUILD_ROOT
247 %{__mv} $RPM_BUILD_ROOT%{_libdir}/libasound.so.* $RPM_BUILD_ROOT/%{_lib}
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
252 install -D utils/alsa.m4 $RPM_BUILD_ROOT%{_aclocaldir}/alsa.m4
253 install %{SOURCE1} $RPM_BUILD_ROOT/etc/modprobe.d/alsa-base.conf
254 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/asound.conf
256 %{__rm} $RPM_BUILD_ROOT%{_libdir}/alsa-lib/smixer/*.la
259 rm -rf $RPM_BUILD_ROOT
261 %post -p /sbin/ldconfig
262 %postun -p /sbin/ldconfig
265 %defattr(644,root,root,755)
266 %doc doc/asoundrc.txt
267 %attr(755,root,root) %{_bindir}/aserver
268 %attr(755,root,root) /%{_lib}/libasound.so.*.*.*
269 %attr(755,root,root) %ghost /%{_lib}/libasound.so.2
270 %dir %{_libdir}/alsa-lib
271 %dir %{_libdir}/alsa-lib/smixer
272 %attr(755,root,root) %{_libdir}/alsa-lib/smixer/smixer-ac97.so
273 %attr(755,root,root) %{_libdir}/alsa-lib/smixer/smixer-hda.so
274 %attr(755,root,root) %{_libdir}/alsa-lib/smixer/smixer-sbase.so
275 %dir %{_datadir}/alsa
276 %{_datadir}/alsa/cards
278 %{_datadir}/alsa/topology
280 %{_datadir}/alsa/alsa.conf
281 # directory for "global" config files (not accessed directly, but through symlinks in %{_sysconfdir}/alsa/conf.d)
282 %dir %{_datadir}/alsa/alsa.conf.d
283 %{_datadir}/alsa/smixer.conf
284 %dir %{_sysconfdir}/alsa
285 # directory for "local" config files (loaded from %{_datadir}/alsa/alsa.conf)
286 %dir %{_sysconfdir}/alsa/conf.d
287 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asound.conf
288 %config(noreplace) %verify(not md5 mtime size) /etc/modprobe.d/alsa-base.conf
291 %defattr(644,root,root,755)
292 %attr(755,root,root) %{_libdir}/libasound.so
293 %{_libdir}/libasound.la
294 %{_includedir}/sys/asoundlib.h
296 %{_aclocaldir}/alsa.m4
297 %{_pkgconfigdir}/alsa.pc
299 %if %{with static_libs}
301 %defattr(644,root,root,755)
302 %{_libdir}/libasound.a
307 %defattr(644,root,root,755)
308 %doc build-shared/doc/doxygen/html/*
313 %defattr(644,root,root,755)
314 %attr(755,root,root) %{_libdir}/alsa-lib/smixer/smixer-python.so