1 #sbs-git:slp/apps/l/libslp-alarm libslp-alarm 0.2.7 743c13367284f1394db6db3a2d5a936be5279784
6 Summary: libslp-alarm package
9 Group: System/Libraries
11 Source0: %{name}-%{version}.tar.gz
12 Source1001: libslp-alarm.manifest
13 Requires(post): /sbin/ldconfig
14 Requires(post): /usr/bin/sqlite3
15 Requires(postun): /sbin/ldconfig
17 BuildRequires: pkgconfig(gobject-2.0)
18 BuildRequires: pkgconfig(glib-2.0)
19 BuildRequires: pkgconfig(vconf)
20 BuildRequires: pkgconfig(db-util)
21 BuildRequires: pkgconfig(dlog)
22 BuildRequires: pkgconfig(alarm-service)
24 BuildRoot: %{_tmppath}/%{name}-%{version}-build
30 Summary: libslp-alarm dev package
31 Group: Development/Libraries
32 Requires: %{name} = %{version}-%{release}
38 %setup -q -n %{name}-%{version}
48 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
50 # Call make instruction with smp support
62 rm -f %{buildroot}/usr/bin/test_alarmdb
72 mkdir -p /opt/dbspace/
73 sqlite3 /opt/dbspace/.alarm.db 'PRAGMA journal_mode = PERSIST;
74 create table if not exists alarm (id INTEGER PRIMARY KEY,
89 repeat_weekly INTEGER,
90 snooze_enable INTEGER,
97 auto_power_on INTEGER );'
108 #chown :5000 /opt/dbspace
109 chown :6001 /opt/dbspace/.alarm.db
110 chown :6001 /opt/dbspace/.alarm.db-journal
111 #chown root:root /opt/dbspace/.alarm.db
112 #chown root:root /opt/dbspace/.alarm.db-journal
114 # Change file permissions
122 #chmod 775 /opt/dbspace
123 chmod 660 /opt/dbspace/.alarm.db
124 chmod 660 /opt/dbspace/.alarm.db-journal
125 #chmod 600 /opt/dbspace/.alarm.db
126 #chmod 600 /opt/dbspace/.alarm.db-journal
128 chsmack -a 'User' /opt/dbspace/.alarm.db*
130 %postun -p /sbin/ldconfig
135 %manifest %{name}.manifest
136 %defattr(-,root,root,-)
143 %manifest %{name}.manifest
144 %defattr(-,root,root,-)
147 %{_libdir}/pkgconfig/*