summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2012-12-19 10:49:56 +0200
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-06-11 17:48:02 +0300
commit1fab161ca9e8d0d0b03b99238446939ef690710a (patch)
tree916bf5a83077d393c62732feac9c1b7fcf3988bd
parent8d333f946e56d813995a6640c6f3256bf2e95dfe (diff)
downloadlibrpm-tizen-1fab161ca9e8d0d0b03b99238446939ef690710a.tar.gz
librpm-tizen-1fab161ca9e8d0d0b03b99238446939ef690710a.tar.bz2
librpm-tizen-1fab161ca9e8d0d0b03b99238446939ef690710a.zip
Build with external db
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-rw-r--r--packaging/librpm-tizen.spec10
1 files changed, 2 insertions, 8 deletions
diff --git a/packaging/librpm-tizen.spec b/packaging/librpm-tizen.spec
index 4fce7fee8..e8db46bc3 100644
--- a/packaging/librpm-tizen.spec
+++ b/packaging/librpm-tizen.spec
@@ -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}