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 Requires(post): /sbin/ldconfig
17 Requires(postun): /sbin/ldconfig
20 Telephony DataBase storage plugin
26 versionint=$[%{major} * 1000000 + %{minor} * 1000 + %{patchlevel}]
27 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
28 -DLIB_INSTALL_DIR=%{_libdir} \
29 -DVERSION=$versionint \
30 %if 0%{?sec_product_feature_telephony_cdma}
41 rm -f /opt/dbspace/.mcc_mnc_oper_list.db
42 sqlite3 /opt/dbspace/.mcc_mnc_oper_list.db < /tmp/mcc_mnc_oper_list.sql
43 rm -f /tmp/mcc_mnc_oper_list.sql
45 chmod 600 /opt/dbspace/.mcc_mnc_oper_list.db
46 chown system:system /opt/dbspace/.mcc_mnc_oper_list.db
47 chmod 644 /opt/dbspace/.mcc_mnc_oper_list.db-journal
48 chown system:system /opt/dbspace/.mcc_mnc_oper_list.db-journal
49 chsmack -a 'telephony_framework::db' /opt/dbspace/.mcc_mnc_oper_list.db*
51 %if 0%{?sec_product_feature_telephony_cdma}
52 rm -f /opt/dbspace/.mcc_sid_list.db
53 sqlite3 /opt/dbspace/.mcc_sid_list.db < /tmp/mcc_sid_list.sql
54 rm -f /tmp/mcc_sid_list.sql
55 chmod 600 /opt/dbspace/.mcc_sid_list.db
56 chown system:system /opt/dbspace/.mcc_mnc_oper_list.db
57 chmod 644 /opt/dbspace/.mcc_sid_list.db-journal
58 chown system:system /opt/dbspace/.mcc_mnc_oper_list.db-journal
59 chsmack -a 'telephony_framework::db' /opt/dbspace/.mcc_sid_list.db*
62 %postun -p /sbin/ldconfig
66 mkdir -p %{buildroot}%{_datadir}/license
69 %defattr(644,system,system,-)
70 /tmp/mcc_mnc_oper_list.sql
71 %if 0%{?sec_product_feature_telephony_cdma}
75 %{_libdir}/telephony/plugins/db-plugin*
76 %{_datadir}/license/tel-plugin-database