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
17 # alsa-*-conf tarballs are not released for each patch version
22 Source0: ftp://ftp.alsa-project.org/pub/lib/%{name}-%{version}.tar.bz2
23 # Source0-md5: 875184646a96e34bbe7a91925cd7b2ba
24 Source1: %{name}-modprobe.conf
25 Source2: %{name}-asound.conf
27 Source4: ftp://ftp.alsa-project.org/pub/lib/alsa-topology-conf-%{confver}.tar.bz2
28 # Source4-md5: a5934e86c726a16d3c1bbce4f04aa1bc
29 Source5: ftp://ftp.alsa-project.org/pub/lib/alsa-ucm-conf-%{confver}.tar.bz2
30 # Source5-md5: 176f06dc581b6574dd7399e335903c4b
31 URL: https://www.alsa-project.org/
32 BuildRequires: autoconf >= 2.59
33 BuildRequires: automake
34 BuildRequires: doxygen
35 BuildRequires: libtool >= 1.4
38 BuildRequires: python-devel >= 1:2.4
39 BuildRequires: python-modules >= 1:2.4
41 BuildRequires: python3-devel >= 1:3.2
42 BuildRequires: python3-modules >= 1:3.2
45 %{?with_resmgr:BuildRequires: resmgr-devel}
46 BuildRequires: tar >= 1:1.15
47 BuildConflicts: alsa-lib <= 0.4.0
49 Conflicts: alsa-utils < 1.0.20-3
50 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53 Advanced Linux Sound Architecture (ALSA) - Library
57 - modularized architecture
58 - support for versioned and exported symbols
59 - full proc filesystem support - /proc/sound
61 - support for 128k ISA DMA buffer
63 - new enhanced API for applications
64 - support for unlimited number of channels
65 - volume can be set in three ways (percentual (0-100), exact and
67 - support for mute (and hardware mute if hardware supports it)
68 - support for mixer events
69 - this allows two or more applications to be synchronized
71 - new enhanced API for applications
72 - full real duplex support
73 - full duplex support for SoundBlaster 16/AWE soundcards
74 - digital audio data for playback and record should be read back using
76 - OSS/Lite compatibility
77 - full mixer compatibity
78 - full PCM (/dev/dsp) compatibility
80 %description -l pl.UTF-8
81 Advanced Linux Sound Architecture (ALSA) - Biblioteka
85 - zmodularyzowana architektura
86 - pełne wsparcie dla systemu plików proc - /proc/sound
88 - obsługa bufora 128k ISA DMA
90 - nowe rozszerzone API dla aplikacji
91 - obsługa nielimitowanej liczby kanałów
92 - głośność może być ustawiana na trzy różne sposoby (procentowo
93 (0-100), liniowo oraz w skali decybelowej)
94 - obsługa wyciszania (oraz sprzętowego wyciszania)
95 - obsługa zdarzeń miksera
96 - to pozwala dwum lub większej liczbie aplikacji się synchronizować
98 - nowe rozszerzone API dla aplikacji
99 - pełna, prawdziwa obsługa trybu duplex
100 - pełna obsługa trybu duplex dla kart SoundBlaster 16/AWE
101 - dane cyfrowego dźwięku dla odtwarzania i nagrywania powinny być
102 odczytywane poprzez system plików /proc
103 - kompatybilność z OSS/Lite
104 - pełna kompatybilność miksera
105 - pełna kompatybilność PCM (/dev/dsp)
107 %description -l pt_BR.UTF-8
108 Bibliotecas para o ALSA. Esse pacote é necessário para rodar programas
109 Linux queusam o driver de som ALSA.
111 %description -l ru.UTF-8
112 Библиотека API для работы с драйвером ALSA.
114 %description -l uk.UTF-8
115 Бібліотека API для роботи з драйвером ALSA.
118 Summary: Advanced Linux Sound Architecture (ALSA) - header files
119 Summary(es.UTF-8): Archivos de desarrollo de ALSA
120 Summary(pl.UTF-8): Advanced Linux Sound Architecture (ALSA) - pliki nagłówkowe
121 Summary(pt_BR.UTF-8): Arquivos de desenvolvimento do ALSA (Advanced Linux Sound Architecture)
122 Summary(ru.UTF-8): Библиотека API для работы с драйвером ALSA - файлы программиста
123 Summary(uk.UTF-8): Бібліотека API для роботи з драйвером ALSA - файли програміста
124 Group: Development/Libraries
125 Requires: %{name} = %{version}-%{release}
126 Obsoletes: alsa-devel
127 Obsoletes: alsa-lib-devel-doc
130 Advanced Linux Sound Architecture (ALSA) - header files.
132 %description devel -l es.UTF-8
133 Este paquete contiene los archivos necesarios para compilar programas
134 que usan la biblioteca del sistema ALSA. No es necesario instalarlo si
135 lo que se desea es solamente ejecutar programas.
137 %description devel -l pl.UTF-8
138 Advanced Linux Sound Architecture (ALSA) - pliki nagłówkowe.
140 %description devel -l pt_BR.UTF-8
141 Esse pacote contém os arquivos necessários para compilar programas que
142 usam a biblioteca do ALSA. Não é necessário instalar esse pacote para
143 apenas rodar programas.
145 %description devel -l ru.UTF-8
146 Библиотеки разработчика и хедера для библиотеки API для работы с
149 %description devel -l uk.UTF-8
150 Бібліотеки програміста та хедери для бібліотеки API для роботи з
154 Summary: Advanced Linux Sound Architecture (ALSA) - static library
155 Summary(pl.UTF-8): Advanced Linux Sound Architecture (ALSA) - biblioteka statyczna
156 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com a alsa-lib
157 Summary(ru.UTF-8): Статическая библиотека API для работы с драйвером ALSA
158 Summary(uk.UTF-8): Статична бібліотека API для роботи з драйвером ALSA
159 Group: Development/Libraries
160 Requires: %{name}-devel = %{version}-%{release}
163 Advanced Linux Sound Architecture (ALSA) - static library.
165 %description static -l pl.UTF-8
166 Advanced Linux Sound Architecture (ALSA) - biblioteka statyczna.
168 %description static -l pt_BR.UTF-8
169 Bibliotecas estáticas para desenvolvimento com a alsa-lib
171 %description static -l ru.UTF-8
172 Статическая библиотека API для работы с драйвером ALSA.
174 %description static -l uk.UTF-8
175 Статична бібліотека API для роботи з драйвером ALSA.
178 Summary: ALSA Library API documentation
179 Summary(pl.UTF-8): Dokumentacja API biblioteki ALSA
181 %if "%{_rpmversion}" >= "4.6"
186 API and internal documentation for ALSA Library.
188 %description apidocs -l pl.UTF-8
189 Dokumentacja API biblioteki ALSA.
191 %package smixer-python
192 Summary: Python binding module for ALSA Mixer Interface
193 Summary(pl.UTF-8): Moduł wiązania Pythona dla interfejsu miksera architektury ALSA
195 Requires: %{name} = %{version}-%{release}
197 %description smixer-python
198 Python binding module for ALSA Mixer Interface.
200 %description smixer-python -l pl.UTF-8
201 Moduł wiązania Pythona dla interfejsu miksera architektury ALSA.
205 cp -p %{SOURCE3} src/conf
214 --disable-silent-rules \
215 %{!?with_python:--disable-python} \
216 %{?with_python2:--enable-python2} \
217 %{?with_resmgr:--enable-resmgr} \
218 --enable-mixer-modules \
219 --enable-mixer-pymods
222 %if %{with static_libs}
223 install -d build-static
225 ../%configure $configure_opts \
232 install -d build-shared
234 ../%configure $configure_opts \
239 %{?with_apidocs:%{__make} doc}
243 rm -rf $RPM_BUILD_ROOT
244 install -d $RPM_BUILD_ROOT{/%{_lib},%{_sysconfdir}/alsa/conf.d,%{_datadir}/alsa/alsa.conf.d,/etc/modprobe.d}
246 %if %{with static_libs}
247 %{__make} -C build-static/src install-libLTLIBRARIES \
248 DESTDIR=$RPM_BUILD_ROOT
251 %{__make} -C build-shared install \
252 DESTDIR=$RPM_BUILD_ROOT
254 %{__mv} $RPM_BUILD_ROOT%{_libdir}/libasound.so.* $RPM_BUILD_ROOT/%{_lib}
255 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libasound.so
256 ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib}; echo libasound.so.*.*) \
257 $RPM_BUILD_ROOT%{_libdir}/libasound.so
259 tar xf %{SOURCE4} --strip-components=1 -C $RPM_BUILD_ROOT%{_datadir}/alsa alsa-topology-conf-%{confver}/topology
260 tar xf %{SOURCE5} --strip-components=1 -C $RPM_BUILD_ROOT%{_datadir}/alsa alsa-ucm-conf-%{confver}/ucm alsa-ucm-conf-%{confver}/ucm2
262 install -D utils/alsa.m4 $RPM_BUILD_ROOT%{_aclocaldir}/alsa.m4
263 install %{SOURCE1} $RPM_BUILD_ROOT/etc/modprobe.d/alsa-base.conf
264 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/asound.conf
266 %{__rm} $RPM_BUILD_ROOT%{_libdir}/alsa-lib/smixer/*.la
269 rm -rf $RPM_BUILD_ROOT
271 %post -p /sbin/ldconfig
272 %postun -p /sbin/ldconfig
275 %defattr(644,root,root,755)
276 %doc doc/asoundrc.txt
277 %attr(755,root,root) %{_bindir}/aserver
278 %attr(755,root,root) /%{_lib}/libasound.so.*.*.*
279 %attr(755,root,root) %ghost /%{_lib}/libasound.so.2
280 %attr(755,root,root) /%{_libdir}/libatopology.so.*.*.*
281 %attr(755,root,root) %ghost /%{_libdir}/libatopology.so.2
282 %dir %{_libdir}/alsa-lib
283 %dir %{_libdir}/alsa-lib/smixer
284 %attr(755,root,root) %{_libdir}/alsa-lib/smixer/smixer-ac97.so
285 %attr(755,root,root) %{_libdir}/alsa-lib/smixer/smixer-hda.so
286 %attr(755,root,root) %{_libdir}/alsa-lib/smixer/smixer-sbase.so
287 %dir %{_datadir}/alsa
288 %{_datadir}/alsa/cards
290 %{_datadir}/alsa/topology
292 %{_datadir}/alsa/ucm2
293 %{_datadir}/alsa/alsa.conf
294 # directory for "global" config files (not accessed directly, but through symlinks in %{_sysconfdir}/alsa/conf.d)
295 %dir %{_datadir}/alsa/alsa.conf.d
296 %{_datadir}/alsa/smixer.conf
297 %dir %{_sysconfdir}/alsa
298 # directory for "local" config files (loaded from %{_datadir}/alsa/alsa.conf)
299 %dir %{_sysconfdir}/alsa/conf.d
300 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asound.conf
301 %config(noreplace) %verify(not md5 mtime size) /etc/modprobe.d/alsa-base.conf
304 %defattr(644,root,root,755)
305 %attr(755,root,root) %{_libdir}/libasound.so
306 %attr(755,root,root) %{_libdir}/libatopology.so
307 %{_libdir}/libasound.la
308 %{_libdir}/libatopology.la
309 %{_includedir}/sys/asoundlib.h
311 %{_includedir}/asoundlib.h
312 %{_aclocaldir}/alsa.m4
313 %{_pkgconfigdir}/alsa.pc
314 %{_pkgconfigdir}/alsa-topology.pc
316 %if %{with static_libs}
318 %defattr(644,root,root,755)
319 %{_libdir}/libasound.a
324 %defattr(644,root,root,755)
325 %doc build-shared/doc/doxygen/html/*
330 %defattr(644,root,root,755)
331 %attr(755,root,root) %{_libdir}/alsa-lib/smixer/smixer-python.so