2 %define __usrdir /usr/lib/systemd/user
10 Source0: starter-%{version}.tar.gz
11 Source1: starter.service
13 Source3: starter-pre.service
14 Source4: starter-pre.path
16 %if "%{profile}" == "tv"
17 ExcludeArch: %{arm} %ix86 x86_64
21 BuildRequires: pkgconfig(appcore-efl)
22 BuildRequires: pkgconfig(aul)
23 BuildRequires: pkgconfig(capi-appfw-application)
24 BuildRequires: pkgconfig(capi-appfw-app-manager)
25 BuildRequires: pkgconfig(capi-system-media-key)
26 BuildRequires: pkgconfig(capi-network-bluetooth)
27 BuildRequires: pkgconfig(capi-system-system-settings)
29 %if "%{profile}" == "mobile"
31 BuildRequires: tts-devel
32 BuildRequires: pkgconfig(capi-message-port)
33 BuildRequires: pkgconfig(security-manager)
34 BuildRequires: pkgconfig(efl-extension)
37 BuildRequires: pkgconfig(feedback)
38 BuildRequires: pkgconfig(db-util)
39 BuildRequires: pkgconfig(dlog)
40 BuildRequires: pkgconfig(ecore)
41 BuildRequires: pkgconfig(ecore-wayland)
42 BuildRequires: pkgconfig(edje)
43 BuildRequires: pkgconfig(edbus)
44 BuildRequires: pkgconfig(eina)
45 BuildRequires: pkgconfig(elementary)
46 BuildRequires: pkgconfig(evas)
47 BuildRequires: pkgconfig(glib-2.0)
48 BuildRequires: pkgconfig(syspopup-caller)
49 BuildRequires: pkgconfig(ui-gadget-1)
50 BuildRequires: pkgconfig(vconf)
51 BuildRequires: pkgconfig(alarm-service)
52 BuildRequires: pkgconfig(pkgmgr-info)
53 BuildRequires: pkgconfig(deviced)
54 BuildRequires: pkgconfig(edbus)
55 BuildRequires: pkgconfig(dbus-1)
56 BuildRequires: pkgconfig(dbus-glib-1)
58 BuildRequires: edje-bin
59 BuildRequires: gettext
60 BuildRequires: gettext-tools
61 Requires(post): /usr/bin/vconftool
65 BuildRequires: pkgconfig(utilX)
76 %if 0%{?sec_build_binary_debug_enable}
77 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
78 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
79 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
82 %if "%{profile}" == "wearable"
83 %define TIZEN_PROFILE_NAME "WEARABLE"
84 export CFLAGS="$CFLAGS -DTIZEN_PROFILE_WEARABLE"
85 export CXXFLAGS="$CXXFLAGS -DTIZEN_PROFILE_WEARABLE"
87 %define TIZEN_PROFILE_NAME "MOBILE"
88 export CFLAGS="$CFLAGS -DTIZEN_PROFILE_MOBILE"
89 export CXXFLAGS="$CXXFLAGS -DTIZEN_PROFILE_MOBILE"
93 export CFLAGS="$CFLAGS -DTIZEN_BUILD_TARGET"
94 export CXXFLAGS="$CXXFLAGS -DTIZEN_BUILD_TARGET"
96 export CFLAGS="$CFLAGS -DTIZEN_BUILD_EMULATOR"
97 export CXXFLAGS="$CXXFLAGS -DTIZEN_BUILD_EMULATOR"
101 export WAYLAND_SUPPORT=On
102 export X11_SUPPORT=Off
104 export WAYLAND_SUPPORT=Off
105 export X11_SUPPORT=On
108 cmake . -DTIZEN_PROFILE_NAME=%{TIZEN_PROFILE_NAME} -DCMAKE_INSTALL_PREFIX=%{_prefix} -DWAYLAND_SUPPORT=${WAYLAND_SUPPORT} -DX11_SUPPORT=${X11_SUPPORT}
116 mkdir -p %{buildroot}%{__usrdir}/default.target.wants
117 mkdir -p %{buildroot}%{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/
119 install -m 0644 %SOURCE1 %{buildroot}%{__usrdir}/starter.service
120 ln -s ../starter.service %{buildroot}%{__usrdir}/default.target.wants/starter.service
122 install -m 0644 %SOURCE2 %{buildroot}%{__usrdir}/starter.path
123 ln -s ../starter.path %{buildroot}%{__usrdir}/default.target.wants/starter.path
125 install -m 0644 %SOURCE3 %{buildroot}%{__usrdir}/starter-pre.service
126 ln -s ../starter-pre.service %{buildroot}%{__usrdir}/default.target.wants/starter-pre.service
128 install -m 0644 %SOURCE4 %{buildroot}%{__usrdir}/starter-pre.path
129 ln -s ../starter-pre.path %{buildroot}%{__usrdir}/default.target.wants/starter-pre.path
131 mkdir -p %{buildroot}/usr/share/license
132 cp -f LICENSE %{buildroot}/usr/share/license/%{name}
133 mkdir -p %{buildroot}/opt/data/home-daemon
136 change_file_executable()
138 chmod +x $@ 2>/dev/null
139 if [ $? -ne 0 ]; then
140 echo "Failed to change the perms of $@"
144 mkdir -p %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/
146 #ln -sf /etc/init.d/rd4starter /etc/rc.d/rc4.d/S81starter
147 #ln -sf /etc/init.d/rd4starter /etc/rc.d/rc3.d/S81starter
152 %manifest starter.manifest
153 %defattr(-,root,root,-)
154 %{_sysconfdir}/init.d/rd4starter
155 %{_sysconfdir}/init.d/rd3starter
157 %{__usrdir}/starter.service
158 %{__usrdir}/starter.path
159 %{__usrdir}/starter-pre.service
160 %{__usrdir}/starter-pre.path
161 %{__usrdir}/default.target.wants/starter.service
162 %{__usrdir}/default.target.wants/starter.path
163 %{__usrdir}/default.target.wants/starter-pre.service
164 %{__usrdir}/default.target.wants/starter-pre.path
165 /usr/share/license/%{name}
166 /opt/data/home-daemon
167 /usr/share/locale/*/LC_MESSAGES/*
169 %if "%{profile}" == "mobile"
170 /usr/share/starter/res/edje/*