sync smack manifest
[apps/native/starter.git] / packaging / starter.spec
1 Name:       starter
2 Summary:    starter
3 Version: 0.4.11
4 Release:    1
5 Group:      TO_BE/FILLED_IN
6 License:    Flora Software License
7 Source0:    starter-%{version}.tar.gz
8 Requires(post): /usr/bin/vconftool
9 BuildRequires:  cmake
10 BuildRequires:  pkgconfig(glib-2.0)
11 BuildRequires:  pkgconfig(tapi)
12 BuildRequires:  pkgconfig(vconf)
13 BuildRequires:  pkgconfig(heynoti)
14 BuildRequires:  pkgconfig(aul)
15 BuildRequires:  pkgconfig(x11)
16 BuildRequires:  pkgconfig(elementary)
17 BuildRequires:  pkgconfig(ecore)
18 BuildRequires:  pkgconfig(evas)
19 BuildRequires:  pkgconfig(utilX)
20 BuildRequires:  pkgconfig(appcore-efl)
21 BuildRequires:  pkgconfig(capi-appfw-application)
22
23 %description
24 Description: Starter
25
26
27 %prep
28 %setup -q
29
30 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
31
32 %build
33
34 make -j1 
35 %install
36 rm -rf %{buildroot}
37 %make_install
38
39
40 %post
41 change_file_executable()
42 {
43     chmod +x $@ 2>/dev/null
44     if [ $? -ne 0 ]; then
45         echo "Failed to change the perms of $@"
46     fi
47 }
48
49 vconftool set -t int "memory/starter/sequence" 0 -i -u 5000 -g 5000
50 vconftool set -t string file/private/lockscreen/pkgname "org.tizen.draglock" -u 5000 -g 5000
51 vconftool -i set -t int memory/idle_lock/state "0" -u 5000 -g 5000
52
53 ln -sf /etc/init.d/rd4starter /etc/rc.d/rc4.d/S81starter
54 ln -sf /etc/init.d/rd3starter /etc/rc.d/rc3.d/S43starter
55
56 change_file_executable /etc/opt/init/starter.init.sh
57 /etc/opt/init/starter.init.sh
58
59 sync
60
61 %files
62 %manifest starter.manifest
63 %defattr(-,root,root,-)
64 /etc/opt/init/starter.init.sh
65 %{_sysconfdir}/init.d/rd4starter
66 %{_sysconfdir}/init.d/rd3starter
67 %{_bindir}/starter
68 %{_libdir}/liblock-daemon.so