]> git.pld-linux.org Git - packages/dbh.git/blobdiff - dbh.spec
- added bcond_without static_libs
[packages/dbh.git] / dbh.spec
index 8cfe99aab19a2a12b4994b2ce5cf6b154f79a762..e1a4a980751c7bcd84268e7b75359931095f204d 100644 (file)
--- a/dbh.spec
+++ b/dbh.spec
@@ -1,3 +1,4 @@
+%bcond_without static_libs     # don't build static library
 Summary:       Disk based hash library
 Summary(pl):   Biblioteka obs³uguj±ca tablice haszuj±ce na dysku
 Name:          dbh
@@ -65,7 +66,8 @@ Statyczna biblioteka dbh.
 %{__automake}
 %{__autoheader}
 %{__autoconf}
-%configure
+%configure \
+       %{!?with_static_libs:--disable-static}
 
 %{__make}
 
@@ -101,6 +103,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_pkgconfigdir}/*.pc
 %{_examplesdir}/%{name}-%{version}
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+%endif
This page took 0.064495 seconds and 4 git commands to generate.