X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Ftel-plugin-database.spec;h=c4c8d0c8d46e3277e4672bc95a11b59abbc6b240;hb=5a8f2ecbe9e1934297adb04e405e7cc499dba150;hp=302c9724ad3c2fe5328042689a2bcb1cbff33be7;hpb=0a06ed5924c75228450c8f3ef375012f0675c82e;p=platform%2Fcore%2Ftelephony%2Ftel-plugin-database.git diff --git a/packaging/tel-plugin-database.spec b/packaging/tel-plugin-database.spec index 302c972..c4c8d0c 100644 --- a/packaging/tel-plugin-database.spec +++ b/packaging/tel-plugin-database.spec @@ -1,33 +1,84 @@ -Name: tel-plugin-database -Summary: Telephony DataBase storage plugin -Version: 0.1.7 -Release: 1 -Group: System/Libraries -License: Apache -Source0: tel-plugin-database-%{version}.tar.gz -Source1001: tel-plugin-database.manifest -Requires(post): /sbin/ldconfig -Requires(postun): /sbin/ldconfig +%define major 0 +%define minor 1 +%define patchlevel 38 + +Name: tel-plugin-database +Version: %{major}.%{minor}.%{patchlevel} +Release: 1 +License: Apache-2.0 +Summary: Telephony DataBase storage plugin +Group: System/Libraries +Source0: tel-plugin-database-%{version}.tar.gz BuildRequires: cmake +BuildRequires: pkgconfig(db-util) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(tcore) -BuildRequires: pkgconfig(dlog) -BuildRequires: pkgconfig(db-util) +BuildRequires: pkgconfig(libtzplatform-config) +BuildRequires: pkgconfig(capi-system-info) +Requires: security-config +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig %description Telephony DataBase storage plugin +%package -n libtfeature +Summary: Telephony Feature Library +Group: Development/Libraries + +%description -n libtfeature +Telephony Feature Library + +%package -n libtfeature-devel +Summary: Telephony Feature Library (devel) +Group: Development/Libraries +Requires: libtfeature + +%description -n libtfeature-devel +Telephony Feature Library (devel) + %prep %setup -q -cp %{SOURCE1001} . %build -%cmake . -make %{?jobs:-j%jobs} +versionint=$[%{major} * 1000000 + %{minor} * 1000 + %{patchlevel}] +cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + -DLIB_INSTALL_DIR=%{_libdir} \ + -DVERSION=$versionint \ +%if 0%{?sec_product_feature_telephony_cdma} + -DOPERATOR_CDMA=1 \ +%endif + +make %{?_smp_mflags} %post /sbin/ldconfig +mkdir -p %TZ_SYS_DB + +rm -f %TZ_SYS_DB/.mcc_mnc_oper_list.db +sqlite3 %TZ_SYS_DB/.mcc_mnc_oper_list.db < /tmp/mcc_mnc_oper_list.sql +rm -f /tmp/mcc_mnc_oper_list.sql + +chmod 600 %TZ_SYS_DB/.mcc_mnc_oper_list.db +chown telephony:telephony %TZ_SYS_DB/.mcc_mnc_oper_list.db +chsmack -a System %TZ_SYS_DB/.mcc_mnc_oper_list.db +chmod 644 %TZ_SYS_DB/.mcc_mnc_oper_list.db-journal +chown telephony:telephony %TZ_SYS_DB/.mcc_mnc_oper_list.db-journal +chsmack -a System %TZ_SYS_DB/.mcc_mnc_oper_list.db-journal + +%if 0%{?sec_product_feature_telephony_cdma} + rm -f %TZ_SYS_DB/.mcc_sid_list.db + sqlite3 %TZ_SYS_DB/.mcc_sid_list.db < /tmp/mcc_sid_list.sql + rm -f /tmp/mcc_sid_list.sql + chmod 600 %TZ_SYS_DB/.mcc_sid_list.db + chown telephony:telephony %TZ_SYS_DB/.mcc_mnc_oper_list.db + chsmack -a System %TZ_SYS_DB/.mcc_mnc_oper_list.db + chmod 644 %TZ_SYS_DB/.mcc_sid_list.db-journal + chown telephony:telephony %TZ_SYS_DB/.mcc_mnc_oper_list.db-journal + chsmack -a System %TZ_SYS_DB/.mcc_mnc_oper_list.db-journal +%endif + %postun -p /sbin/ldconfig %install @@ -35,6 +86,22 @@ make %{?jobs:-j%jobs} %files %manifest %{name}.manifest -%defattr(-,root,root,-) +%defattr(644,root,root,-) +/tmp/mcc_mnc_oper_list.sql +%if 0%{?sec_product_feature_telephony_cdma} + /tmp/mcc_sid_list.sql +%endif +#%doc COPYING %{_libdir}/telephony/plugins/db-plugin* -/usr/share/license/tel-plugin-database +%{_datadir}/upgrade/scripts/500.mcc_mnc_oper_list_upgrade_30_40.sh +%license LICENSE + +%files -n libtfeature +%manifest feature/libtfeature.manifest +%defattr(644,root,root,-) +%{_libdir}/*.so + +%files -n libtfeature-devel +%defattr(644,root,root,-) +%{_libdir}/pkgconfig/*.pc +%{_includedir}/tfeature/*.h