Tizen:TV: Remove chromium-efl-libs and fix mistype about kdbus configuration
[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 ###################### Activate KDBUS ######################
95 # This configuration flag enables the support of KDBUS
96
97 %if "%_repository" == "arm64-wayland"
98
99 %define _with_kdbus 1
100
101 Macros:
102 %_with_kdbus 1
103 :Macros
104
105 %endif
106
107 ############################# wayland repositories #############################
108
109 %if "%_repository" == "atom-wayland" || "%_repository" == "x86_64-wayland" || "%_repository" == "arm-wayland" || "%_repository" == "arm64-wayland" || "%_repository" == "target-TM1"
110
111 Substitute: pkgconfig(gles20)  pkgconfig(egl) pkgconfig(glesv2)
112 Substitute: pkgconfig(gles11)  pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
113
114 %define _with_wayland 1
115 %define _with_rdp 1
116
117 Macros:
118 %_with_wayland 1
119 %_with_rdp 1
120 :Macros
121
122 %endif
123
124 ############################# X11 repositories #################################
125
126 %if "%_repository" == "atom-x11" || "%_repository" == "x86_64-x11" || "%_repository" == "arm-x11" || "%_repository" == "arm64-x11"
127 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2) pkgconfig(gl)
128 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1_cm) pkgconfig(gl)
129
130 %define _with_x 1
131
132 Macros:
133 %_with_x 1
134 :Macros
135
136 %endif
137
138 ############################# emulator repositories ############################
139
140 %if "%_repository" == "emulator32-wayland" || "%_repository" == "emulator64-wayland"
141
142 Prefer: mesa-libGLESv2
143 Prefer: libwayland-egl
144 Prefer: libgbm
145 Prefer: mesa-libGL
146 Prefer: mesa-libEGL
147 Prefer: emulator-yagl
148
149 Substitute: pkgconfig(gles20)  pkgconfig(egl) pkgconfig(glesv2)
150 Substitute: pkgconfig(gles11)  pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
151
152 %define _with_wayland 1
153 %define _with_emulator 1
154
155 Macros:
156 %_with_wayland 1
157 %_with_emulator 1
158 :Macros
159
160 %endif
161
162 %if "%_repository" == "target-TM1"
163
164 Macros:
165 %tizen_target_name TM1
166 :Macros
167
168 %endif
169
170 ############################# misc config flags ################################
171
172 # This build macro controls the libdlog output. If enabled,
173 # libdlog writes to Systemd Journal. If disabled, libdlog writes to kernel Android
174 # logger FIFO. Affects: dlog.
175 # Owner: Mikko <mikko.ylinen@intel.com>
176 Macros:
177 %_with_dlog_to_systemd_journal 1
178 :Macros
179
180 # Macro used to handle bluetooth popups without syspopup/bt-syspopup which needs OSP .
181 # In IVI, this macro permits to address bluetooth notifications (using C API) to notification-service daemon.
182 # Then homescreen is supposed to deal with those notifications and display relevant popups.
183 # Affects: bluetooth-frwk
184 # Owner: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
185 Macros:
186 %_with_bluetooth_frwk_libnotification 1
187 :Macros
188
189 # This build macro controls whether the OS uses
190 # legacy nfc-manager or neard enabled nfc-manager-neard. If enabled,
191 # nfc-manager-neard is used. Affects: nfc CAPI, emulator-plugin-nfc
192 # Owner: Arron Wang <arron.wang@intel.com>
193 Macros:
194 %_with_neard_nfc 1
195 :Macros
196
197 # Uses mobile-specific Samsung patches for PulseAudio. Tizen Mobile needs
198 # this -> Tizen Mobile is compiled with this option.
199 # Owner: Ismo Puustinen <ismo.puustinen@intel.com>
200 # FIXME: Why this extra define in the obs config ?
201 %define _with_pulseaudio_samsung_policy 1
202 Macros:
203 %_with_pulseaudio_samsung_policy 1
204 :Macros
205
206 # Activate introspection
207 # This is needed on GuPNP to build Rygel correctly in IVI
208 # Impacts potentially packages that use gobject-introspection
209 # Owner: Mikko <mikko.ylinen@intel.com>
210 Macros:
211 %_with_introspection 1
212 :Macros
213
214 ############################# build config #####################################
215
216 %define gcc_version 49
217 Macros:
218 %gcc_version 49
219 :Macros
220
221 ########## targets ##########
222
223 %ifarch i586
224 Target: i686-tizen-linux
225 %endif
226
227 %ifarch armv7hl
228 Target: armv7hl-tizen-linux
229 %endif
230
231 %ifarch armv7l
232 Target: armv7l-tizen-linux
233 %endif
234
235 %ifarch aarch64
236 Target: aarch64-tizen-linux
237 %endif
238
239 ########## cross build ##########/ex
240
241 %ifarch %arm armv7l
242 Hostarch: x86_64
243 # cross build support for the build hosts
244 Preinstall: qemu-linux-user-cross-arm
245 Keep: qemu-linux-user-cross-arm
246 %endif
247
248 %ifarch armv7hl
249 Preinstall: qemu-accel-armv7hl
250 Runscripts: qemu-accel-armv7hl
251 Preinstall: libmount libblkid libuuid
252 %endif
253
254 %ifarch armv7l
255 Preinstall: qemu-accel-armv7l-cross-arm
256 Runscripts: qemu-accel-armv7l-cross-arm
257 Preinstall: libmount libblkid libuuid
258 %endif
259
260 %ifarch aarch64
261 Hostarch: x86_64
262 Preinstall: qemu-linux-user-cross-arm
263 Keep: qemu-linux-user-cross-arm
264 Preinstall: qemu-accel-aarch64-cross-aarch64
265 Runscripts: qemu-accel-aarch64-cross-aarch64
266 Preinstall: libmount libblkid libuuid
267 %endif
268
269 ########## exports for different architectures ##########
270
271 ExportFilter: \.armv7l\.rpm$ armv7l
272 ExportFilter: \.aarch64\.rpm$ aarch64
273 ExportFilter: \.x86_64\.rpm$ x86_64
274
275 ########## buildroot config ##########
276
277 Preinstall: setup filesystem
278 RunScripts: setup
279
280 Preinstall: bash bzip2 coreutils diffutils grep rpm
281 Preinstall: glibc libacl libattr
282 Preinstall: libcap
283 Preinstall: libgcc_s1
284 Preinstall: libpopt sed tar zlib
285 Preinstall: libncurses libreadline
286 Preinstall: libelf libbz2
287 Preinstall: liblzma
288 Preinstall: nss nspr libfreebl3 libsoftokn3
289 Preinstall: libmagic
290 Preinstall: liblua
291 Preinstall: smack libsmack libxml2 libmagic  libmagic-data
292 Preinstall: libsqlite
293 #Preinstall: rpm-security-plugin
294 Preinstall: util-linux
295
296 VMinstall: perl libmount libblkid libext2fs libuuid  grep libpcre util-linux libsmartcols
297
298 Required: binutils gcc glibc rpm-build libtool
299
300 Support: glibc-locale
301 Support: perl
302 Support: hostname
303 Support: cpio findutils
304 Support: file findutils zlib bzip2
305 Support: gzip hostname net-tools
306 Support: make  patch sed  gawk tar grep coreutils pkg-config
307 Support: m4  tzdata
308 Support: util-linux
309 Support: less
310 Support: which  elfutils
311 Support: update-alternatives
312
313 # %ifarch armv7l
314 # Support: python-accel-armv7l-cross-arm
315 # %endif
316 # %ifarch aarch64
317 # Support: python-accel-aarch64-cross-aarch64
318 # %endif
319
320 # FIXME: TO REMOVE (? comes from IVI)
321 Support: gcc-c++
322
323 Keep: cpp%{gcc_version} gcc%{gcc_version} gcc%{gcc_version}-ada libstdc++%{gcc_version}
324 Keep: libstdc++%{gcc_version}-devel gcc%{gcc_version}-c++
325 Keep: cpp gcc libstdc++
326 Keep: pam
327 Keep: binutils cpp  libmagic-data file findutils gawk gcc  gcc-c++
328 Keep: gdbm gzip libada libunwind  glibc-devel libpcre xz-lzma-compat
329 Keep: make  gmp libcap groff cpio
330 Keep: patch rpm-build  nss nspr elfutils python grep libgcc gcc-c++
331 Keep: kernel-headers  perl-libs perl
332 Keep: pkgconfig glib2 tizen-rpm-config
333 Keep: libmpc libmpfr libppl libgmp libppl_c
334 Keep: libcloog libppl libgmpxx
335 Keep: nss-softokn-freebl libmagic libmagic-data
336 Keep: setup
337 Keep: update-alternatives
338 Prefer: libstdc++%{gcc_version} libgcc%{gcc_version}
339 Prefer: libstdc++%{gcc_version}-32bit libstdc++%{gcc_version}-64bit
340
341 Substitute: gettext gettext-tools
342
343 %ifarch x86_64
344 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
345 %else
346 Substitute: glibc-devel-32bit
347 %endif
348
349 ########## compilation flags ##########
350 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__
351 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
352 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
353 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