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
This commit is contained in:
Oliver Smith 2021-03-09 14:29:16 +01:00
parent 13c2153c94
commit 5a44e5f46e
1 changed files with 5 additions and 0 deletions

View File

@ -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