#sbs-git:slp/pkgs/t/tel-plugin-imc
Name: tel-plugin-imc
Summary: imc plugin for telephony
-Version: 0.1.39
+Version: 0.1.42
Release: 1
Group: Development/Libraries
-License: Apache
+License: Apache-2.0
Source0: tel-plugin-imc-%{version}.tar.gz
Source1001: tel-plugin-imc.manifest
Requires(post): /sbin/ldconfig
BuildRequires: pkgconfig(tcore)
BuildRequires: pkgconfig(db-util)
BuildRequires: pkgconfig(libxml-2.0)
+BuildRequires: pkgconfig(libtzplatform-config)
%description
IMC plugin for telephony
%post
/sbin/ldconfig
-mkdir -p /opt/dbspace
+mkdir -p %{TZ_SYS_DB}
-if [ ! -f /opt/dbspace/.mcc_mnc_oper_list.db ]
+if [ ! -f %{TZ_SYS_DB}/.mcc_mnc_oper_list.db ]
then
- sqlite3 /opt/dbspace/.mcc_mnc_oper_list.db < /tmp/mcc_mnc_oper_list.sql
+ sqlite3 %{TZ_SYS_DB}/.mcc_mnc_oper_list.db < /tmp/mcc_mnc_oper_list.sql
fi
rm -f /tmp/mcc_mnc_oper_list.sql
-if [ -f /opt/dbspace/.mcc_mnc_oper_list.db ]
+if [ -f %{TZ_SYS_DB}/.mcc_mnc_oper_list.db ]
then
- chmod 600 /opt/dbspace/.mcc_mnc_oper_list.db
+ chmod 600 %{TZ_SYS_DB}/.mcc_mnc_oper_list.db
fi
-if [ -f /opt/dbspace/.mcc_mnc_oper_list.db-journal ]
+if [ -f %{TZ_SYS_DB}/.mcc_mnc_oper_list.db-journal ]
then
- chmod 644 /opt/dbspace/.mcc_mnc_oper_list.db-journal
+ chmod 644 %{TZ_SYS_DB}/.mcc_mnc_oper_list.db-journal
fi
%postun -p /sbin/ldconfig
rm -rf %{buildroot}
%make_install
mkdir -p %{buildroot}/usr/share/license
+cp LICENSE %{buildroot}/usr/share/license/%{name}
%files
%manifest %{name}.manifest
%{_libdir}/telephony/plugins/modems/*
/tmp/mcc_mnc_oper_list.sql
-/usr/share/license/tel-plugin-imc
+/usr/share/license/%{name}