Build with external db
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 19 Dec 2012 08:49:56 +0000 (10:49 +0200)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 11 Jun 2014 14:48:02 +0000 (17:48 +0300)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
packaging/librpm-tizen.spec

index 4fce7fee89e5412faa68702ae95692f69bc97967..e8db46bc38c3096a9e9d4f3cae1882f4bca5e081 100644 (file)
@@ -36,9 +36,8 @@ BuildRequires:  pkgconfig(libsmack)
 %if 0%{?suse_version}
 BuildRequires:  fdupes
 %endif
+BuildRequires:  db-devel
 
-Source1:       db-4.8.30.tar.bz2
-Source2:       db-4.8.30-integration.dif
 Source4:       rpm-tizen_macros
 Source8:       rpmconfigcheck
 Source13:      find-docs.sh
@@ -70,12 +69,6 @@ the host system and it only contains rpmlib and rpm-python.
 %setup -q -n rpm-%{version}
 cp %{SOURCE1001} .
 rm -rf sqlite
-tar xjf %{S:1}
-ln -s db-4.8.30 db
-chmod -R u+w db/*
-# will get linked from db3
-rm -f rpmdb/db.h
-patch -p0 < %{S:2}
 if [ -s %{_sysconfdir}/rpm/tizen_macros ]; then
     cp -a %{_sysconfdir}/rpm/tizen_macros %{SOURCE4}
 fi
@@ -102,6 +95,7 @@ autoreconf -i -f
     --enable-shared \
     --enable-python \
     --without-msm \
+    --with-external-db \
     PYTHON_MODULENAME=%{python_mod_name}
 
 make %{?_smp_mflags}