blob: 50a896a232b05ad33c7f3bf6e1b3b54dc2822fbc (
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
|
Name: ug-nfc-efl
Summary: NFC Setting UI
Version: 3.1.9
Release: 0
Group: App/Network
License: Flora-1.1
Source0: %{name}-%{version}.tar.gz
BuildRequires: pkgconfig(ui-gadget-1)
BuildRequires: pkgconfig(notification)
BuildRequires: pkgconfig(capi-content-mime-type)
BuildRequires: pkgconfig(capi-appfw-app-manager)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(pkgmgr-info)
BuildRequires: pkgconfig(syspopup)
BuildRequires: pkgconfig(capi-network-nfc)
BuildRequires: pkgconfig(capi-appfw-application)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(efl-extension)
BuildRequires: pkgconfig(elementary)
BuildRequires: cmake
BuildRequires: edje-tools
BuildRequires: gettext-tools
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Requires: %{name}-compat = %{version}-%{release}
Recommends: %{name}-profile_common = %{version}-%{release}
%description
NFC Setting UI
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if common || tv || ivi || "undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "mobile"
%package profile_common
Summary: NFC Setting UI for Common (+TV, +IVI)
Provides: %{name}-compat = %{version}-%{release}
Provides: %{name}-profile_tv = %{version}-%{release}
Provides: %{name}-profile_ivi = %{version}-%{release}
Conflicts: %{name}-profile_mobile
Conflicts: %{name}-profile_wearable
Requires: %{name}-resource_common
%description profile_common
NFC Setting UI for common profile. TV/IVI profile may share this if needed.
Note that as of 2016/10/07, TV/IVI do not include ug-nfc-efl.
But, for future usage, we assume that they will be based on this profile
if someone adds ug-nfc-efl for TV/IVI.
%endif
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if wearable || "undefined"
%if "%{?profile}" != "common" && "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
%package profile_wearable
Summary: NFC Setting UI for Wearable
Provides: %{name}-compat = %{version}-%{release}
Conflicts: %{name}-profile_mobile
Conflicts: %{name}-profile_common
%description profile_wearable
NFC Setting UI for wearable profile.
%endif
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if mobile || "undefined"
%if "%{?profile}" != "common" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
%package profile_mobile
Summary: NFC Setting UI for Mobile
Provides: %{name}-compat = %{version}-%{release}
Conflicts: %{name}-profile_wearable
Conflicts: %{name}-profile_common
Requires: %{name}-resource_common
%description profile_mobile
NFC Setting UI for mobile profile.
Note that againve wearable, only the .so is different.
%endif
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if wearable || "undefined"
%if "%{?profile}" != "wearable"
%package resource_common
Summary: NFC Setting UI Resource for Common/Mobile/TV/IVI
%description resource_common
Common resource files of common and mobile.
%endif
%prep
%setup -q
%build
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if mobile || "undefined"
%if "%{?profile}" != "common" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
# reinstall (ln -sf) /usr/ug/mobile to /usr/ug at post
mkdir -p mobile
pushd mobile
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/ug/mobile -DTIZEN_MOBILE=1
make %{?jobs:-j%jobs}
%make_install
popd
mkdir -p mobile_ins
mv %{buildroot}/usr/ug/mobile/* mobile_ins/
%endif
mkdir -p common
pushd common
# reinstall (ln -sf) /usr/ug/common to /usr/ug at post
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/ug/common -DTIZEN_COMMON=1
make %{?jobs:-j%jobs}
%make_install
popd
mkdir -p common_ins
mkdir -p common_ins/packages
mv %{buildroot}/usr/ug/common/* common_ins/
mv %{buildroot}/usr/share/packages/* common_ins/packages/
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if wearable || "undefined"
%if "%{?profile}" != "common" && "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
mkdir -p wearable
pushd wearable
cmake .. -DCMAKE_INSTALL_PREFIX=%{_prefix}/apps/org.tizen.nfc-setting-app/ -DTIZEN_WEARABLE=1
make %{?jobs:-j%jobs}
%make_install
popd
mkdir -p wearable_ins
mkdir -p wearable_ins/packages
mv %{buildroot}/%{_prefix}/apps/org.tizen.nfc-setting-app/* wearable_ins/
mv %{buildroot}/usr/share/packages/* wearable_ins/packages/
%endif
%install
mkdir -p %{buildroot}/usr/share/license
cp -af %{_builddir}/%{name}-%{version}/LICENSE.Flora %{buildroot}/usr/share/license/
mkdir -p %{buildroot}/usr/share/packages
mv common_ins/packages/* %{buildroot}/usr/share/packages/
mv wearable_ins/packages/* %{buildroot}/usr/share/packages/
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if common || tv || ivi || "undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "mobile"
mkdir -p %{buildroot}/usr/ug/common
mv common_ins/lib %{buildroot}/usr/ug/common/
%endif
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if mobile || "undefined"
%if "%{?profile}" != "common" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
mkdir -p %{buildroot}/usr/ug/mobile
mv mobile_ins/lib %{buildroot}/usr/ug/mobile/
%endif
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if common || mobile || tv || ivi || "undefined"
# resource from common == resource from mobile
%if "%{?profile}" != "wearable"
mv common_ins/res %{buildroot}/usr/ug/
%endif
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if wearable || "undefined"
%if "%{?profile}" != "common" && "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
mkdir -p %{buildroot}/%{_prefix}/apps/org.tizen.nfc-setting-app
mv wearable_ins/* %{buildroot}/%{_prefix}/apps/org.tizen.nfc-setting-app/
%endif
%post
/sbin/ldconfig
%postun -p /sbin/ldconfig
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if common || tv || ivi || "undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "mobile"
%post profile_common
mkdir -p /usr/ug/bin/
ln -sf /usr/bin/ug-client /usr/ug/bin/ug-nfc-efl
mkdir -p /usr/ug/lib
ln -sf /usr/ug/common/lib/libug-nfc-efl* /usr/ug/lib/
%preun profile_common
rm /usr/ug/lib/libug-nfc-efl*
%endif
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if mobile || "undefined"
%if "%{?profile}" != "common" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
%post profile_mobile
mkdir -p /usr/ug/bin/
ln -sf /usr/bin/ug-client /usr/ug/bin/ug-nfc-efl
mkdir -p /usr/ug/lib
ln -sf /usr/ug/mobile/lib/libug-nfc-efl* /usr/ug/lib/
%preun profile_mobile
rm /usr/ug/lib/libug-nfc-efl*
%endif
%files
%defattr(-,root,root,-)
%{_datadir}/license/LICENSE.Flora
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if common || tv || ivi || "undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "mobile"
%files profile_common
/usr/ug/common/lib/*
%{_datadir}/packages/ug-nfc-efl.xml
%endif
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if mobile || "undefined"
%if "%{?profile}" != "common" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
%files profile_mobile
/usr/ug/mobile/lib/*
%{_datadir}/packages/ug-nfc-efl.xml
%endif
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if wearable || "undefined"
%if "%{?profile}" != "common" && "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
%files profile_wearable
%{_prefix}/apps/org.tizen.nfc-setting-app/*
%{_datadir}/packages/org.tizen.nfc-setting-app.xml
%endif
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if common || mobile || tv || ivi || "undefined"
%if "%{?profile}" != "wearable"
%files resource_common
/usr/ug/res/*
%endif
|