X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=alsa-lib.spec;h=27e81277866447d6fded1db8c1c7a13f222ed2d6;hb=82bf787c691fa111bead24289be058c4cd978007;hp=9be676870a567bda213d6e79e8ee7c4a09b5d5bd;hpb=1cd026552182a740cdfb5e379681648402805fbf;p=packages%2Falsa-lib.git diff --git a/alsa-lib.spec b/alsa-lib.spec index 9be6768..64ff9d7 100644 --- a/alsa-lib.spec +++ b/alsa-lib.spec @@ -1,162 +1,304 @@ +# +# Conditional build: +%bcond_without static_libs # don't build static library +%bcond_without apidocs # do not build and package API docs +%bcond_without python # smixer-python binding +%bcond_with python2 # python 2.x instead of python 3.x for smixer pymodules +%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.3.0pre4 +Version: 1.1.6 Release: 1 -Copyright: GPL -Vendor: Jaroslav Kysela -Group: System/Libraries -Group(pl): System/Biblioteki -Source: ftp://alsa.jcu.cz/pub/lib/%{name}-%{version}.tar.gz -URL: http://alsa.jcu.cz/ -BuildRoot: /tmp/%{name}-%{version}-root -Requires: alsa-driver +License: LGPL v2.1+ +Group: Libraries +Source0: ftp://ftp.alsa-project.org/pub/lib/%{name}-%{version}.tar.bz2 +# Source0-md5: 2f981a8f7897c59ec2ddc44916d33788 +Source1: %{name}-modprobe.conf +Source2: %{name}-asound.conf +Source3: smixer.conf +URL: http://www.alsa-project.org/ +BuildRequires: autoconf >= 2.59 +BuildRequires: automake +BuildRequires: doxygen +BuildRequires: libtool >= 1.4 +%if %{with python} +%if %{with python2} +BuildRequires: python-devel >= 1:2.4 +BuildRequires: python-modules >= 1:2.4 +%else +BuildRequires: python3-devel >= 1:3.2 +BuildRequires: python3-modules >= 1:3.2 +%endif +%{?with_resmgr:BuildRequires: resmgr-devel} +BuildConflicts: alsa-lib <= 0.4.0 +Obsoletes: alsa-libs +Conflicts: alsa-utils < 1.0.20-3 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Advanced Linux Sound Architecture (ALSA) - Library -Features -======== -* general - - modularized architecture with support for 2.0 and latest 2.1 kernels - - support for versioned and exported symbols - - full proc filesystem support - /proc/sound -* ISA soundcards - - 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 -* 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 -* OSS/Lite compatibility - - full mixer compatibity - - full PCM (/dev/dsp) compatibility - -%description -l pl +Features: +- general + - modularized architecture + - support for versioned and exported symbols + - full proc filesystem support - /proc/sound +- ISA soundcards + - 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 +- 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 +- OSS/Lite compatibility + - full mixer compatibity + - full PCM (/dev/dsp) compatibility + +%description -l pl.UTF-8 Advanced Linux Sound Architecture (ALSA) - Biblioteka -Nowinki -======= -* generalne - - zmodularyzowana architektura ze wsparciem dla kerneli 2.0 jak i 2.1 - - pe³ne wsparcie dla systemu plików proc - /proc/sound -* karty d¼wiêkowe ISA - - wsparcie dla buforu 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 -* 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) +Możliwości: +- generalne + - 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 + - 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ł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: Header files fo ALSA library -Summary(pl): Pliki nag³owkowe do biblioteki ALSA +Summary: Advanced Linux Sound Architecture (ALSA) - header files +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(pl): Programowanie/Biblioteki -Requires: %{name} = %{version} +Requires: %{name} = %{version}-%{release} +Obsoletes: alsa-devel +Obsoletes: alsa-lib-devel-doc %description devel -Header files fo ALSA library. +Advanced Linux Sound Architecture (ALSA) - header files. -%description -l pl devel -Pliki nag³owkowe do biblioteki ALSA. +%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(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 apidocs +Summary: ALSA Library API documentation +Summary(pl.UTF-8): Dokumentacja API biblioteki ALSA +Group: Documentation +%if "%{_rpmversion}" >= "5" +BuildArch: noarch +%endif + +%description apidocs +API and internal documentation for ALSA Library. + +%description apidocs -l pl.UTF-8 +Dokumentacja API biblioteki 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 +%setup -q +cp -p %{SOURCE3} src/conf %build -CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \ -./configure %{_target} \ - --prefix=/usr -make +%{__libtoolize} +%{__aclocal} -I m4 +%{__autoconf} +%{__autoheader} +%{__automake} +configure_opts="\ + --disable-silent-rules \ + %{!?with_python:--disable-python} \ + %{?with_python2:--enable-python2} \ + %{?with_resmgr:--enable-resmgr} \ + --enable-mixer-modules \ + --enable-mixer-pymods +" -%install -rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT/usr/{include/sys,lib} +%if %{with static_libs} +install -d build-static +cd build-static +../%configure $configure_opts \ + --disable-shared \ + --enable-static +%{__make} +cd .. +%endif -make prefix=$RPM_BUILD_ROOT/usr install +install -d build-shared +cd build-shared +../%configure $configure_opts \ + --enable-shared \ + --disable-static -gzip -9nf ChangeLog doc/*.txt +%{__make} +%{?with_apidocs:%{__make} doc} +cd .. -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{/%{_lib},%{_sysconfdir}/alsa,/etc/modprobe.d} -%files -%attr(755,root,root) /usr/lib/lib*.so.*.* +%if %{with static_libs} +%{__make} -C build-static/src install-libLTLIBRARIES \ + DESTDIR=$RPM_BUILD_ROOT +%endif -%files devel -%defattr(644,root,root,755) -%doc *.gz doc/*.gz +%{__make} -C build-shared install \ + DESTDIR=$RPM_BUILD_ROOT -%attr(755,root,root) /usr/lib/lib*.so -%attr(644,root,root) /usr/include/sys/*.h +%{__mv} $RPM_BUILD_ROOT%{_libdir}/libasound.so.* $RPM_BUILD_ROOT/%{_lib} +%{__rm} $RPM_BUILD_ROOT%{_libdir}/libasound.so +ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib}; echo libasound.so.*.*) \ + $RPM_BUILD_ROOT%{_libdir}/libasound.so -%files static -%attr(644,root,root) /usr/lib/lib*.a +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%{_sysconfdir}/asound.conf + +%{__rm} $RPM_BUILD_ROOT%{_libdir}/alsa-lib/smixer/*.la %clean rm -rf $RPM_BUILD_ROOT -%changelog -* Sat Feb 27 1999 Tomasz K³oczko - [0.3.0pre4-1] -- added CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" to configure enviroment, -- changed Group in static to Development/Libraries, -- removed "Prereq: /sbin/ldconfig" - it is generated automatically, -- added devel subpackage. - -* Wed Jan 21 1999 Arkadiusz Mi¶kiewicz - [0.3.0pre3-1d] -- new upstream release +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig -* Sat Jan 02 1999 Arkadiusz Mi¶kiewicz - [0.3.0pre2-1d] -- new upstream release - -* Thu Nov 12 1998 Arkadiusz Mi¶kiewicz -- new upstream release (0.1.3) +%files +%defattr(644,root,root,755) +%doc doc/asoundrc.txt +%attr(755,root,root) %{_bindir}/aserver +%attr(755,root,root) /%{_lib}/libasound.so.*.*.* +%attr(755,root,root) %ghost /%{_lib}/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 +%dir %{_sysconfdir}/alsa +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asound.conf +%config(noreplace) %verify(not md5 mtime size) /etc/modprobe.d/alsa-base.conf -* Fri Nov 06 1998 Arkadiusz Mi¶kiewicz -- new upstream release +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libasound.so +%{_libdir}/libasound.la +%{_includedir}/sys/asoundlib.h +%{_includedir}/alsa +%{_aclocaldir}/alsa.m4 +%{_pkgconfigdir}/alsa.pc -* Mon Sep 28 1998 Arkadiusz Mi¶kiewicz -- changed "-" to "_" (rpm doesn't like "-" in Name or Version) +%if %{with static_libs} +%files static +%defattr(644,root,root,755) +%{_libdir}/libasound.a +%endif -* Sun Sep 27 1998 Arkadiusz Mi¶kiewicz -- added Polish translations -- rewrited spec file +%if %{with apidocs} +%files apidocs +%defattr(644,root,root,755) +%doc build-shared/doc/doxygen/html/* +%endif -* Mon May 28 1998 Helge Jensen -- Made SPEC file +%if %{with python} +%files smixer-python +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/alsa-lib/smixer/smixer-python.so +%endif