5 Name: tel-plugin-database
6 Version: %{major}.%{minor}.%{patchlevel}
9 Summary: Telephony DataBase storage plugin
10 Group: System/Libraries
11 Source0: tel-plugin-database-%{version}.tar.gz
13 BuildRequires: pkgconfig(db-util)
14 BuildRequires: pkgconfig(glib-2.0)
15 BuildRequires: pkgconfig(tcore)
16 BuildRequires: pkgconfig(libtzplatform-config)
17 Requires(post): /sbin/ldconfig
18 Requires(postun): /sbin/ldconfig
21 Telephony DataBase storage plugin
27 versionint=$[%{major} * 1000000 + %{minor} * 1000 + %{patchlevel}]
28 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
29 -DLIB_INSTALL_DIR=%{_libdir} \
30 -DVERSION=$versionint \
31 %if 0%{?sec_product_feature_telephony_cdma}
42 rm -f %TZ_SYS_DB/.mcc_mnc_oper_list.db
43 sqlite3 %TZ_SYS_DB/.mcc_mnc_oper_list.db < /tmp/mcc_mnc_oper_list.sql
44 rm -f /tmp/mcc_mnc_oper_list.sql
46 chmod 600 %TZ_SYS_DB/.mcc_mnc_oper_list.db
47 chown telephony:telephony %TZ_SYS_DB/.mcc_mnc_oper_list.db
48 chsmack -a System %TZ_SYS_DB/.mcc_mnc_oper_list.db
49 chmod 644 %TZ_SYS_DB/.mcc_mnc_oper_list.db-journal
50 chown telephony:telephony %TZ_SYS_DB/.mcc_mnc_oper_list.db-journal
51 chsmack -a System %TZ_SYS_DB/.mcc_mnc_oper_list.db-journal
53 %if 0%{?sec_product_feature_telephony_cdma}
54 rm -f %TZ_SYS_DB/.mcc_sid_list.db
55 sqlite3 %TZ_SYS_DB/.mcc_sid_list.db < /tmp/mcc_sid_list.sql
56 rm -f /tmp/mcc_sid_list.sql
57 chmod 600 %TZ_SYS_DB/.mcc_sid_list.db
58 chown telephony:telephony %TZ_SYS_DB/.mcc_mnc_oper_list.db
59 chsmack -a System %TZ_SYS_DB/.mcc_mnc_oper_list.db
60 chmod 644 %TZ_SYS_DB/.mcc_sid_list.db-journal
61 chown telephony:telephony %TZ_SYS_DB/.mcc_mnc_oper_list.db-journal
62 chsmack -a System %TZ_SYS_DB/.mcc_mnc_oper_list.db-journal
65 %postun -p /sbin/ldconfig
71 %defattr(644,root,root,-)
72 /tmp/mcc_mnc_oper_list.sql
73 %if 0%{?sec_product_feature_telephony_cdma}
77 %{_libdir}/telephony/plugins/db-plugin*
78 %{_datadir}/upgrade/scripts/500.mcc_mnc_oper_list_upgrade_24_30.sh