]> git.pld-linux.org Git - packages/alsa-lib.git/commitdiff
- added bcond_without static_libs
authorwitekfl <witekfl@pld-linux.org>
Tue, 28 Jun 2005 15:24:29 +0000 (15:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    alsa-lib.spec -> 1.115

alsa-lib.spec

index d84514134f91367e71559af0cd1faee621506247..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
 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 \
 %{__autoconf}
 %{__automake}
 %configure \
-       --enable-static
+       --enable-static \
+       %{!?with_static_libs:--disable-static}
 
 %{__make}
 %{__make} doc
 
 %{__make}
 %{__make} doc
@@ -194,6 +199,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/alsa
 %{_pkgconfigdir}/*.pc
 
 %{_includedir}/alsa
 %{_pkgconfigdir}/*.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+%endif
This page took 0.108712 seconds and 4 git commands to generate.