summaryrefslogtreecommitdiff
path: root/packaging/libslp-alarm.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/libslp-alarm.spec')
-rw-r--r--packaging/libslp-alarm.spec113
1 files changed, 79 insertions, 34 deletions
diff --git a/packaging/libslp-alarm.spec b/packaging/libslp-alarm.spec
index 973340a..c7971eb 100644
--- a/packaging/libslp-alarm.spec
+++ b/packaging/libslp-alarm.spec
@@ -1,9 +1,13 @@
+#sbs-git:slp/apps/l/libslp-alarm libslp-alarm 0.2.7 743c13367284f1394db6db3a2d5a936be5279784
+# >> macros
+# << macros
+
Name: libslp-alarm
Summary: libslp-alarm package
Version: 0.2.7
-Release: 59
+Release: 58
Group: System/Libraries
-License: Flora Software License
+License: TBD
Source0: %{name}-%{version}.tar.gz
Requires(post): /sbin/ldconfig
Requires(post): /usr/bin/sqlite3
@@ -14,16 +18,12 @@ BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(db-util)
BuildRequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(vconf)
-BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(alarm-service)
-BuildRequires: vconf-keys-devel
-
-#Patch0: vconf.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
-Alarm Libraries
+
%package devel
Summary: libslp-alarm dev package
@@ -31,24 +31,37 @@ Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
-Development files from %{name}.
%prep
%setup -q -n %{name}-%{version}
-#%patch0 -p1
+# >> setup
+# << setup
%build
+# >> build pre
+# << build pre
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
+# Call make instruction with smp support
make %{?jobs:-j%jobs}
+# >> build post
+# << build post
%install
+rm -rf %{buildroot}
+# >> install pre
+# << install pre
%make_install
+# >> install post
rm -f %{buildroot}/usr/bin/test_alarmdb
+# << install post
+
+%clean
+rm -rf %{buildroot}
@@ -56,43 +69,75 @@ rm -f %{buildroot}/usr/bin/test_alarmdb
/sbin/ldconfig
mkdir -p /opt/dbspace/
sqlite3 /opt/dbspace/.alarm.db 'PRAGMA journal_mode = PERSIST;
- create table if not exists alarm (id INTEGER PRIMARY KEY autoincrement,
- magic INTEGER,
- alarm_mgr_id INTEGER,
- enable INTEGER,
- missed INTEGER,
- author INTEGER,
- name TEXT,
- stime INTEGER,
- atime INTEGER,
- etime INTEGER,
- sdate INTEGER,
- edate INTEGER,
- timezone TEXT,
- repeat_once INTEGER,
- repeat_every INTEGER,
- repeat_weekly INTEGER,
- snooze_enable INTEGER,
- snooze_min INTEGER,
- snooze_times INTEGER,
- count INTEGER,
- type INTEGER,
- tone TEXT,
- volume INTEGER,
- auto_power_on INTEGER );'
+ create table if not exists alarm (id INTEGER PRIMARY KEY,
+ magic INTEGER,
+ alarm_mgr_id INTEGER,
+ enable INTEGER,
+ missed INTEGER,
+ author INTEGER,
+ name TEXT,
+ stime INTEGER,
+ atime INTEGER,
+ etime INTEGER,
+ sdate INTEGER,
+ edate INTEGER,
+ timezone TEXT,
+ repeat_once INTEGER,
+ repeat_every INTEGER,
+ repeat_weekly INTEGER,
+ snooze_enable INTEGER,
+ snooze_min INTEGER,
+ snooze_times INTEGER,
+ count INTEGER,
+ type INTEGER,
+ tone TEXT,
+ volume INTEGER,
+ auto_power_on INTEGER );'
+
+# Change file owner
+#1.libraries
+#2.executables
+#3.configurations
+#4.images
+#5.edje
+#6.internatialize
+#7.etc
+#chown :5000 /opt/dbspace
chown :6001 /opt/dbspace/.alarm.db
chown :6001 /opt/dbspace/.alarm.db-journal
+#chown root:root /opt/dbspace/.alarm.db
+#chown root:root /opt/dbspace/.alarm.db-journal
+
+# Change file permissions
+#1.libraries
+#2.executables
+#3.configurations
+#4.images
+#5.edje
+#6.internatialize
+#7.etc
+#chmod 775 /opt/dbspace
chmod 660 /opt/dbspace/.alarm.db
chmod 660 /opt/dbspace/.alarm.db-journal
+#chmod 600 /opt/dbspace/.alarm.db
+#chmod 600 /opt/dbspace/.alarm.db-journal
%postun -p /sbin/ldconfig
+
+
%files
+%defattr(-,root,root,-)
+# >> files
%{_libdir}/*.so*
+# << files
%files devel
+%defattr(-,root,root,-)
+# >> files devel
%{_includedir}/*
%{_libdir}/pkgconfig/*
+# << files devel