Tizen:Wearable/Base : Adjust project configrations
[scm/meta/obs.git] / Tizen:Mobile / _config
1 ################################################################################
2 # OBS Project config for Tizen:Mobile
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 mobile
26 %define _with_tizen 1
27
28 # For classifying debug/release mode
29 Macros:
30 %tizen_build_devel_mode 1
31 :Macros
32
33 # %release_name and %tizen_full_version are used in platform/upstream/tizen-release
34
35 Macros:
36 %profile mobile
37 %release_name Tizen3/Mobile
38
39 %tizen_version_major 3
40 %tizen_version_minor 0
41 %tizen_version_patch 0
42
43 %tizen_version %{tizen_version_major}.%{tizen_version_minor}
44 %tizen_full_version %{tizen_version}.%{tizen_version_patch}
45 %tizen %tizen_version
46 %vendor tizen
47 %_vendor tizen
48 %_with_tizen 1
49
50 %check exit 0
51 %run_check_section 0
52 %opensuse_bs 1
53 %_default_patch_fuzz   2
54 :Macros
55
56 ############################# display system ###################################
57
58 ########## display system selection ##########
59
60 # selection of the display system
61 # this selection is done for each repository
62 #
63 # flags combinations:
64 # |----------------------------------------------------
65 # | wayland |  x  | meaning
66 # |----------------------------------------------------
67 # |         |  1  | pure X11 platform(no wayland)
68 # |   1     |     | pure wayland platform (no X11)
69 # |   1     |  1  | wayland but X compatibility
70 # |         |     | no X and no wayland
71 # |----------------------------------------------------
72 #
73 # Owner: Stephane <stephane.desneux@open.eurogiciel.org>
74
75 ########## RDP flag ##########
76
77 # enable/disable RDP (remote desktop protocol) for wayland
78 # flag: _with_rdp, used in repositories
79 # Affects: weston, freerdp
80 # Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
81
82 ########## mesa activation ##########
83
84 %define _with_mesa 1
85 Macros:
86 %_with_mesa 1
87 :Macros
88
89 %ifarch %arm armv7l aarch64
90    Substitute: mesa-devel pkgconfig(glesv2)
91    #FIXME Substitute: pkgconfig(egl)
92 %endif
93
94 ########## coregl ##########
95 %ifarch %arm aarch64
96 Prefer: coregl coregl-devel
97 Prefer: libwayland-egl libwayland-egl-devel
98 Substitute: mesa-libGLESv2 coregl
99 Substitute: mesa-libEGL coregl
100 %endif
101
102 ###################### Activate KDBUS ######################
103 # This configuration flag enables the support of KDBUS
104
105 #%if "%_repository" == "arm64-wayland"
106
107 #%define _with_kdbus 1
108
109 #Macros:
110 #%_with_kdbus 1
111 #:Macros
112
113 #%endif
114
115 ############################# wayland repositories #############################
116
117 %if "%_repository" == "atom-wayland" || "%_repository" == "x86_64-wayland" || "%_repository" == "arm-wayland" || "%_repository" == "arm64-wayland" || "%_repository" == "target-TM1"
118
119 Substitute: pkgconfig(gles20)  pkgconfig(egl) pkgconfig(glesv2)
120 Substitute: pkgconfig(gles11)  pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
121
122 %define _with_wayland 1
123 %define _with_rdp 1
124
125 Macros:
126 %_with_wayland 1
127 %_with_rdp 1
128 :Macros
129
130 %endif
131
132 ############################# X11 repositories #################################
133
134 %if "%_repository" == "atom-x11" || "%_repository" == "x86_64-x11" || "%_repository" == "arm-x11" || "%_repository" == "arm64-x11"
135 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2) pkgconfig(gl)
136 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1_cm) pkgconfig(gl)
137
138 %define _with_x 1
139
140 Macros:
141 %_with_x 1
142 :Macros
143
144 %endif
145
146 ############################# emulator repositories ############################
147
148 %if "%_repository" == "emulator32-wayland" || "%_repository" == "emulator64-wayland"
149
150 Substitute: mesa-libGLESv2 coregl
151 Substitute: mesa-libEGL coregl
152 Substitute: mesa-devel pkgconfig(glesv2)
153
154 Substitute: pkgconfig(gles20)  pkgconfig(egl) pkgconfig(glesv2)
155 Substitute: pkgconfig(gles11)  pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
156
157 Prefer: libgbm
158 Prefer: libwayland-egl
159 Prefer: libwayland-egl-devel
160 Prefer: emulator-yagl emulator-yagl-devel
161 Prefer: coregl-devel
162
163 %define _with_wayland 1
164 %define _with_emulator 1
165
166 Macros:
167 %_with_wayland 1
168 %_with_emulator 1
169 :Macros
170
171 %endif
172
173 %if "%_repository" == "target-TM1"
174
175 Macros:
176 %tizen_target_name TM1
177 :Macros
178
179 %endif
180
181 ############################# misc config flags ################################
182
183 # This build macro controls the libdlog output. If enabled,
184 # libdlog writes to Systemd Journal. If disabled, libdlog writes to kernel Android
185 # logger FIFO. Affects: dlog.
186 # Owner: Mikko <mikko.ylinen@intel.com>
187 Macros:
188 %_with_dlog_to_systemd_journal 1
189 :Macros
190
191 # Macro used to handle bluetooth popups without syspopup/bt-syspopup which needs OSP .
192 # In IVI, this macro permits to address bluetooth notifications (using C API) to notification-service daemon.
193 # Then homescreen is supposed to deal with those notifications and display relevant popups.
194 # Affects: bluetooth-frwk
195 # Owner: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
196 Macros:
197 %_with_bluetooth_frwk_libnotification 1
198 :Macros
199
200 # This build macro controls whether the OS uses
201 # legacy nfc-manager or neard enabled nfc-manager-neard. If enabled,
202 # nfc-manager-neard is used. Affects: nfc CAPI, emulator-plugin-nfc
203 # Owner: Arron Wang <arron.wang@intel.com>
204 Macros:
205 %_with_neard_nfc 1
206 :Macros
207
208 # Uses mobile-specific Samsung patches for PulseAudio. Tizen Mobile needs
209 # this -> Tizen Mobile is compiled with this option.
210 # Owner: Ismo Puustinen <ismo.puustinen@intel.com>
211 # FIXME: Why this extra define in the obs config ?
212 %define _with_pulseaudio_samsung_policy 1
213 Macros:
214 %_with_pulseaudio_samsung_policy 1
215 :Macros
216
217 # Activate introspection
218 # This is needed on GuPNP to build Rygel correctly in IVI
219 # Impacts potentially packages that use gobject-introspection
220 # Owner: Mikko <mikko.ylinen@intel.com>
221 Macros:
222 %_with_introspection 1
223 :Macros
224
225 ############################# build config #####################################
226
227 %define gcc_version 49
228 Macros:
229 %gcc_version 49
230 :Macros
231
232 ########## targets ##########
233
234 %ifarch i586
235 Target: i686-tizen-linux
236 %endif
237
238 %ifarch armv7hl
239 Target: armv7hl-tizen-linux
240 %endif
241
242 %ifarch armv7l
243 Target: armv7l-tizen-linux
244 %endif
245
246 %ifarch aarch64
247 Target: aarch64-tizen-linux
248 %endif
249
250 ########## cross build ##########/ex
251
252 %ifarch %arm armv7l
253 Hostarch: x86_64
254 # cross build support for the build hosts
255 Preinstall: qemu-linux-user-cross-arm
256 Keep: qemu-linux-user-cross-arm
257 %endif
258
259 %ifarch armv7hl
260 Preinstall: qemu-accel-armv7hl
261 Runscripts: qemu-accel-armv7hl
262 Preinstall: libmount libblkid libuuid
263 %endif
264
265 %ifarch armv7l
266 Preinstall: qemu-accel-armv7l-cross-arm
267 Runscripts: qemu-accel-armv7l-cross-arm
268 Preinstall: libmount libblkid libuuid
269 %endif
270
271 %ifarch aarch64
272 Hostarch: x86_64
273 Preinstall: qemu-linux-user-cross-arm
274 Keep: qemu-linux-user-cross-arm
275 Preinstall: qemu-accel-aarch64-cross-aarch64
276 Runscripts: qemu-accel-aarch64-cross-aarch64
277 Preinstall: libmount libblkid libuuid
278 %endif
279
280 ########## exports for different architectures ##########
281
282 ExportFilter: \.armv7l\.rpm$ armv7l
283 ExportFilter: \.aarch64\.rpm$ aarch64
284 ExportFilter: \.x86_64\.rpm$ x86_64
285
286 ########## buildroot config ##########
287
288 Preinstall: setup filesystem
289 RunScripts: setup
290
291 Preinstall: bash bzip2 coreutils diffutils grep rpm
292 Preinstall: glibc libacl libattr
293 Preinstall: libcap
294 Preinstall: libgcc_s1
295 Preinstall: libpopt sed tar zlib
296 Preinstall: libncurses libreadline
297 Preinstall: libelf libbz2
298 Preinstall: liblzma
299 Preinstall: nss nspr libfreebl3 libsoftokn3
300 Preinstall: libmagic
301 Preinstall: liblua
302 Preinstall: smack libsmack libxml2 libmagic  libmagic-data
303 Preinstall: libsqlite
304 #Preinstall: rpm-security-plugin
305 Preinstall: util-linux
306
307 VMinstall: perl libmount libblkid libext2fs libuuid  grep libpcre util-linux libsmartcols
308
309 Required: binutils gcc glibc rpm-build libtool
310
311 Support: glibc-locale
312 Support: perl
313 Support: hostname
314 Support: cpio findutils
315 Support: file findutils zlib bzip2
316 Support: gzip hostname net-tools
317 Support: make  patch sed  gawk tar grep coreutils pkg-config
318 Support: m4  tzdata
319 Support: util-linux
320 Support: less
321 Support: which  elfutils
322 Support: update-alternatives
323
324 # %ifarch armv7l
325 # Support: python-accel-armv7l-cross-arm
326 # %endif
327 # %ifarch aarch64
328 # Support: python-accel-aarch64-cross-aarch64
329 # %endif
330
331 # FIXME: TO REMOVE (? comes from IVI)
332 Support: gcc-c++
333
334 Keep: cpp%{gcc_version} gcc%{gcc_version} gcc%{gcc_version}-ada libstdc++%{gcc_version}
335 Keep: libstdc++%{gcc_version}-devel gcc%{gcc_version}-c++
336 Keep: cpp gcc libstdc++
337 Keep: pam
338 Keep: binutils cpp  libmagic-data file findutils gawk gcc  gcc-c++
339 Keep: gdbm gzip libada libunwind  glibc-devel libpcre xz-lzma-compat
340 Keep: make  gmp libcap groff cpio
341 Keep: patch rpm-build  nss nspr elfutils python grep libgcc gcc-c++
342 Keep: kernel-headers  perl-libs perl
343 Keep: pkgconfig glib2 tizen-rpm-config
344 Keep: libmpc libmpfr libppl libgmp libppl_c
345 Keep: libcloog libppl libgmpxx
346 Keep: nss-softokn-freebl libmagic libmagic-data
347 Keep: setup
348 Keep: update-alternatives
349 Prefer: libstdc++%{gcc_version} libgcc%{gcc_version}
350 Prefer: libstdc++%{gcc_version}-32bit libstdc++%{gcc_version}-64bit
351
352 Substitute: gettext gettext-tools
353
354 %ifarch x86_64
355 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
356 %else
357 Substitute: glibc-devel-32bit
358 %endif
359
360 ########## compilation flags ##########
361 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__
362 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
363 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
364 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