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