3 Summary: Account DB library
7 License: TO BE FILLED IN
8 Source0: libaccounts-svc-%{version}.tar.gz
11 BuildRequires: pkgconfig(glib-2.0)
12 BuildRequires: pkgconfig(dlog)
13 BuildRequires: pkgconfig(db-util)
14 BuildRequires: pkgconfig(capi-base-common)
15 BuildRequires: pkgconfig(dbus-1)
16 Requires(post): /sbin/ldconfig
17 Requires(post): /usr/bin/sqlite3
18 Requires(postun): /sbin/ldconfig
21 Account DB libraryXB-Public-Package: no
25 Summary: Development files for %{name}
26 Group: Development/Libraries
27 Requires: %{name} = %{version}-%{release}
29 Development files for %{name}
37 cmake . -DCMAKE_INSTALL_PREFIX=/usr
45 rm -rf %{buildroot}/usr/lib/accounts-svc
50 if [ ! -d /opt/dbspace ]
54 if [ ! -f /opt/dbspace/.account.db ]
55 rm -rf /opt/dbspace/.account.db*
57 sqlite3 /opt/dbspace/.account.db 'PRAGMA journal_mode = PERSIST;
58 CREATE TABLE if not exists account (_id INTEGER PRIMARY KEY AUTOINCREMENT, user_name TEXT, email_address TEXT, display_name TEXT, icon_path TEXT,
59 source TEXT, package_name TEXT, access_token TEXT, domain_name TEXT, auth_type INTEGER, secret INTEGER, sync_support INTEGER,
60 txt_custom0 TEXT, txt_custom1 TEXT, txt_custom2 TEXT, txt_custom3 TEXT, txt_custom4 TEXT,
61 int_custom0 INTEGER, int_custom1 INTEGER, int_custom2 INTEGER, int_custom3 INTEGER, int_custom4 INTEGER);
62 CREATE TABLE if not exists capabilitiy (_id INTEGER PRIMARY KEY AUTOINCREMENT, key INTEGER, value INTEGER,
63 package_name TEXT, user_name TEXT, account_id INTEGER, FOREIGN KEY (account_id) REFERENCES account(_id));'
66 chown 5000:5000 /opt/dbspace/.account.db
67 chown 5000:5000 /opt/dbspace/.account.db-journal
69 chmod 660 /opt/dbspace/.account.db
70 chmod 660 /opt/dbspace/.account.db-journal
72 #chsmack -a 'libaccounts-svc' /opt/dbspace/.account.db
73 #chsmack -a 'libaccounts-svc' /opt/dbspace/.account.db-journal
75 %postun -p /sbin/ldconfig
81 %manifest libaccounts-svc.manifest
82 %defattr(-,root,root,-)
86 %defattr(-,root,root,-)
88 %{_libdir}/pkgconfig/accounts-svc.pc