From 9a7772e244e21677891154d95760d05999459cfc Mon Sep 17 00:00:00 2001 From: witekfl Date: Tue, 28 Jun 2005 15:24:29 +0000 Subject: [PATCH] - added bcond_without static_libs Changed files: alsa-lib.spec -> 1.115 --- alsa-lib.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- 2.43.0