X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=alsa-lib.spec;h=c2b8c2d014ff3f0c419addf80ab1b2678ac5915a;hb=e175bf4b864ea2d0943db2c989629fbb5bb5a92b;hp=b750d04703a7340a9feddaa94b6666c18e8b16da;hpb=66106bc7cfcfc9fde4765ee7afa2500f21d0b478;p=packages%2Falsa-lib.git diff --git a/alsa-lib.spec b/alsa-lib.spec index b750d04..c2b8c2d 100644 --- a/alsa-lib.spec +++ b/alsa-lib.spec @@ -1,144 +1,237 @@ +# +# Conditional build: +%bcond_without static_libs # don't build static library +%bcond_without python # smixer-python binding +%bcond_with resmgr # Resource Manager support +# Summary: Advanced Linux Sound Architecture (ALSA) - Library -Summary(pl): Advanced Linux Sound Architecture (ALSA) - Biblioteka +Summary(es.UTF-8): Advanced Linux Sound Architecture (ALSA) - Biblioteca +Summary(pl.UTF-8): Advanced Linux Sound Architecture (ALSA) - Biblioteka +Summary(pt_BR.UTF-8): Biblioteca para o ALSA (Advanced Linux Sound Architecture) +Summary(ru.UTF-8): Библиотека API для работы с драйвером ALSA +Summary(uk.UTF-8): Бібліотека API для роботи з драйвером ALSA Name: alsa-lib -Version: 0.5.9 -Release: 3 -License: GPL +Version: 1.0.16 +Release: 1 +License: LGPL v2.1+ Group: Libraries -Group(fr): Librairies -Group(pl): Biblioteki Source0: ftp://ftp.alsa-project.org/pub/lib/%{name}-%{version}.tar.bz2 +# Source0-md5: 73b0986758bb762648a5fafc93e287c1 URL: http://www.alsa-project.org/ -BuildRequires: libstdc++-devel -BuildRequires: ncurses-devel -BuildRequires: autoconf +BuildRequires: alsa-driver-devel +BuildRequires: autoconf >= 2.59 BuildRequires: automake -BuildRequires: flex +BuildRequires: doxygen BuildRequires: libtool +%{?with_python:BuildRequires: python-devel >= 1:2.5.1-5} +%{?with_resmgr:BuildRequires: resmgr-devel} BuildConflicts: alsa-lib <= 0.4.0 Obsoletes: alsa-libs -ExcludeArch: sparc -ExcludeArch: sparc64 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _sysconfdir /etc - %description Advanced Linux Sound Architecture (ALSA) - Library -Features ======== +Features: - general - - modularized architecture with support for 2.2 - - support for versioned and exported symbols - - full proc filesystem support - /proc/sound + - modularized architecture + - support for versioned and exported symbols + - full proc filesystem support - /proc/sound - ISA soundcards - - support for 128k ISA DMA buffer + - support for 128k ISA DMA buffer - mixer - - new enhanced API for applications - - support for unlimited number of channels - - volume can be set in three ways (percentual (0-100), exact and - decibel) - - support for mute (and hardware mute if hardware supports it) - - support for mixer events - - this allows two or more applications to be synchronized + - new enhanced API for applications + - support for unlimited number of channels + - volume can be set in three ways (percentual (0-100), exact and + decibel) + - support for mute (and hardware mute if hardware supports it) + - support for mixer events + - this allows two or more applications to be synchronized - digital audio (PCM) - - new enhanced API for applications - - full real duplex support - - full duplex support for SoundBlaster 16/AWE soundcards - - digital audio data for playback and record should be read back using - proc filesystem + - new enhanced API for applications + - full real duplex support + - full duplex support for SoundBlaster 16/AWE soundcards + - digital audio data for playback and record should be read back using + proc filesystem - OSS/Lite compatibility - - full mixer compatibity - - full PCM (/dev/dsp) compatibility + - full mixer compatibity + - full PCM (/dev/dsp) compatibility -%description -l pl +%description -l pl.UTF-8 Advanced Linux Sound Architecture (ALSA) - Biblioteka -Nowinki ======= +Możliwości: - generalne - - zmodularyzowana architektura ze wsparciem dla kerneli 2.2 - - pe³ne wsparcie dla systemu plików proc - /proc/sound -- karty d¼wiêkowe ISA - - wsparcie dla buforu 128k ISA DMA + - zmodularyzowana architektura + - pełne wsparcie dla systemu plików proc - /proc/sound +- karty dźwiękowe ISA + - obsługa bufora 128k ISA DMA - mikser - - nowe rozszerzone API dla aplikacji - - wsparcie dla nielimitowanej liczby kana³ów - - g³o¶no¶æ mo¿e byæ ustawiana na trzy ró¿ne sposoby (procentowo - (0-100), liniowo oraz w skali decybelowej) - - wsparcie dla mute (oraz dla sprzêtowego mute) - - wsparcie dla zdarzeñ miksera - - to pozwala dwum lub wiêkszej liczbie aplikacji siê synchronizowac + - nowe rozszerzone API dla aplikacji + - obsługa nielimitowanej liczby kanałów + - głośność może być ustawiana na trzy różne sposoby (procentowo + (0-100), liniowo oraz w skali decybelowej) + - obsługa wyciszania (oraz sprzętowego wyciszania) + - obsługa zdarzeń miksera + - to pozwala dwum lub większej liczbie aplikacji się synchronizować - cyfrowe audio (PCM) - - nowe rozszerzone API dla aplikacji - - pe³ne realne wsparcie dla trybu duplex - - dane cyfrowego d¼wiêku dla odtwarzania i nagrywania powinny byæ - odczytywane poprzez system plików /proc -- kompatybilno¶æ z OSS/Lite - - pe³na kompatybilno¶æ miksera - - pe³na kompatybilno¶æ PCM (/dev/dsp) + - nowe rozszerzone API dla aplikacji + - pełna, prawdziwa obsługa trybu duplex + - pełna obsługa trybu duplex dla kart SoundBlaster 16/AWE + - dane cyfrowego dźwięku dla odtwarzania i nagrywania powinny być + odczytywane poprzez system plików /proc +- kompatybilność z OSS/Lite + - pełna kompatybilność miksera + - pełna kompatybilność PCM (/dev/dsp) + +%description -l pt_BR.UTF-8 +Bibliotecas para o ALSA. Esse pacote é necessário para rodar programas +Linux queusam o driver de som ALSA. + +%description -l ru.UTF-8 +Библиотека API для работы с драйвером ALSA. + +%description -l uk.UTF-8 +Бібліотека API для роботи з драйвером ALSA. %package devel Summary: Advanced Linux Sound Architecture (ALSA) - header files -Summary(pl): Advanced Linux Sound Architecture (ALSA) - pliki nag³ówkowe +Summary(es.UTF-8): Archivos de desarrollo de ALSA +Summary(pl.UTF-8): Advanced Linux Sound Architecture (ALSA) - pliki nagłówkowe +Summary(pt_BR.UTF-8): Arquivos de desenvolvimento do ALSA (Advanced Linux Sound Architecture) +Summary(ru.UTF-8): Библиотека API для работы с драйвером ALSA - файлы программиста +Summary(uk.UTF-8): Бібліотека API для роботи з драйвером ALSA - файли програміста Group: Development/Libraries -Group(fr): Development/Librairies -Group(pl): Programowanie/Biblioteki -Requires: %{name} = %{version} - +Requires: %{name} = %{version}-%{release} +Requires: alsa-driver-devel +Obsoletes: alsa-devel +Obsoletes: alsa-lib-devel-doc + %description devel Advanced Linux Sound Architecture (ALSA) - header files. -%description -l pl devel -Advanced Linux Sound Architecture (ALSA) - pliki nag³ówkowe. +%description devel -l es.UTF-8 +Este paquete contiene los archivos necesarios para compilar programas +que usan la biblioteca del sistema ALSA. No es necesario instalarlo si +lo que se desea es solamente ejecutar programas. + +%description devel -l pl.UTF-8 +Advanced Linux Sound Architecture (ALSA) - pliki nagłówkowe. + +%description devel -l pt_BR.UTF-8 +Esse pacote contém os arquivos necessários para compilar programas que +usam a biblioteca do ALSA. Não é necessário instalar esse pacote para +apenas rodar programas. + +%description devel -l ru.UTF-8 +Библиотеки разработчика и хедера для библиотеки API для работы с +драйвером ALSA. + +%description devel -l uk.UTF-8 +Бібліотеки програміста та хедери для бібліотеки API для роботи з +драйвером ALSA. %package static -Summary: Advanced Linux Sound Architecture (ALSA) - Static library -Summary(pl): Advanced Linux Sound Architecture (ALSA) - Biblioteka statyczna +Summary: Advanced Linux Sound Architecture (ALSA) - static library +Summary(pl.UTF-8): Advanced Linux Sound Architecture (ALSA) - biblioteka statyczna +Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com a alsa-lib +Summary(ru.UTF-8): Статическая библиотека API для работы с драйвером ALSA +Summary(uk.UTF-8): Статична бібліотека API для роботи з драйвером ALSA Group: Development/Libraries -Group(fr): Development/Librairies -Group(pl): Programowanie/Biblioteki -Requires: %{name}-devel = %{version} +Requires: %{name}-devel = %{version}-%{release} %description static -Advanced Linux Sound Architecture (ALSA) - Static library. +Advanced Linux Sound Architecture (ALSA) - static library. + +%description static -l pl.UTF-8 +Advanced Linux Sound Architecture (ALSA) - biblioteka statyczna. -%description -l pl static -Advanced Linux Sound Architecture (ALSA) - Biblioteka statyczna. +%description static -l pt_BR.UTF-8 +Bibliotecas estáticas para desenvolvimento com a alsa-lib + +%description static -l ru.UTF-8 +Статическая библиотека API для работы с драйвером ALSA. + +%description static -l uk.UTF-8 +Статична бібліотека API для роботи з драйвером ALSA. + +%package smixer-python +Summary: Python binding module for ALSA Mixer Interface +Summary(pl.UTF-8): Moduł wiązania Pythona dla interfejsu miksera architektury ALSA +Group: Libraries +Requires: %{name} = %{version}-%{release} + +%description smixer-python +Python binding module for ALSA Mixer Interface. + +%description smixer-python -l pl.UTF-8 +Moduł wiązania Pythona dla interfejsu miksera architektury ALSA. %prep %setup -q %build -LDFLAGS="-s"; export LDFLAGS -%configure +%{__libtoolize} +%{__aclocal} +%{__autoconf} +%{__autoheader} +%{__automake} +%configure \ + --enable-static \ + %{!?with_python:--disable-python} \ + %{?with_resmgr:--enable-resmgr} \ + %{!?with_static_libs:--disable-static} + %{__make} +%{__make} doc %install rm -rf $RPM_BUILD_ROOT -%{__make} install DESTDIR=$RPM_BUILD_ROOT -strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.* +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT -gzip -9nf ChangeLog +install -D utils/alsa.m4 $RPM_BUILD_ROOT%{_aclocaldir}/alsa.m4 -%post -p /sbin/ldconfig -%preun -p /sbin/ldconfig +rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/smixer/*.{a,la} %clean rm -rf $RPM_BUILD_ROOT +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + %files %defattr(644,root,root,755) -%attr(755,root,root) %{_libdir}/lib*.so.*.* +%doc doc/asoundrc.txt +%attr(755,root,root) %{_bindir}/aserver +%attr(755,root,root) %{_libdir}/libasound.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libasound.so.2 +%dir %{_libdir}/alsa-lib +%dir %{_libdir}/alsa-lib/smixer +%attr(755,root,root) %{_libdir}/alsa-lib/smixer/smixer-ac97.so +%attr(755,root,root) %{_libdir}/alsa-lib/smixer/smixer-hda.so +%attr(755,root,root) %{_libdir}/alsa-lib/smixer/smixer-sbase.so +%{_datadir}/alsa %files devel %defattr(644,root,root,755) -%doc *.gz -%attr(755,root,root) %{_libdir}/lib*.so -%attr(755,root,root) %{_libdir}/lib*.la +%doc doc/doxygen/html/* +%attr(755,root,root) %{_libdir}/libasound.so +%{_libdir}/libasound.la +%{_includedir}/sys/asoundlib.h +%{_includedir}/alsa %{_aclocaldir}/alsa.m4 -%{_includedir}/sys/*.h +%{_pkgconfigdir}/alsa.pc +%if %{with static_libs} %files static %defattr(644,root,root,755) -%{_libdir}/lib*.a +%{_libdir}/libasound.a +%endif + +%if %{with python} +%files smixer-python +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/alsa-lib/smixer/smixer-python.so +%endif