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