blob: ae203ed38d2d63138abcd53df41fb8e8d9a2b334 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
|
Name: org.tizen.watch-setting
Version: 0.0.1
Release: 1
Summary: Tizen watch-setting application
URL: http://slp-source.sec.samsung.net
Source: %{name}-%{version}.tar.gz
License: Flora-1.1
Group: TO_BE/FILLED_IN
%if "%{?tizen_profile_name}" == "tv"
ExcludeArch: %{arm} %ix86 x86_64
%endif
%if "%{?tizen_profile_name}" == "mobile"
ExcludeArch: %{arm} %ix86 x86_64
%endif
BuildRequires: cmake
BuildRequires: pkgconfig(edje)
BuildRequires: pkgconfig(embryo)
BuildRequires: pkgconfig(ecore)
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(appcore-efl)
BuildRequires: pkgconfig(appcore-common)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(capi-appfw-application)
BuildRequires: pkgconfig(capi-appfw-app-manager)
BuildRequires: pkgconfig(feedback)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(deviced)
BuildRequires: pkgconfig(pkgmgr)
BuildRequires: pkgconfig(pkgmgr-info)
BuildRequires: gettext-tools
BuildRequires: edje-bin, embryo-bin
BuildRequires: elementary-devel
BuildRequires: pkgconfig(bluetooth-api)
BuildRequires: pkgconfig(capi-network-bluetooth)
BuildRequires: pkgconfig(capi-telephony)
BuildRequires: pkgconfig(capi-base-common)
BuildRequires: pkgconfig(capi-system-device)
BuildRequires: pkgconfig(capi-media-sound-manager)
BuildRequires: pkgconfig(capi-media-player)
BuildRequires: pkgconfig(capi-content-media-content)
BuildRequires: pkgconfig(capi-system-info)
BuildRequires: pkgconfig(capi-system-system-settings)
BuildRequires: pkgconfig(mm-player)
BuildRequires: pkgconfig(mm-sound)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(capi-media-wav-player)
#BuildRequires: pkgconfig(capability-manager)
#BuildRequires: model-build-features
#BuildRequires: pkgconfig(ail)
BuildRequires: pkgconfig(pkgmgr-info)
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(alarm-service)
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(efl-extension)
BuildRequires: pkgconfig(capi-network-wifi-manager)
BuildRequires: pkgconfig(capi-network-nfc)
BuildRequires: pkgconfig(capi-network-stc)
BuildRequires: pkgconfig(storage)
BuildRequires: pkgconfig(capi-base-utils-i18n)
BuildRequires: pkgconfig(tapi)
BuildRequires: pkgconfig(watch-control)
BuildRequires: pkgconfig(capi-location-manager)
Requires : org.tizen.accessibility-setting-wearable
%description
W watch-setting application
%prep
%setup -q
%define PREFIX %{TZ_SYS_RO_APP}/org.tizen.watch-setting
%build
#%if 0export CFLAGS="${CFLAGS} -fPIC -fvisibility=hidden -fvisibility-inlines-hidden"
#CFLAGS+=" -fvisibility=hidden"; export CFLAGS
#CXXFLAGS+=" -fvisibility=hidden"; export CXXFLAGS
#FFLAGS+=" -fvisibility=hidden"; export FFLAGS
%if 0%{?tizen_build_binary_release_type_eng}
export CFLAGS+=" -DTIZEN_ENGINEER_MODE"
export CXXFLAGS+=" -DTIZEN_ENGINEER_MODE"
export FFLAGS+=" -DTIZEN_ENGINEER_MODE"
%endif
%if 0%{?sec_build_binary_debug_enable}
export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
%endif
LDFLAGS+="-Wl,--rpath=%{PREFIX}/lib -Wl,--as-needed -Wl,--hash-style=both"; export LDFLAGS
cmake . -DCMAKE_INSTALL_PREFIX=%{PREFIX} \
-DTZ_SYS_RO_APP=%{TZ_SYS_RO_APP} \
-DTZ_SYS_DATA=%{TZ_SYS_DATA} \
-DTZ_SYS_ETC=%{TZ_SYS_ETC} \
-DTZ_SYS_SHARE=%{TZ_SYS_SHARE} \
-DTZ_SYS_GLOBALUSER_DATA=%{TZ_SYS_GLOBALUSER_DATA} \
-DTZ_USER_CONTENT=%{TZ_USER_CONTENT} \
%if 0%{?sec_build_binary_sdk}
-DFEATURE_SETTING_SDK=YES \
%endif
%ifarch %{ix86}
-DFEATURE_EMUL=YES \
%endif
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
%make_install
mkdir -p %{buildroot}/%{TZ_SYS_RW_APPS}/org.tizen.watch-setting
mkdir -p %{buildroot}/%{TZ_SYS_RW_APPS}/org.tizen.watch-setting/res/images
%clean
%post
#resetSound
%ifarch %{arm}
DEFAULT_CALL_TONE="%{TZ_SYS_GLOBALUSER_DATA}/settings/Ringtones/Twinkle.ogg"
#DEFAULT_CALL_TONE="%{TZ_SYS_SHARE}/settings/Ringtones/Ringtone1.ogg"
%else
DEFAULT_CALL_TONE="%{TZ_SYS_GLOBALUSER_DATA}/settings/Ringtones/Ringtone.ogg"
#DEFAULT_CALL_TONE="%{TZ_SYS_SHARE}/settings/Ringtones/Ringtone1.ogg"
%endif
%ifarch %{arm}
DEFAULT_NOTI_TONE="%{TZ_SYS_GLOBALUSER_DATA}/settings/Alerts/Flicker.ogg"
#DEFAULT_NOTI_TONE="%{TZ_SYS_SHARE}/settings/Alerts/Notification1.ogg"
%else
DEFAULT_NOTI_TONE="%{TZ_SYS_GLOBALUSER_DATA}/settings/Alerts/Notification.ogg"
#DEFAULT_NOTI_TONE="%{TZ_SYS_SHARE}/settings/Alerts/Notification1.ogg"
%endif
#resetTimeAndData
rm -f %{TZ_SYS_ETC}/localtime
ln -s /usr/share/zoneinfo/Asia/Seoul %{TZ_SYS_ETC}/localtime
rm -f /etc/localtime
ln -s %{TZ_SYS_ETC}/localtime /etc/localtime
#resetSecurity
rm -rf %{TZ_SYS_DATA}/setting/set_info
#ln -s /opt/usr/share/settings /opt/share/settings
#+ln -s %{TZ_SYS_SHARE}/settings %{TZ_SYS_SHARE}/settings
# shared dir
mkdir -p %{TZ_SYS_RO_APP}/org.tizen.watch-setting/shared
mkdir -p %{TZ_SYS_RO_APP}/org.tizen.watch-setting/shared/res
mkdir -p %{TZ_SYS_DATA}/setting
mkdir -p %{TZ_SYS_GLOBALUSER_DATA}/settings
%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
%dir %{PREFIX}/data
#%{PREFIX}/bin/*
#%{PREFIX}/res/*
/usr/share/packages/*
/usr/share/icons/default/small/*
#/usr/share/packages/%{name}.xml
%{TZ_SYS_RO_APP}/org.tizen.watch-setting/*
#%{TZ_SYS_RO_APP}/org.tizen.watch-setting/data/images/*
%{TZ_SYS_GLOBALUSER_DATA}/*
/usr/share/Safety.zip
/opt/usr/data/setting/*
|