Author: twittner                     Date: Fri Jun 17 20:24:53 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added bcond_without static_libs

---- Files affected:
SPECS:
   db4.3.spec (1.9 -> 1.10) 

---- Diffs:

================================================================
Index: SPECS/db4.3.spec
diff -u SPECS/db4.3.spec:1.9 SPECS/db4.3.spec:1.10
--- SPECS/db4.3.spec:1.9        Mon Mar 21 19:24:34 2005
+++ SPECS/db4.3.spec    Fri Jun 17 22:24:47 2005
@@ -5,6 +5,7 @@
 %bcond_without tcl     # don't build Tcl bindings
 %bcond_with    pmutex  # use POSIX mutexes (only process-private with 
linuxthreads)
 %bcond_with    nptl    # synonym for pmutex (NPTL provides full interface)
+%bcond_without static_libs     # don't build static libraries
 #
 %{?with_nptl:%define   with_pmutex     1}
 Summary:       Berkeley DB database library for C
@@ -261,7 +262,8 @@
        --enable-static \
        --enable-rpc \
        --%{?with_pmutex:en}%{!?with_pmutex:dis}able-posixmutexes \
-       --enable-cxx
+       --enable-cxx \
+       %{!?with_static_libs:--disable-static}
 
 # (temporarily?) disabled because of compilation errors:
 #      --enable-dump185 \
@@ -281,7 +283,8 @@
        %{?with_tcl:--with-tcl=/usr/lib} \
        %{?with_java:--enable-java} \
        --disable-static \
-       --enable-shared 
+       --enable-shared \
+       %{!?with_static_libs:--disable-static}
 
 %{__make} library_build \
        TCFLAGS='-I$(builddir) -I%{_includedir}' \
@@ -321,12 +324,14 @@
 ln -sf libdb_tcl-4.3.la libdb_tcl.la
 %endif
 ln -sf libdb_cxx-4.3.la libdb_cxx.la
+%if %{with static_libs}
 mv -f libdb.a libdb-4.3.a
 ln -sf libdb-4.3.a libdb.a
 ln -sf libdb-4.3.a libdb4.a
 ln -sf libdb-4.3.a libndbm.a
 mv -f libdb_cxx.a libdb_cxx-4.3.a
 ln -sf libdb_cxx-4.3.a libdb_cxx.a
+%endif
 ln -sf libdb_cxx-4.3.so libdb_cxx.so
 ln -sf libdb_cxx-4.3.so libdb_cxx-4.so
 
@@ -383,12 +388,14 @@
 %{_docdir}/db-%{version}-docs/ref
 %{_examplesdir}/db-%{version}
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libdb-4.3.a
 %{_libdir}/libdb4.a
 %{_libdir}/libdb.a
 %{_libdir}/libndbm.a
+%endif
 
 %files cxx
 %defattr(644,root,root,755)
@@ -404,10 +411,12 @@
 %{_docdir}/db-%{version}-docs/api_cxx
 %{_examplesdir}/db-cxx-%{version}
 
+%if %{with static_libs}
 %files cxx-static
 %defattr(644,root,root,755)
 %{_libdir}/libdb_cxx-4.3.a
 %{_libdir}/libdb_cxx.a
+%endif
 
 %if %{with java}
 %files java
@@ -459,6 +468,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.10  2005/06/17 20:24:47  twittner
+- added bcond_without static_libs
+
 Revision 1.9  2005/03/21 18:24:34  mmazur
 - rel 2 for th
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/db4.3.spec?r1=1.9&r2=1.10&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to