1 #sbs-git:slp/pkgs/t/tel-plugin-packetservice
2 Name: tel-plugin-packetservice
3 Summary: Telephony Packet Service library
6 Group: System/Libraries
8 Source0: tel-plugin-packetservice-%{version}.tar.gz
9 Requires(post): /sbin/ldconfig
10 Requires(postun): /sbin/ldconfig
12 BuildRequires: pkgconfig(glib-2.0)
13 BuildRequires: pkgconfig(dbus-glib-1)
14 BuildRequires: pkgconfig(dlog)
15 BuildRequires: pkgconfig(tcore)
16 BuildRequires: pkgconfig(iniparser)
19 Telephony Packet Service library
25 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DSYSCONFDIR=%{_sysconfdir}
34 if [ ! -f /opt/dbspace/.dnet.db ]
36 sqlite3 /opt/dbspace/.dnet.db < /usr/share/ps-plugin/dnet_db.sql
37 sqlite3 /opt/dbspace/.dnet.db < /usr/share/ps-plugin/dnet_db_data.sql
40 rm -f /usr/share/ps-plugin/dnet_db.sql
41 rm -f /usr/share/ps-plugin/dnet_db_data.sql
43 #change file permission
44 if [ -f /opt/dbspace/.dnet.db ]
46 chmod 660 /opt/dbspace/.dnet.db
49 if [ -f /opt/dbspace/.dnet.db-journal ]
51 chmod 664 /opt/dbspace/.dnet.db-journal
54 %postun -p /sbin/ldconfig
58 mkdir -p %{buildroot}/usr/share/license
61 %manifest tel-plugin-packetservice.manifest
62 %defattr(-,root,root,-)
64 /usr/share/ps-plugin/dnet_db.sql
65 /usr/share/ps-plugin/dnet_db_data.sql
66 %{_sysconfdir}/dbus-1/system.d/*
67 %{_libdir}/telephony/plugins/ps-plugin*
68 /usr/share/license/tel-plugin-packetservice