]> git.pld-linux.org Git - packages/alsa-lib.git/blobdiff - alsa-lib.spec
- added bcond_without static_libs
[packages/alsa-lib.git] / alsa-lib.spec
index 8c821b37b12f392414976142911fc3824101cb79..475b378818fa3333771057ec89a22ecbb3e919dd 100644 (file)
@@ -1,3 +1,7 @@
+#
+# 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
@@ -5,13 +9,12 @@ Summary(pt_BR):       Biblioteca para o ALSA (Advanced Linux Sound Architecture)
 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
@@ -153,7 +156,6 @@ Bibliotecas est
 
 %prep
 %setup -q
-%patch0 -p1
 
 %build
 %{__libtoolize}
@@ -161,7 +163,8 @@ Bibliotecas est
 %{__autoconf}
 %{__automake}
 %configure \
-       --enable-static
+       --enable-static \
+       %{!?with_static_libs:--disable-static}
 
 %{__make}
 %{__make} doc
@@ -196,6 +199,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.045744 seconds and 4 git commands to generate.