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