-#sbs-git:slp/pkgs/t/tel-plugin-imc
-Name: tel-plugin-imc
-Summary: imc plugin for telephony
-Version: 0.1.38
-Release: 1
-Group: Development/Libraries
-License: Apache
-Source0: tel-plugin-imc-%{version}.tar.gz
-Requires(post): /sbin/ldconfig
-Requires(postun):/sbin/ldconfig
-BuildRequires: cmake
-BuildRequires: pkgconfig(glib-2.0)
-BuildRequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(tcore)
-BuildRequires: pkgconfig(db-util)
-BuildRequires: pkgconfig(libxml-2.0)
+%define major 0
+%define minor 1
+%define patchlevel 90
+
+Name: tel-plugin-imc
+Version: %{major}.%{minor}.%{patchlevel}
+Release: 1
+License: Apache-2.0
+Summary: imc-plugin for Telephony
+Group: Development/Libraries
+Source0: tel-plugin-imc-%{version}.tar.gz
+BuildRequires: cmake
+BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: pkgconfig(dlog)
+BuildRequires: pkgconfig(tcore)
+BuildRequires: pkgconfig(db-util)
+BuildRequires: pkgconfig(vconf)
+BuildRequires: pkgconfig(libxml-2.0)
+BuildRequires: pkgconfig(key-manager)
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
%description
IMC plugin for telephony
%setup -q
%build
-%cmake .
-make %{?jobs:-j%jobs}
+%cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
+ -DLIB_INSTALL_DIR=%{_libdir}
+make %{?_smp_mflags}
%post
/sbin/ldconfig
-mkdir -p /opt/dbspace
-
-if [ ! -f /opt/dbspace/.mcc_mnc_oper_list.db ]
-then
- sqlite3 /opt/dbspace/.mcc_mnc_oper_list.db < /tmp/mcc_mnc_oper_list.sql
-fi
-
-rm -f /tmp/mcc_mnc_oper_list.sql
-
-if [ -f /opt/dbspace/.mcc_mnc_oper_list.db ]
-then
- chmod 600 /opt/dbspace/.mcc_mnc_oper_list.db
-fi
-if [ -f /opt/dbspace/.mcc_mnc_oper_list.db-journal ]
-then
- chmod 644 /opt/dbspace/.mcc_mnc_oper_list.db-journal
-fi
%postun -p /sbin/ldconfig
%install
-rm -rf %{buildroot}
%make_install
mkdir -p %{buildroot}/usr/share/license
+cp LICENSE %{buildroot}/usr/share/license/%{name}
%files
-
-%defattr(-,root,root,-)
-
+%defattr(644,system,system,-)
%{_libdir}/telephony/plugins/modems/*
-/tmp/mcc_mnc_oper_list.sql
-/usr/share/license/tel-plugin-imc
+/usr/share/license/%{name}