]> git.pld-linux.org Git - packages/alsa-lib.git/blame - alsa-lib.spec
- versioned Obsoletes
[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
53cf8939 16Version: 1.2.7
8df1c423 17# alsa-*-conf tarballs are not released for each patch version
936693db 18%define topology_confver 1.2.5.1
b1a7023d 19%define ucm_confver 1.2.6.3
53cf8939 20Release: 1
743a8b82 21License: LGPL v2.1+
7cf63ff1 22Group: Libraries
343f675c 23Source0: ftp://ftp.alsa-project.org/pub/lib/%{name}-%{version}.tar.bz2
53cf8939 24# Source0-md5: 485d2e9cb91806f0a5732d769cda2800
39b64239 25Source1: %{name}-modprobe.conf
003445c2 26Source2: %{name}-asound.conf
0784d035 27Source3: smixer.conf
936693db 28Source4: ftp://ftp.alsa-project.org/pub/lib/alsa-topology-conf-%{topology_confver}.tar.bz2
df82ab7a 29# Source4-md5: 066d6a980e09a2fa44b4cc1d06ecc0ea
936693db 30Source5: ftp://ftp.alsa-project.org/pub/lib/alsa-ucm-conf-%{ucm_confver}.tar.bz2
b1a7023d 31# Source5-md5: 8b23fb19430b9e6ef47776de4b55c420
ecc32672 32URL: https://www.alsa-project.org/
743a8b82 33BuildRequires: autoconf >= 2.59
5e32b4b7 34BuildRequires: automake
ab387138 35BuildRequires: doxygen
5c5771fc 36BuildRequires: libtool >= 1.4
cc2d937f 37%if %{with python}
82bf787c 38%if %{with python2}
cc2d937f 39BuildRequires: python-devel >= 1:2.4
82bf787c
JB
40BuildRequires: python-modules >= 1:2.4
41%else
42BuildRequires: python3-devel >= 1:3.2
43BuildRequires: python3-modules >= 1:3.2
cc2d937f 44%endif
8d1458c8 45%endif
2b53e878 46%{?with_resmgr:BuildRequires: resmgr-devel}
1fb7dd8c 47BuildRequires: rpm-build >= 4.6
8df1c423 48BuildRequires: tar >= 1:1.15
c85c2963 49BuildConflicts: alsa-lib <= 0.4.0
53ca8a28 50Obsoletes: alsa-libs < 0.5.2
7e70afc1 51Conflicts: alsa-utils < 1.0.20-3
1a6b1ab3 52BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41a4a34e 53
41a4a34e
JR
54%description
55Advanced Linux Sound Architecture (ALSA) - Library
56
285fe16b 57Features:
7cf63ff1 58- general
060bb531 59 - modularized architecture
95c05e91 60 - support for versioned and exported symbols
61 - full proc filesystem support - /proc/sound
7cf63ff1 62- ISA soundcards
95c05e91 63 - support for 128k ISA DMA buffer
7cf63ff1 64- mixer
95c05e91 65 - new enhanced API for applications
66 - support for unlimited number of channels
67 - volume can be set in three ways (percentual (0-100), exact and
68 decibel)
69 - support for mute (and hardware mute if hardware supports it)
70 - support for mixer events
71 - this allows two or more applications to be synchronized
7cf63ff1 72- digital audio (PCM)
95c05e91 73 - new enhanced API for applications
74 - full real duplex support
75 - full duplex support for SoundBlaster 16/AWE soundcards
76 - digital audio data for playback and record should be read back using
77 proc filesystem
7cf63ff1 78- OSS/Lite compatibility
95c05e91 79 - full mixer compatibity
80 - full PCM (/dev/dsp) compatibility
41a4a34e 81
46baad44 82%description -l pl.UTF-8
41a4a34e
JR
83Advanced Linux Sound Architecture (ALSA) - Biblioteka
84
46baad44 85Możliwości:
7cf63ff1 86- generalne
060bb531 87 - zmodularyzowana architektura
46baad44
JR
88 - pełne wsparcie dla systemu plików proc - /proc/sound
89- karty dźwiękowe ISA
90 - obsługa bufora 128k ISA DMA
7cf63ff1 91- mikser
95c05e91 92 - nowe rozszerzone API dla aplikacji
46baad44
JR
93 - obsługa nielimitowanej liczby kanałów
94 - głośność może być ustawiana na trzy różne sposoby (procentowo
95c05e91 95 (0-100), liniowo oraz w skali decybelowej)
46baad44
JR
96 - obsługa wyciszania (oraz sprzętowego wyciszania)
97 - obsługa zdarzeń miksera
98 - to pozwala dwum lub większej liczbie aplikacji się synchronizować
7cf63ff1 99- cyfrowe audio (PCM)
95c05e91 100 - nowe rozszerzone API dla aplikacji
46baad44
JR
101 - pełna, prawdziwa obsługa trybu duplex
102 - pełna obsługa trybu duplex dla kart SoundBlaster 16/AWE
103 - dane cyfrowego dźwięku dla odtwarzania i nagrywania powinny być
104 odczytywane poprzez system plików /proc
105- kompatybilność z OSS/Lite
106 - pełna kompatybilność miksera
107 - pełna kompatybilność PCM (/dev/dsp)
108
109%description -l pt_BR.UTF-8
110Bibliotecas para o ALSA. Esse pacote é necessário para rodar programas
c85c2963 111Linux queusam o driver de som ALSA.
3adfa070 112
46baad44
JR
113%description -l ru.UTF-8
114Библиотека API для работы с драйвером ALSA.
d80db9f4 115
46baad44
JR
116%description -l uk.UTF-8
117Бібліотека API для роботи з драйвером ALSA.
d80db9f4 118
41a4a34e
JR
119%package devel
120Summary: Advanced Linux Sound Architecture (ALSA) - header files
caabf65a
ER
121Summary(es.UTF-8): Archivos de desarrollo de ALSA
122Summary(pl.UTF-8): Advanced Linux Sound Architecture (ALSA) - pliki nagłówkowe
123Summary(pt_BR.UTF-8): Arquivos de desenvolvimento do ALSA (Advanced Linux Sound Architecture)
124Summary(ru.UTF-8): Библиотека API для работы с драйвером ALSA - файлы программиста
125Summary(uk.UTF-8): Бібліотека API для роботи з драйвером ALSA - файли програміста
41a4a34e 126Group: Development/Libraries
9faa9534 127Requires: %{name} = %{version}-%{release}
53ca8a28
JB
128Obsoletes: alsa-devel < 0.9
129Obsoletes: alsa-lib-devel-doc < 0.9
12264fc6 130
41a4a34e
JR
131%description devel
132Advanced Linux Sound Architecture (ALSA) - header files.
133
46baad44 134%description devel -l es.UTF-8
3adfa070 135Este paquete contiene los archivos necesarios para compilar programas
136que usan la biblioteca del sistema ALSA. No es necesario instalarlo si
137lo que se desea es solamente ejecutar programas.
138
46baad44
JR
139%description devel -l pl.UTF-8
140Advanced Linux Sound Architecture (ALSA) - pliki nagłówkowe.
41a4a34e 141
46baad44
JR
142%description devel -l pt_BR.UTF-8
143Esse pacote contém os arquivos necessários para compilar programas que
144usam a biblioteca do ALSA. Não é necessário instalar esse pacote para
3adfa070 145apenas rodar programas.
146
46baad44
JR
147%description devel -l ru.UTF-8
148Библиотеки разработчика и хедера для библиотеки API для работы с
149драйвером ALSA.
d80db9f4 150
46baad44
JR
151%description devel -l uk.UTF-8
152Бібліотеки програміста та хедери для бібліотеки API для роботи з
153драйвером ALSA.
d80db9f4 154
41a4a34e 155%package static
285fe16b 156Summary: Advanced Linux Sound Architecture (ALSA) - static library
caabf65a
ER
157Summary(pl.UTF-8): Advanced Linux Sound Architecture (ALSA) - biblioteka statyczna
158Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com a alsa-lib
159Summary(ru.UTF-8): Статическая библиотека API для работы с драйвером ALSA
160Summary(uk.UTF-8): Статична бібліотека API для роботи з драйвером ALSA
41a4a34e 161Group: Development/Libraries
9faa9534 162Requires: %{name}-devel = %{version}-%{release}
41a4a34e
JR
163
164%description static
285fe16b 165Advanced Linux Sound Architecture (ALSA) - static library.
41a4a34e 166
46baad44 167%description static -l pl.UTF-8
285fe16b 168Advanced Linux Sound Architecture (ALSA) - biblioteka statyczna.
41a4a34e 169
46baad44
JR
170%description static -l pt_BR.UTF-8
171Bibliotecas estáticas para desenvolvimento com a alsa-lib
3adfa070 172
46baad44
JR
173%description static -l ru.UTF-8
174Статическая библиотека API для работы с драйвером ALSA.
d80db9f4 175
46baad44
JR
176%description static -l uk.UTF-8
177Статична бібліотека API для роботи з драйвером ALSA.
d80db9f4 178
3aa919aa
ER
179%package apidocs
180Summary: ALSA Library API documentation
cb10dc24 181Summary(pl.UTF-8): Dokumentacja API biblioteki ALSA
3aa919aa 182Group: Documentation
26b8a3c8 183BuildArch: noarch
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
936693db
JP
259tar xf %{SOURCE4} --strip-components=1 -C $RPM_BUILD_ROOT%{_datadir}/alsa alsa-topology-conf-%{topology_confver}/topology
260tar xf %{SOURCE5} --strip-components=1 -C $RPM_BUILD_ROOT%{_datadir}/alsa alsa-ucm-conf-%{ucm_confver}/ucm alsa-ucm-conf-%{ucm_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
df82ab7a 289%{_datadir}/alsa/ctl
f50a2c4c 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.168046 seconds and 4 git commands to generate.