]> git.pld-linux.org Git - packages/alsa-lib.git/blobdiff - alsa-lib.spec
- updated to 1.0.12
[packages/alsa-lib.git] / alsa-lib.spec
index 130d9a9ba2c6c8f222f45abacf465b3c04d94b40..5278b9f987db05e16ea8502c3f33fb6270c716b3 100644 (file)
@@ -1,19 +1,24 @@
+#
+# Conditional build:
+%bcond_without static_libs     # don't build static library
+#
 Summary:       Advanced Linux Sound Architecture (ALSA) - Library
-Summary(es):   Biblioteca para ALSA (Advanced Linux Sound Architecture)
+Summary(es):   Advanced Linux Sound Architecture (ALSA) - Biblioteca
 Summary(pl):   Advanced Linux Sound Architecture (ALSA) - Biblioteka
 Summary(pt_BR):        Biblioteca para o ALSA (Advanced Linux Sound Architecture)
 Summary(ru):   âÉÂÌÉÏÔÅËÁ API ÄÌÑ ÒÁÂÏÔÙ Ó ÄÒÁÊ×ÅÒÏÍ ALSA
 Summary(uk):   â¦Â̦ÏÔÅËÁ API ÄÌÑ ÒÏÂÏÔÉ Ú ÄÒÁÊ×ÅÒÏÍ ALSA
 Name:          alsa-lib
-Version:       0.9.7
-Release:       2
+Version:       1.0.12
+Release:       1
 License:       LGPL
 Group:         Libraries
 Source0:       ftp://ftp.alsa-project.org/pub/lib/%{name}-%{version}.tar.bz2
-# Source0-md5: a87abc76f6201f4ce38ebc2ff1076a44
-Patch0:                alsa-lib-bluezsco.patch
+# Source0-md5: d351d46c5e415d4c8448487737939c72
 URL:           http://www.alsa-project.org/
 BuildRequires: alsa-driver-devel
+BuildRequires: autoconf
+BuildRequires: automake
 BuildRequires: doxygen
 BuildRequires: flex
 BuildRequires: libstdc++-devel
@@ -23,67 +28,60 @@ BuildConflicts:     alsa-lib <= 0.4.0
 Obsoletes:     alsa-libs
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _sysconfdir     /etc
-
 %description
 Advanced Linux Sound Architecture (ALSA) - Library
 
 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
-
-%description -l es
-Bibliotecas para el sistema de sonido ALSA. Este paquete se necesita
-para ejecutar programas Linux que usan el programa de control de
-sonido ALSA.
+       - full mixer compatibity
+       - full PCM (/dev/dsp) compatibility
 
 %description -l pl
 Advanced Linux Sound Architecture (ALSA) - Biblioteka
 
 Mo¿liwo¶ci:
 - generalne
-  - zmodularyzowana architektura ze wsparciem dla j±der 2.2
-  - pe³ne wsparcie dla systemu plików proc - /proc/sound
+       - zmodularyzowana architektura
+       - pe³ne wsparcie dla systemu plików proc - /proc/sound
 - karty d¼wiêkowe ISA
-  - obs³uga bufora 128k ISA DMA
+       - 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æ
+       - 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
+       - 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)
+       - pe³na kompatybilno¶æ miksera
+       - pe³na kompatybilno¶æ PCM (/dev/dsp)
 
 %description -l pt_BR
 Bibliotecas para o ALSA. Esse pacote é necessário para rodar programas
@@ -97,13 +95,13 @@ Linux queusam o driver de som ALSA.
 
 %package devel
 Summary:       Advanced Linux Sound Architecture (ALSA) - header files
-Summary(es):   Archivos de desarrollo de ALSA (Advanced Linux Sound Architecture)
+Summary(es):   Archivos de desarrollo de ALSA
 Summary(pl):   Advanced Linux Sound Architecture (ALSA) - pliki nag³ówkowe
 Summary(pt_BR):        Arquivos de desenvolvimento do ALSA (Advanced Linux Sound Architecture)
 Summary(ru):   âÉÂÌÉÏÔÅËÁ API ÄÌÑ ÒÁÂÏÔÙ Ó ÄÒÁÊ×ÅÒÏÍ ALSA - ÆÁÊÌÙ ÐÒÏÇÒÁÍÍÉÓÔÁ
 Summary(uk):   â¦Â̦ÏÔÅËÁ API ÄÌÑ ÒÏÂÏÔÉ Ú ÄÒÁÊ×ÅÒÏÍ ALSA - ÆÁÊÌÉ ÐÒÏÇÒÁͦÓÔÁ
 Group:         Development/Libraries
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}-%{release}
 Requires:      alsa-driver-devel
 Obsoletes:     alsa-devel
 Obsoletes:     alsa-lib-devel-doc
@@ -139,7 +137,7 @@ Summary(pt_BR):     Bibliotecas est
 Summary(ru):   óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ API ÄÌÑ ÒÁÂÏÔÙ Ó ÄÒÁÊ×ÅÒÏÍ ALSA
 Summary(uk):   óÔÁÔÉÞÎÁ Â¦Â̦ÏÔÅËÁ API ÄÌÑ ÒÏÂÏÔÉ Ú ÄÒÁÊ×ÅÒÏÍ ALSA
 Group:         Development/Libraries
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 Advanced Linux Sound Architecture (ALSA) - static library.
@@ -158,7 +156,6 @@ Bibliotecas est
 
 %prep
 %setup -q
-%patch0 -p1
 
 %build
 %{__libtoolize}
@@ -166,7 +163,8 @@ Bibliotecas est
 %{__autoconf}
 %{__automake}
 %configure \
-       --enable-static
+       --enable-static \
+       %{!?with_static_libs:--disable-static}
 
 %{__make}
 %{__make} doc
@@ -179,6 +177,8 @@ rm -rf $RPM_BUILD_ROOT
 
 install -D utils/alsa.m4 $RPM_BUILD_ROOT%{_aclocaldir}/alsa.m4
 
+rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/smixer/*.{a,la}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -189,6 +189,9 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) %{_libdir}/lib*.so.*.*
+%dir %{_libdir}/alsa-lib
+%dir %{_libdir}/alsa-lib/smixer
+%attr(755,root,root) %{_libdir}/alsa-lib/smixer/smixer-*.so
 %{_datadir}/alsa
 
 %files devel
@@ -201,6 +204,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/alsa
 %{_pkgconfigdir}/*.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+%endif
This page took 0.090098 seconds and 4 git commands to generate.