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