]> git.pld-linux.org Git - packages/aalib.git/commitdiff
-added bcond_without static_libs
authorwitekfl <witekfl@pld-linux.org>
Sat, 21 Jul 2007 19:03:24 +0000 (19:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    aalib.spec -> 1.80

aalib.spec

index dd5afc2d3e87f427ddbf14bd5700ad4807911c48..d97788fa2dcedc11926fe981d55bdb02b200b8c1 100644 (file)
@@ -1,3 +1,6 @@
+# Conditional build:
+%bcond_without static_libs     # don't build static library
+#
 Summary:       An ASCII art GFX library
 Summary(fr.UTF-8):     Bibliothèque AA (Ascii Art)
 Summary(es.UTF-8):     Biblioteca ASCII art
@@ -146,7 +149,8 @@ mv -f c.tmp configure.in
 %{__aclocal}
 %{__autoconf}
 %{__automake}
-%configure
+%configure \
+       %{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
@@ -185,9 +189,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man3/*
 %{_aclocaldir}/*.m4
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+%endif
 
 %files progs
 %defattr(644,root,root,755)
This page took 0.056613 seconds and 4 git commands to generate.