]> git.pld-linux.org Git - packages/aalib.git/blobdiff - aalib.spec
-added bcond_without static_libs
[packages/aalib.git] / aalib.spec
index d91d3d4454d0292a95b7d117b6df0e0fc8b0f752..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
@@ -19,7 +22,7 @@ Source1:      %{name}-config.1
 Patch0:                %{name}-info.patch
 Patch1:                %{name}-debian_man.patch
 Patch2:                %{name}-am18.patch
-URL:           http://aa-project.sourceforge.net/
+URL:           http://aa-project.sourceforge.net/aalib/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: gpm-devel
@@ -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.040422 seconds and 4 git commands to generate.