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