Tizen:TV/Mobile/Wearable: Remove crosswalk-bin package's _link file.
[scm/meta/obs.git] / Tizen:Wearable / _config
1 ################################################################################
2 # OBS Project config for Tizen:Wearable
3 #
4 # RE contacts:
5 # Joonsub Lee <joon-sub.lee@samsung.com>
6 #
7 # vim: set syntax=spec:
8 ################################################################################
9
10 Patterntype: rpm-md comps
11 Release: <CI_CNT>.<B_CNT>
12 Support: build
13 Support: build-compare build-mkbaselibs
14 Support: rpmlint-mini rpmlint-tizen
15
16 ############################# conflicts resolution #############################
17
18 FileProvides: /usr/sbin/groupadd pwdutils
19 Prefer: util-linux
20 Prefer: libtapi-devel
21 Prefer: libpci-devel
22
23 ############################# profile definition ###############################
24
25 %define profile wearable
26 %define _with_tizen 1
27
28 # %release_name and %tizen_full_version are used in platform/upstream/tizen-release
29
30 Macros:
31 %profile wearable
32 %release_name Tizen3/Wearable
33
34 %tizen_version_major 3
35 %tizen_version_minor 0
36 %tizen_version_patch 0
37
38 %tizen_version %{tizen_version_major}.%{tizen_version_minor}
39 %tizen_full_version %{tizen_version}.%{tizen_version_patch}
40 %tizen %tizen_version
41 %vendor tizen
42 %_vendor tizen
43 %_with_tizen 1
44
45 %check exit 0
46 %run_check_section 0
47 %opensuse_bs 1
48 %_default_patch_fuzz   2
49 :Macros
50
51 ############################# display system ###################################
52
53 ########## display system selection ##########
54
55 # selection of the display system
56 # this selection is done for each repository
57 #
58 # flags combinations:
59 # |----------------------------------------------------
60 # | wayland |  x  | meaning
61 # |----------------------------------------------------
62 # |         |  1  | pure X11 platform(no wayland)
63 # |   1     |     | pure wayland platform (no X11)
64 # |   1     |  1  | wayland but X compatibility
65 # |         |     | no X and no wayland
66 # |----------------------------------------------------
67 #
68 # Owner: Stephane <stephane.desneux@open.eurogiciel.org>
69
70 ########## RDP flag ##########
71
72 # enable/disable RDP (remote desktop protocol) for wayland
73 # flag: _with_rdp, used in repositories
74 # Affects: weston, freerdp
75 # Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
76
77 ########## mesa activation ##########
78
79 %define _with_mesa 1
80 Macros:
81 %_with_mesa 1
82 :Macros
83
84 %ifarch %arm armv7l aarch64
85    Substitute: mesa-devel pkgconfig(glesv2)
86    #FIXME Substitute: pkgconfig(egl)
87 %endif
88
89 ############################# wayland repositories #############################
90
91 %if "%_repository" == "ia32-wayland" || "%_repository" == "x86_64-wayland" || "%_repository" == "arm-wayland"|| "%_repository" == "arm"|| "%_repository" == "arm64" || "%_repository" == "arm64-wayland" || "%_repository" == "wayland" || "%_repository" == "standard"
92
93 Substitute: pkgconfig(gles20)  pkgconfig(egl) pkgconfig(glesv2)
94 Substitute: pkgconfig(gles11)  pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
95
96 %define _with_wayland 1
97 %define _with_rdp 1
98
99 Macros:
100 %_with_wayland 1
101 %_with_rdp 1
102 :Macros
103
104 %endif
105
106 ############################# X11 repositories #################################
107
108 %if "%_repository" == "ia32-x11" || "%_repository" == "x86_64-x11" || "%_repository" == "arm-x11" || "%_repository" == "arm64-x11" || "%_repository" == "x11"
109
110 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2) pkgconfig(gl)
111 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1_cm) pkgconfig(gl)
112
113 %define _with_x 1
114
115 Macros:
116 %_with_x 1
117 :Macros
118
119 %endif
120
121 ############################# X+Wayland repositories ###########################
122
123 %if "%_repository" == "ia32-xwayland" || "%_repository" == "x86_64-xwayland" || "%_repository" == "arm-xwayland" || "%_repository" == "arm64-xwayland" || "%_repository" == "xwayland"
124
125 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2) pkgconfig(gl)
126 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1_cm) pkgconfig(gl)
127
128 %define _with_wayland 1
129 %define _with_x 1
130
131 Macros:
132 %_with_wayland 1
133 %_with_x 1
134 :Macros
135
136 %endif
137
138 ############################# emulator repositories ############################
139
140 %if "%_repository" == "emulator32-x11"
141
142 Prefer: mesa-libGLESv2
143 Prefer: mesa-libGL
144 Prefer: mesa-libEGL
145
146 Substitute: pkgconfig(gles20)  pkgconfig(egl) pkgconfig(glesv2)
147 Substitute: pkgconfig(gles11)  pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
148
149 %define _with_x 1
150 %define _with_emulator 1
151
152 Macros:
153 %_with_x 1
154 %_with_emulator 1
155 :Macros
156
157 %endif
158
159 ############################# misc config flags ################################
160
161 # This build macro controls the libdlog output. If enabled,
162 # libdlog writes to Systemd Journal. If disabled, libdlog writes to kernel Android
163 # logger FIFO. Affects: dlog.
164 # Owner: Mikko <mikko.ylinen@intel.com>
165 Macros:
166 %_with_dlog_to_systemd_journal 1
167 :Macros
168
169 # Macro used to handle bluetooth popups without syspopup/bt-syspopup which needs OSP .
170 # In IVI, this macro permits to address bluetooth notifications (using C API) to notification-service daemon.
171 # Then homescreen is supposed to deal with those notifications and display relevant popups.
172 # Affects: bluetooth-frwk
173 # Owner: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
174 Macros:
175 %_with_bluetooth_frwk_libnotification 1
176 :Macros
177
178 # This build macro controls whether the OS uses
179 # legacy nfc-manager or neard enabled nfc-manager-neard. If enabled,
180 # nfc-manager-neard is used. Affects: nfc CAPI, emulator-plugin-nfc
181 # Owner: Arron Wang <arron.wang@intel.com>
182 Macros:
183 %_with_neard_nfc 1
184 :Macros
185
186 # Uses mobile-specific Samsung patches for PulseAudio. Tizen Mobile needs
187 # this -> Tizen Mobile is compiled with this option.
188 # Owner: Ismo Puustinen <ismo.puustinen@intel.com>
189 # FIXME: Why this extra define in the obs config ?
190 %define _with_pulseaudio_samsung_policy 1
191 Macros:
192 %_with_pulseaudio_samsung_policy 1
193 :Macros
194
195 # Activate introspection
196 # This is needed on GuPNP to build Rygel correctly in IVI
197 # Impacts potentially packages that use gobject-introspection
198 # Owner: Mikko <mikko.ylinen@intel.com>
199 Macros:
200 %_with_introspection 1
201 :Macros
202
203 ############################# build config #####################################
204
205 %define gcc_version 49
206 Macros:
207 %gcc_version 49
208 :Macros
209
210 ########## targets ##########
211
212 %ifarch i586
213 Target: i686-tizen-linux
214 %endif
215
216 %ifarch armv7hl
217 Target: armv7hl-tizen-linux
218 %endif
219
220 %ifarch armv7l
221 Target: armv7l-tizen-linux
222 %endif
223
224 %ifarch aarch64
225 Target: aarch64-tizen-linux
226 %endif
227
228 ########## cross build ##########
229
230 %ifarch %arm armv7l
231 Hostarch: x86_64
232 # cross build support for the build hosts
233 Preinstall: qemu-linux-user-cross-arm
234 Keep: qemu-linux-user-cross-arm
235 %endif
236
237 %ifarch armv7hl
238 Preinstall: qemu-accel-armv7hl
239 Runscripts: qemu-accel-armv7hl
240 Preinstall: libmount libblkid libuuid
241 %endif
242
243 %ifarch armv7l
244 Preinstall: qemu-accel-armv7l-cross-arm
245 Runscripts: qemu-accel-armv7l-cross-arm
246 Preinstall: libmount libblkid libuuid
247 %endif
248
249 %ifarch aarch64
250 Hostarch: x86_64
251 Preinstall: qemu-linux-user-cross-arm
252 Keep: qemu-linux-user-cross-arm
253 Preinstall: qemu-accel-aarch64-cross-aarch64
254 Runscripts: qemu-accel-aarch64-cross-aarch64
255 Preinstall: libmount libblkid libuuid
256 %endif # aarch64
257
258 ########## exports for different architectures ##########
259
260 ExportFilter: \.armv7l\.rpm$ armv7l
261 ExportFilter: \.aarch64\.rpm$ aarch64
262 ExportFilter: \.x86_64\.rpm$ x86_64
263
264 ########## buildroot config ##########
265
266 Preinstall: setup filesystem
267 RunScripts: setup
268
269 Preinstall: bash bzip2 coreutils diffutils grep rpm
270 Preinstall: glibc libacl libattr
271 Preinstall: libcap
272 Preinstall: libgcc_s1
273 Preinstall: libpopt sed tar zlib
274 Preinstall: libncurses libreadline
275 Preinstall: libelf libbz2
276 Preinstall: liblzma
277 Preinstall: nss nspr libfreebl3 libsoftokn3
278 Preinstall: libmagic
279 Preinstall: liblua
280 Preinstall: smack libsmack libxml2 libmagic  libmagic-data
281 Preinstall: libsqlite
282 #Preinstall: rpm-security-plugin
283 Preinstall: util-linux
284
285 VMinstall: perl libmount libblkid libext2fs libuuid  grep libpcre util-linux
286
287 Required: binutils gcc glibc rpm-build libtool
288
289 Support: glibc-locale
290 Support: perl
291 Support: hostname
292 Support: cpio findutils
293 Support: file findutils zlib bzip2
294 Support: gzip hostname net-tools
295 Support: make  patch sed  gawk tar grep coreutils pkg-config
296 Support: m4  tzdata
297 Support: util-linux
298 Support: less
299 Support: which  elfutils
300 Support: update-alternatives
301
302 # FIXME: TO REMOVE (? comes from IVI)
303 Support: gcc-c++
304
305 Keep: cpp%{gcc_version} gcc%{gcc_version} gcc%{gcc_version}-ada libstdc++%{gcc_version}
306 Keep: libstdc++%{gcc_version}-devel gcc%{gcc_version}-c++
307 Keep: cpp gcc libstdc++
308 Keep: pam
309 Keep: binutils cpp  libmagic-data file findutils gawk gcc  gcc-c++
310 Keep: gdbm gzip libada libunwind  glibc-devel libpcre xz-lzma-compat
311 Keep: make  gmp libcap groff cpio
312 Keep: patch rpm-build  nss nspr elfutils python grep libgcc gcc-c++
313 Keep: kernel-headers  perl-libs perl
314 Keep: pkgconfig glib2 tizen-rpm-config
315 Keep: libmpc libmpfr libppl libgmp libppl_c
316 Keep: libcloog libppl libgmpxx
317 Keep: nss-softokn-freebl libmagic libmagic-data
318 Keep: setup
319 Keep: update-alternatives
320 Prefer: libstdc++%{gcc_version} libgcc%{gcc_version}
321 Prefer: libstdc++%{gcc_version}-32bit libstdc++%{gcc_version}-64bit
322
323 Substitute: gettext gettext-tools
324
325 %ifarch x86_64
326 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
327 %else
328 Substitute: glibc-devel-32bit
329 %endif
330
331 ########## compilation flags ##########
332
333 #%__global_cflags -O2 -g2 -feliminate-unused-debug-types -pipe -Wall  -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector  --param=ssp-buffer-size=32 -Wformat -Wformat-security
334
335 Optflags: i686 -O2 -g2 -feliminate-unused-debug-types -pipe -Wall  -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector  --param=ssp-buffer-size=32 -Wformat -Wformat-security -fmessage-length=0 -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
336
337 Optflags: x86_64 -O2 -g2 -feliminate-unused-debug-types -pipe -Wall  -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector  --param=ssp-buffer-size=32 -Wformat -Wformat-security -fmessage-length=0 -m64 -march=corei7 -msse4.2  -mtune=corei7-avx -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer  -fipa-cp-clone
338
339 #generic arm platform
340 #Optflags: armv7l -O2 -g2 -feliminate-unused-debug-types -pipe -Wall  -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector  --param=ssp-buffer-size=32 -Wformat -Wformat-security -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian  -mfpu=vfpv3 -mfloat-abi=softfp -Wp,-D__SOFTFP__
341
342 #activate neon FPU instructions set (crosswalk build)
343 Optflags: armv7l -O2 -g2 -feliminate-unused-debug-types -pipe -Wall  -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector  --param=ssp-buffer-size=32 -Wformat -Wformat-security -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian  -mfpu=neon -mfloat-abi=softfp -Wp,-D__SOFTFP__
344
345 Optflags: aarch64 -O2 -g2 -feliminate-unused-debug-types -pipe -Wall  -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector  -Wformat -Wformat-security -fmessage-length=0 -march=armv8-a+fp+simd+crc+crypto