+#
+# 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(pl): Advanced Linux Sound Architecture (ALSA) - Biblioteka
Summary(ru): âÉÂÌÉÏÔÅËÁ API ÄÌÑ ÒÁÂÏÔÙ Ó ÄÒÁÊ×ÅÒÏÍ ALSA
Summary(uk): â¦Â̦ÏÔÅËÁ API ÄÌÑ ÒÏÂÏÔÉ Ú ÄÒÁÊ×ÅÒÏÍ ALSA
Name: alsa-lib
-Version: 1.0.8
-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: c677299ed39d069c9a4b6a999e34ffe7
-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