]> git.pld-linux.org Git - packages/apr-util.git/commitdiff
- ensure we build with exact db version, and it is carried over to apu-1-config as... auto/ac/apr-util-1_3_10-2
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 26 Mar 2011 19:48:37 +0000 (19:48 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apr-util.spec -> 1.91

apr-util.spec

index 98ff44d378c20b6c9ca24dd6ddb7b64f0f100899..bc371413c2b381a0ec10212f47710ce988f345c9 100644 (file)
@@ -9,19 +9,20 @@
 %bcond_without sqlite3 # without SQLite3 DBD module
 %bcond_without ldap    # without LDAP module
 %bcond_without tests
+
 # define       dbver   db50
 %if 0%{!?dbver:1}
-  %if "%{pld_release}" == "ti"
-    %define    dbver   db45
-  %else
-    %if "%{pld_release}" == "th"
-      %define  dbver   db47
-    %else
-      %define  dbver   db4
-    %endif
-  %endif
+       %if "%{pld_release}" == "th"
+               %define dbver   db47
+       %endif
+       %if "%{pld_release}" == "ti"
+               %define dbver   db45
+       %endif
+       %if "%{pld_release}" == "ac"
+               %define dbver   db42
+       %endif
 %endif
-#
+
 Summary:       A companion library to Apache Portable Runtime
 Summary(pl.UTF-8):     Biblioteka towarzysząca Apache Portable Runtime
 Name:          apr-util
@@ -39,14 +40,15 @@ Patch3:             %{name}-flags.patch
 URL:           http://apr.apache.org/
 BuildRequires: apr-devel >= 1:1.3.0
 BuildRequires: autoconf
-%if "%{pld_release}" == "ti"
-BuildRequires: db-devel >= 4.5
-%else
 %if "%{pld_release}" == "th"
 BuildRequires: db-devel >= 4.7
-%else
-BuildRequires: db-devel
 %endif
+%if "%{pld_release}" == "ti"
+BuildRequires: db-devel >= 4.5
+%endif
+%if "%{pld_release}" == "ac"
+BuildRequires: db-devel >= 4.2
+BuildConflicts:        db4.5-devel
 %endif
 BuildRequires: expat-devel
 %{?with_freetds:BuildRequires: freetds-devel}
@@ -214,6 +216,9 @@ Statyczna biblioteka apr-util.
 %patch2 -p1
 %patch3 -p1
 
+# be sure to link with db version requested
+%{__sed} -i -e 's/db4 db//' build/dbm.m4
+
 rm -rf xml/expat
 
 echo '
This page took 0.142274 seconds and 4 git commands to generate.