aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2021-03-09 14:29:16 +0100
committerOliver Smith <osmith@sysmocom.de>2021-03-09 14:42:44 +0100
commitef7c295fb311750fd689474edcf944cca23eb437 (patch)
treeafe9b6cd939d81d6d413e07854809686b3deff90
parent13c2153c94c97631a60d0fc7c44bc7c60f1d0d9a (diff)
WIP: contrib/osmo-msc.spec.in: depend on dbd-sqlite3osmith/wip
Add the missing runtime dependency to the sqlite3 driver of libdbd. The library does not provide a pkgconfig file, so using "pkgconfig(...)" as done in the BuildRequires is not possible. Write both the OpenSUSE and CentOS name with an if..else. Fixes: <0009> db.c:648 Failed to create database connection to sqlite3 db 'sms.db'; Is the sqlite3 database driver for libdbi installed on this system? Change-Id: Ia972944c300aecbb6ec460b2362aabff459baefd
-rw-r--r--contrib/osmo-msc.spec.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/osmo-msc.spec.in b/contrib/osmo-msc.spec.in
index d588e5bf9..a83240886 100644
--- a/contrib/osmo-msc.spec.in
+++ b/contrib/osmo-msc.spec.in
@@ -54,6 +54,11 @@ BuildRequires: lksctp-tools-devel
BuildRequires: pkgconfig(libasn1c) >= 0.9.30
BuildRequires: pkgconfig(libosmo-ranap) >= 0.3.0
%endif
+%if 0%{?suse_version}
+Requires: libdbi-drivers-dbd-sqlite3
+%else
+Requires: libdbi-dbd-sqlite
+%endif
%description
The Mobile Switching Center (MSC) is the heart of 2G/3G