Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
%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
%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
--enable-shared \
--enable-python \
--without-msm \
+ --with-external-db \
PYTHON_MODULENAME=%{python_mod_name}
make %{?_smp_mflags}