#
-# TODO:
-# - track this bug - alsasink in gstreamer isn't working
-# https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=0000116
+# Conditional build:
+%bcond_without static_libs # don't build static library
#
Summary: Advanced Linux Sound Architecture (ALSA) - Library
Summary(es): Advanced Linux Sound Architecture (ALSA) - Biblioteca
Summary(ru): âÉÂÌÉÏÔÅËÁ API ÄÌÑ ÒÁÂÏÔÙ Ó ÄÒÁÊ×ÅÒÏÍ ALSA
Summary(uk): â¦Â̦ÏÔÅËÁ API ÄÌÑ ÒÏÂÏÔÉ Ú ÄÒÁÊ×ÅÒÏÍ ALSA
Name: alsa-lib
-Version: 1.0.7
-Release: 1
+Version: 1.0.9
+Release: 0.1
License: LGPL
Group: Libraries
Source0: ftp://ftp.alsa-project.org/pub/lib/%{name}-%{version}.tar.bz2
-# Source0-md5: 34ceaac0d1f0fc2b1462cef7c3a6825e
-Patch0: %{name}-alpha.patch
+# Source0-md5: 114af3304619920ffe2b147b760700b9
URL: http://www.alsa-project.org/
BuildRequires: alsa-driver-devel
BuildRequires: autoconf
%prep
%setup -q
-%patch0 -p1
%build
%{__libtoolize}
%{__autoconf}
%{__automake}
%configure \
- --enable-static
+ --enable-static \
+ %{!?with_static_libs:--disable-static}
%{__make}
%{__make} doc
%{_includedir}/alsa
%{_pkgconfigdir}/*.pc
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/lib*.a
+%endif