--- /dev/null
+--- libetpan-1.7.2/configure.ac.orig 2016-08-05 15:50:27.931274367 +0200
++++ libetpan-1.7.2/configure.ac 2016-08-05 15:53:37.251272206 +0200
+@@ -395,7 +395,7 @@
+ case "$DBVERS" in
+ 3)
+ AC_MSG_RESULT([version 3.x or above])
+- for lib in db-6.0 db-5.3 db-5.1 db-5.0 db-4.8 db-4.7 db-4.6 db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 db-4.0 db-4 db4 db-3.2 db-3 db3 db; do
++ for lib in db-6.2 db-6.1 db-6.0 db-5.3 db-5.1 db-5.0 db-4.8 db-4.7 db-4.6 db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 db-4.0 db-4 db4 db-3.2 db-3 db3 db; do
+ if test "x$DBLINKED" = "x0"; then
+ dnl AC_CHECK_LIB($lib, db_create, [DBLIB="-l$lib"; DBLINKED=1], [])
+ dnl installations of libdb4 function names are defined in db.h
Source0: https://github.com/dinhviethoa/libetpan/archive/%{version}.tar.gz
# Source0-md5: c725728ce39b511a533d629ea78c1884
Patch0: %{name}-link.patch
+Patch1: %{name}-db.patch
URL: https://github.com/dinhviethoa/libetpan
BuildRequires: autoconf >= 2.61
BuildRequires: automake
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%{__libtoolize}