2 Summary: A HTML5 based app for system settings
5 Group: Applications/Web Applications
7 URL: http://www.tizen.org2
8 Source0: %{name}-%{version}.tar.bz2
10 BuildRequires: desktop-file-utils
11 Requires: bluetooth-frwk-core
12 Requires: bluetooth-frwk-service
13 Requires: privacy-manager-server
16 Requires: wrt-installer
19 A HTML5 based app for system settings like WiFi, Bluetooth
22 %setup -q -n %{name}-%{version}
28 #make %{?jobs:-j%jobs}
35 if [ -f /opt/usr/apps/.preinstallWidgets/preinstallDone ]; then
36 wrt-installer -i /opt/usr/apps/.preinstallWidgets/Settings.wgt;
38 # This is a work around to grant the app privilege to access the privacy APIs
39 # Since the pkg manager doesn't install the package information in the privacy database
40 # and the privacy-popup is not displaying to allow user to grant access, so for now
41 # just manually grant access by updating the privacy database directly
42 sqlite3 /opt/dbspace/.privacy.db "DELETE FROM PackageInfo WHERE PKG_ID='ODBQpKvkS1'";
43 sqlite3 /opt/dbspace/.privacy.db "DELETE FROM PrivacyInfo WHERE PKG_ID='ODBQpKvkS1'";
44 sqlite3 /opt/dbspace/.privacy.db "INSERT INTO PackageInfo(PKG_ID, IS_SET) VALUES('ODBQpKvkS1', 1)";
45 sqlite3 /opt/dbspace/.privacy.db "INSERT INTO PrivacyInfo(PKG_ID, PRIVACY_ID, IS_ENABLED) VALUES('ODBQpKvkS1', 'http://tizen.org/privacy/bluetooth', 1)";
49 wrt-installer -un ODBQpKvkS1.Settings
51 # Remove privileges from database when uninstalling
52 sqlite3 /opt/dbspace/.privacy.db "DELETE FROM PackageInfo WHERE PKG_ID='ODBQpKvkS1'";
53 sqlite3 /opt/dbspace/.privacy.db "DELETE FROM PrivacyInfo WHERE PKG_ID='ODBQpKvkS1'";
56 %defattr(-,root,root,-)
57 /opt/usr/apps/.preinstallWidgets/Settings.wgt