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