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