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