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 BuildRequires: pkgconfig(capi-system-info)
18 Requires(post): /sbin/ldconfig
19 Requires(postun): /sbin/ldconfig
22 Telephony DataBase storage plugin
24 %package -n libtfeature
25 Summary: Telephony Feature Library
26 Group: Development/Libraries
28 %description -n libtfeature
29 Telephony Feature Library
31 %package -n libtfeature-devel
32 Summary: Telephony Feature Library (devel)
33 Group: Development/Libraries
36 %description -n libtfeature-devel
37 Telephony Feature Library (devel)
43 versionint=$[%{major} * 1000000 + %{minor} * 1000 + %{patchlevel}]
44 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
45 -DLIB_INSTALL_DIR=%{_libdir} \
46 -DVERSION=$versionint \
47 %if 0%{?sec_product_feature_telephony_cdma}
58 rm -f %TZ_SYS_DB/.mcc_mnc_oper_list.db
59 sqlite3 %TZ_SYS_DB/.mcc_mnc_oper_list.db < /tmp/mcc_mnc_oper_list.sql
60 rm -f /tmp/mcc_mnc_oper_list.sql
62 chmod 600 %TZ_SYS_DB/.mcc_mnc_oper_list.db
63 chown telephony:telephony %TZ_SYS_DB/.mcc_mnc_oper_list.db
64 chsmack -a System %TZ_SYS_DB/.mcc_mnc_oper_list.db
65 chmod 644 %TZ_SYS_DB/.mcc_mnc_oper_list.db-journal
66 chown telephony:telephony %TZ_SYS_DB/.mcc_mnc_oper_list.db-journal
67 chsmack -a System %TZ_SYS_DB/.mcc_mnc_oper_list.db-journal
69 %if 0%{?sec_product_feature_telephony_cdma}
70 rm -f %TZ_SYS_DB/.mcc_sid_list.db
71 sqlite3 %TZ_SYS_DB/.mcc_sid_list.db < /tmp/mcc_sid_list.sql
72 rm -f /tmp/mcc_sid_list.sql
73 chmod 600 %TZ_SYS_DB/.mcc_sid_list.db
74 chown telephony:telephony %TZ_SYS_DB/.mcc_mnc_oper_list.db
75 chsmack -a System %TZ_SYS_DB/.mcc_mnc_oper_list.db
76 chmod 644 %TZ_SYS_DB/.mcc_sid_list.db-journal
77 chown telephony:telephony %TZ_SYS_DB/.mcc_mnc_oper_list.db-journal
78 chsmack -a System %TZ_SYS_DB/.mcc_mnc_oper_list.db-journal
81 %postun -p /sbin/ldconfig
87 %manifest %{name}.manifest
88 %defattr(644,root,root,-)
89 /tmp/mcc_mnc_oper_list.sql
90 %if 0%{?sec_product_feature_telephony_cdma}
94 %{_libdir}/telephony/plugins/db-plugin*
95 %{_datadir}/upgrade/scripts/500.mcc_mnc_oper_list_upgrade_30_40.sh
99 %manifest feature/libtfeature.manifest
100 %defattr(644,root,root,-)
103 %files -n libtfeature-devel
104 %defattr(644,root,root,-)
105 %{_libdir}/pkgconfig/*.pc
106 %{_includedir}/tfeature/*.h