]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blobdiff - libdb/libdb.nm
perl-Net-SSLeay: Update to 1.78.
[people/stevee/ipfire-3.x.git] / libdb / libdb.nm
index ace6d1454bf7bf6e38366d06c4b21364c2a578f2..27e9534ffe9cc52374ffdaec7f78236f3d9156c5 100644 (file)
@@ -4,9 +4,9 @@
 ###############################################################################
 
 name       = libdb
-version_major = 5
-version_minor = 2
-version_patch = 36
+version_major = 6
+version_minor = 1
+version_patch = 26
 version    = %{version_major}.%{version_minor}.%{version_patch}
 release    = 1
 thisapp    = db-%{version}
@@ -28,10 +28,12 @@ source_dl  = http://download.oracle.com/berkeley-db/
 
 build
        requires
+               automake
                chrpath
                gcc-c++
                libtool
                perl
+               zlib-devel
        end
 
        CFLAGS += -fno-strict-aliasing
@@ -39,8 +41,12 @@ build
        DIR_APP = %{DIR_SRC}/%{thisapp}/dist/dist-tls
 
        prepare_cmds
-               mkdir %{DIR_APP} && cd %{DIR_APP}
-               ln -s ../configure .
+               for i in $(find %{DIR_SRC}/%{thisapp} -name config.guess -or -name config.sub); do
+                       cp -vf %{datadir}/automake-*/config.{guess,sub} $(dirname ${i})
+               done
+
+               mkdir -pv %{DIR_APP} && cd %{DIR_APP}
+               ln -svf ../configure .
        end
 
        MACRO_FIX_LIBTOOL
@@ -68,7 +74,7 @@ build
                done
 
                # Remove documentation which is very big.
-               rm -rf %{BUILDROOT}%{datadir}/docs
+               rm -rf %{BUILDROOT}%{prefix}/docs
 
                # Remove unversioned libs.
                rm -vf %{BUILDROOT}%{libdir}/libdb*-%{version_major}.so
@@ -87,6 +93,12 @@ packages
        package %{name}-devel
                template DEVEL
 
+               # You cannot install libdb-devel and db4-devel
+               # at the same time.
+               conflicts
+                       db4-devel
+               end
+
                files += !%{libdir}/libdb-%{soversion}.so
                files += !%{libdir}/libdb_sql-%{soversion}.so
        end