1 #sbs-git:slp/pkgs/t/tel-plugin-imc
3 Summary: imc plugin for telephony
6 Group: Development/Libraries
8 Source0: tel-plugin-imc-%{version}.tar.gz
9 Source1001: tel-plugin-imc.manifest
10 Requires(post): /sbin/ldconfig
11 Requires(postun):/sbin/ldconfig
13 BuildRequires: pkgconfig(glib-2.0)
14 BuildRequires: pkgconfig(dlog)
15 BuildRequires: pkgconfig(tcore)
16 BuildRequires: pkgconfig(db-util)
17 BuildRequires: pkgconfig(libxml-2.0)
18 BuildRequires: pkgconfig(libtzplatform-config)
21 IMC plugin for telephony
35 if [ ! -f %{TZ_SYS_DB}/.mcc_mnc_oper_list.db ]
37 sqlite3 %{TZ_SYS_DB}/.mcc_mnc_oper_list.db < /tmp/mcc_mnc_oper_list.sql
40 rm -f /tmp/mcc_mnc_oper_list.sql
42 if [ -f %{TZ_SYS_DB}/.mcc_mnc_oper_list.db ]
44 chmod 600 %{TZ_SYS_DB}/.mcc_mnc_oper_list.db
46 if [ -f %{TZ_SYS_DB}/.mcc_mnc_oper_list.db-journal ]
48 chmod 644 %{TZ_SYS_DB}/.mcc_mnc_oper_list.db-journal
51 %postun -p /sbin/ldconfig
56 mkdir -p %{buildroot}/usr/share/license
57 cp LICENSE %{buildroot}/usr/share/license/%{name}
60 %manifest %{name}.manifest
62 %defattr(-,root,root,-)
64 %{_libdir}/telephony/plugins/modems/*
65 /tmp/mcc_mnc_oper_list.sql
66 /usr/share/license/%{name}