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
diff --git a/contrib/osmo-msc.spec.in b/contrib/osmo-msc.spec.in
index d588e5b..a832408 100644
--- a/contrib/osmo-msc.spec.in
+++ b/contrib/osmo-msc.spec.in
@@ -54,6 +54,11 @@
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