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