From: witekfl Date: Tue, 28 Jun 2005 15:24:29 +0000 (+0000) Subject: - added bcond_without static_libs X-Git-Tag: auto/ac/alsa-lib-1_0_9-1~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Falsa-lib.git;a=commitdiff_plain;h=9a7772e244e21677891154d95760d05999459cfc - added bcond_without static_libs Changed files: alsa-lib.spec -> 1.115 --- diff --git a/alsa-lib.spec b/alsa-lib.spec index d845141..475b378 100644 --- a/alsa-lib.spec +++ b/alsa-lib.spec @@ -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 @@ -159,7 +163,8 @@ Bibliotecas est %{__autoconf} %{__automake} %configure \ - --enable-static + --enable-static \ + %{!?with_static_libs:--disable-static} %{__make} %{__make} doc @@ -194,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