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