1 Name: tel-plugin-packetservice
2 Summary: Telephony Packet Service library
5 Group: System/Libraries
7 Source0: tel-plugin-packetservice-%{version}.tar.gz
8 Requires(post): /sbin/ldconfig
9 Requires(postun): /sbin/ldconfig
11 BuildRequires: pkgconfig(glib-2.0)
12 BuildRequires: pkgconfig(dbus-glib-1)
13 BuildRequires: pkgconfig(dlog)
14 BuildRequires: pkgconfig(tcore)
15 BuildRequires: pkgconfig(iniparser)
18 Telephony Packet Service library
24 %cmake . -DSYSCONFDIR=%{_sysconfdir}
33 if [ ! -f /opt/dbspace/.dnet.db ]
35 sqlite3 /opt/dbspace/.dnet.db < /usr/share/ps-plugin/dnet_db.sql
36 sqlite3 /opt/dbspace/.dnet.db < /usr/share/ps-plugin/dnet_db_data.sql
39 rm -f /usr/share/ps-plugin/dnet_db.sql
40 rm -f /usr/share/ps-plugin/dnet_db_data.sql
42 #change file permission
43 if [ -f /opt/dbspace/.dnet.db ]
45 chmod 660 /opt/dbspace/.dnet.db
48 if [ -f /opt/dbspace/.dnet.db-journal ]
50 chmod 664 /opt/dbspace/.dnet.db-journal
53 %postun -p /sbin/ldconfig
57 mkdir -p %{buildroot}/usr/share/license
60 %manifest tel-plugin-packetservice.manifest
61 %defattr(-,root,root,-)
62 /usr/share/ps-plugin/dnet_db.sql
63 /usr/share/ps-plugin/dnet_db_data.sql
64 %{_sysconfdir}/dbus-1/system.d/*
65 %{_libdir}/telephony/plugins/ps-plugin*
66 /usr/share/license/tel-plugin-packetservice