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