X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=alsa-lib.spec;h=7c270eab0a074668a9ea2521ee47a96fdf3fd808;hb=860ccf73131b4ae851579f46160f7ba7389eaa49;hp=7643f88809221b225cb2452f8959062d6dca610f;hpb=98fda95c3f7fdba8999fc6e1f171383994f10944;p=packages%2Falsa-lib.git diff --git a/alsa-lib.spec b/alsa-lib.spec index 7643f88..7c270ea 100644 --- a/alsa-lib.spec +++ b/alsa-lib.spec @@ -1,132 +1,176 @@ +# +# 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(ru): âÉÂÌÉÏÔÅËÁ API ÄÌÑ ÒÁÂÏÔÙ Ó ÄÒÁÊ×ÅÒÏÍ ALSA -Summary(uk): â¦Â̦ÏÔÅËÁ API ÄÌÑ ÒÏÂÏÔÉ Ú ÄÒÁÊ×ÅÒÏÍ ALSA +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.9.2 +Version: 1.0.22 Release: 1 -License: GPL +License: LGPL v2.1+ Group: Libraries Source0: ftp://ftp.alsa-project.org/pub/lib/%{name}-%{version}.tar.bz2 +# Source0-md5: b28a12348905fb6915bc41f0edb2ecce +Source1: %{name}-modprobe.conf +Source2: %{name}-asound.conf URL: http://www.alsa-project.org/ BuildRequires: alsa-driver-devel +BuildRequires: autoconf >= 2.59 +BuildRequires: automake BuildRequires: doxygen -BuildRequires: flex -BuildRequires: libstdc++-devel BuildRequires: libtool -BuildRequires: ncurses-devel +%if %{with python} +BuildRequires: python-devel >= 1:2.4 +BuildRequires: python-modules +%endif +%{?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 j±der 2.2 - - pe³ne wsparcie dla systemu plików proc - /proc/sound -- karty d¼wiêkowe ISA - - wsparcie dla bufora 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 wyciszania (oraz sprzêtowego wyciszania) - - wsparcie dla zdarzeñ miksera - - to pozwala dwum lub wiêkszej liczbie aplikacji siê synchronizowaæ + - 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 -âÉÂÌÉÏÔÅËÁ API ÄÌÑ ÒÁÂÏÔÙ Ó ÄÒÁÊ×ÅÒÏÍ ALSA. +%description -l ru.UTF-8 +Библиотека API для работы с драйвером ALSA. -%description -l uk -â¦Â̦ÏÔÅËÁ 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(ru): âÉÂÌÉÏÔÅËÁ API ÄÌÑ ÒÁÂÏÔÙ Ó ÄÒÁÊ×ÅÒÏÍ ALSA - ÆÁÊÌÙ ÐÒÏÇÒÁÍÍÉÓÔÁ -Summary(uk): â¦Â̦ÏÔÅËÁ API ÄÌÑ ÒÏÂÏÔÉ Ú ÄÒÁÊ×ÅÒÏÍ ALSA - ÆÁÊÌÉ ÐÒÏÇÒÁͦÓÔÁ +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 -Requires: %{name} = %{version} +Requires: %{name} = %{version}-%{release} Requires: alsa-driver-devel -Obsoletes: alsa-lib-devel-doc Obsoletes: alsa-devel +Obsoletes: alsa-lib-devel-doc %description devel Advanced Linux Sound Architecture (ALSA) - header files. -%description devel -l pl -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 ru -âÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ É ÈÅÄÅÒÁ ÄÌÑ ÂÉÂÌÉÏÔÅËÉ API ÄÌÑ ÒÁÂÏÔÙ Ó -ÄÒÁÊ×ÅÒÏÍ ALSA. +%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 uk -â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÔÁ ÈÅÄÅÒÉ ÄÌÑ Â¦Â̦ÏÔÅËÉ API ÄÌÑ ÒÏÂÏÔÉ Ú -ÄÒÁÊ×ÅÒÏÍ ALSA. +%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(ru): óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ API ÄÌÑ ÒÁÂÏÔÙ Ó ÄÒÁÊ×ÅÒÏÍ ALSA -Summary(uk): óÔÁÔÉÞÎÁ ¦Â̦ÏÔÅËÁ API ÄÌÑ ÒÏÂÏÔÉ Ú ÄÒÁÊ×ÅÒÏÍ ALSA +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 -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 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 pl -Advanced Linux Sound Architecture (ALSA) - Biblioteka statyczna. +%description static -l uk.UTF-8 +Статична бібліотека API для роботи з драйвером ALSA. -%description static -l ru -óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ 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 static -l uk -óÔÁÔÉÞÎÁ ¦Â̦ÏÔÅËÁ API ÄÌÑ ÒÏÂÏÔÉ Ú ÄÒÁÊ×ÅÒÏÍ ALSA. +%description smixer-python -l pl.UTF-8 +Moduł wiązania Pythona dla interfejsu miksera architektury ALSA. %prep %setup -q @@ -135,21 +179,30 @@ Advanced Linux Sound Architecture (ALSA) - Biblioteka statyczna. %{__libtoolize} %{__aclocal} %{__autoconf} +%{__autoheader} %{__automake} %configure \ - --enable-static - + --enable-static \ + %{!?with_python:--disable-python} \ + %{?with_resmgr:--enable-resmgr} \ + %{!?with_static_libs:--disable-static} + %{__make} %{__make} doc %install rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT/etc/{alsa,modprobe.d} + %{__make} install \ DESTDIR=$RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT/%{_aclocaldir} -cp utils/alsa.m4 $RPM_BUILD_ROOT/%{_aclocaldir} +install -D utils/alsa.m4 $RPM_BUILD_ROOT%{_aclocaldir}/alsa.m4 +install %{SOURCE1} $RPM_BUILD_ROOT/etc/modprobe.d/alsa-base.conf +install %{SOURCE2} $RPM_BUILD_ROOT/etc/asound.conf + +rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/smixer/*.{a,la} %clean rm -rf $RPM_BUILD_ROOT @@ -159,20 +212,38 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%attr(755,root,root) %{_libdir}/lib*.so.*.* -%attr(755,root,root) %{_bindir}/* +%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 +%{_sysconfdir}/alsa +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asound.conf +%attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/modprobe.d/alsa-base.conf %files devel %defattr(644,root,root,755) %doc doc/doxygen/html/* -%attr(755,root,root) %{_libdir}/lib*.so -%{_libdir}/lib*.la -%{_aclocaldir}/alsa.m4 -%{_includedir}/sys/*.h +%attr(755,root,root) %{_libdir}/libasound.so +%{_libdir}/libasound.la +%{_includedir}/sys/asoundlib.h %{_includedir}/alsa -%{_pkgconfigdir}/*.pc +%{_aclocaldir}/alsa.m4 +%{_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