]> git.pld-linux.org Git - packages/dbh.git/commitdiff
- added bcond_without static_libs
authorwitekfl <witekfl@pld-linux.org>
Wed, 15 Jun 2005 20:42:31 +0000 (20:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dbh.spec -> 1.11

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.07444 seconds and 4 git commands to generate.