]> git.pld-linux.org Git - packages/libast.git/commitdiff
- added bcond_without static_libs
authorwitekfl <witekfl@pld-linux.org>
Mon, 20 Aug 2007 13:34:36 +0000 (13:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    libast.spec -> 1.31

libast.spec

index a613fc83b70fac5626c40ab2ebf3af4384c66d4d..639601262821683be341d240dd9b953904678030 100644 (file)
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without static_libs     # don't build static library
+#
 Summary:       Library of Assorted Spiffy Things
 Summary(pl.UTF-8):     Biblioteka AST (Assorted Spiffy Things)
 Name:          libast
@@ -58,7 +62,8 @@ Biblioteki statyczne libast.
 
 %build
 cp -f /usr/share/automake/config.sub .
-%configure
+%configure \
+       %{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
@@ -87,6 +92,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/libast*
 %{_aclocaldir}/libast.m4
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libast.a
+%endif
This page took 0.035298 seconds and 4 git commands to generate.