From 5a44e5f46ec64d6c18abbda17a4905d9fd677e27 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Tue, 9 Mar 2021 14:29:16 +0100 Subject: [PATCH] contrib/osmo-msc.spec.in: depend on dbd-sqlite3 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 --- contrib/osmo-msc.spec.in | 5 +++++ 1 file changed, 5 insertions(+) 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