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