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