Tizen:TV: Remove dbus configuration (missing)
[scm/meta/obs.git] / Tizen:TV / _config
1 Substitute: python-accel-armv7l-cross-arm python-accel-armv7l
2 Substitute: python-accel-aarch64-cross-aarch64 python-accel-aarch64
3 ################################################################################
4 # OBS Project config for Tizen:TV
5 #
6 # RE contacts:
7 # Joonsub Lee (joon-sub.lee@samsung.com)
8 # Hyunggi Lee (hyunggi.lee@samsung.com)
9 #
10 # vim: set syntax=spec:
11 ################################################################################
12
13 Patterntype: rpm-md comps
14 Release: <CI_CNT>.<B_CNT>
15 Support: build
16 Support: build-compare build-mkbaselibs
17 Support: rpmlint-mini rpmlint-tizen
18
19 ############################# conflicts resolution #############################
20
21 FileProvides: /usr/sbin/groupadd pwdutils
22 Prefer: util-linux
23 Prefer: libtapi-devel
24 Prefer: libpci-devel
25
26 ############################# profile definition ###############################
27
28 %define profile tv
29 %define _with_tizen 1
30
31 # For classifying debug/release mode
32 Macros:
33 %tizen_build_devel_mode 1
34 :Macros
35
36 # %release_name and %tizen_full_version are used in platform/upstream/tizen-release
37
38 Macros:
39 %profile tv
40 %release_name Tizen3/TV
41
42 %tizen_version_major 3
43 %tizen_version_minor 0
44 %tizen_version_patch 0
45
46 %tizen_version %{tizen_version_major}.%{tizen_version_minor}
47 %tizen_full_version %{tizen_version}.%{tizen_version_patch}
48 %tizen %tizen_version
49 %vendor tizen
50 %_vendor tizen
51 %_with_tizen 1
52
53 %check exit 0
54 %run_check_section 0
55 %opensuse_bs 1
56 %_default_patch_fuzz   2
57 :Macros
58
59 ############################# display system ###################################
60
61 ########## display system selection ##########
62
63 # selection of the display system
64 # this selection is done for each repository
65 #
66 # flags combinations:
67 # |----------------------------------------------------
68 # | wayland |  x  | meaning
69 # |----------------------------------------------------
70 # |         |  1  | pure X11 platform(no wayland)
71 # |   1     |     | pure wayland platform (no X11)
72 # |   1     |  1  | wayland but X compatibility
73 # |         |     | no X and no wayland
74 # |----------------------------------------------------
75 #
76 # Owner: Stephane <stephane.desneux@open.eurogiciel.org>
77
78 ########## RDP flag ##########
79
80 # enable/disable RDP (remote desktop protocol) for wayland
81 # flag: _with_rdp, used in repositories
82 # Affects: weston, freerdp
83 # Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
84
85 ########## mesa activation ##########
86
87 %define _with_mesa 1
88 Macros:
89 %_with_mesa 1
90 :Macros
91
92 %ifarch %arm armv7l aarch64
93    Substitute: mesa-devel pkgconfig(glesv2)
94    #FIXME Substitute: pkgconfig(egl)
95 %endif
96
97 ########## coregl ##########
98 %ifarch %arm aarch64
99 Prefer: coregl coregl-devel
100 Prefer: libwayland-egl libwayland-egl-devel
101 Substitute: mesa-libGLESv2 coregl
102 Substitute: mesa-libEGL coregl
103 %endif
104
105 ###################### Activate KDBUS ######################
106 # This configuration flag enables the support of KDBUS and Cynara-based Dbus Policy
107
108 %if "%_repository" == "arm-wayland"
109
110 %define _with_kdbus 1
111 %define _with_dbuspolicy 1
112
113 Macros:
114 %_with_kdbus 1
115 %_with_dbuspolicy 1
116 :Macros
117
118 %endif
119
120 ############################# wayland repositories #############################
121
122 %if "%_repository" == "ia32-wayland" || "%_repository" == "x86_64-wayland" || "%_repository" == "arm-wayland"|| "%_repository" == "arm"|| "%_repository" == "arm64" || "%_repository" == "arm64-wayland" || "%_repository" == "wayland" || "%_repository" == "standard"
123
124 Substitute: pkgconfig(gles20)  pkgconfig(egl) pkgconfig(glesv2)
125 Substitute: pkgconfig(gles11)  pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
126
127 %define _with_wayland 1
128 %define _with_rdp 1
129
130 Macros:
131 %_with_wayland 1
132 %_with_rdp 1
133 :Macros
134
135 %endif
136
137 ############################# emulator repositories ############################
138
139 %if "%_repository" == "emulator32-wayland"
140
141 Substitute: mesa-devel pkgconfig(glesv2)
142
143 Substitute: pkgconfig(gles20)  pkgconfig(egl) pkgconfig(glesv2)
144 Substitute: pkgconfig(gles11)  pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
145
146 Prefer: libgbm
147 Prefer: coregl coregl-devel
148 Prefer: emulator-yagl emulator-yagl-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 aarch64
232 Hostarch: x86_64
233 # cross build support for the build hosts
234 Preinstall: qemu-linux-user-cross
235 Runscripts: qemu-linux-user-cross
236 Keep: qemu-linux-user-cross
237 %endif
238
239 %ifarch armv7l
240 Preinstall: qemu-accel-armv7l
241 Runscripts: qemu-accel-armv7l
242 Preinstall: libmount libblkid libuuid
243 %endif
244
245 %ifarch aarch64
246 Preinstall: qemu-accel-aarch64
247 Runscripts: qemu-accel-aarch64
248 Preinstall: libmount libblkid libuuid
249 %endif # aarch64
250
251 ########## exports for different architectures ##########
252
253 ExportFilter: \.armv7l\.rpm$ armv7l
254 ExportFilter: \.aarch64\.rpm$ aarch64
255 ExportFilter: \.x86_64\.rpm$ x86_64
256
257 ########## buildroot config ##########
258
259 Preinstall: setup filesystem
260 RunScripts: setup
261
262 Preinstall: bash bzip2 coreutils diffutils grep rpm
263 Preinstall: glibc libacl libattr
264 Preinstall: libcap
265 Preinstall: libgcc
266 Preinstall: libpopt sed tar zlib
267 Preinstall: libncurses libreadline
268 Preinstall: libelf libbz2
269 Preinstall: liblzma
270 Preinstall: nss nspr libfreebl3 libsoftokn3
271 Preinstall: libmagic
272 Preinstall: liblua
273 Preinstall: smack libsmack libxml2 libmagic  libmagic-data
274 Preinstall: libsqlite
275 #Preinstall: rpm-security-plugin
276 Preinstall: util-linux
277
278 VMinstall: perl libmount libblkid libext2fs libuuid  grep libpcre util-linux libsmartcols
279
280 Required: binutils gcc glibc rpm-build libtool
281 Required: gcc-c++
282
283 Support: glibc-locale
284 Support: perl
285 Support: hostname
286 Support: cpio findutils
287 Support: file findutils zlib bzip2
288 Support: gzip hostname net-tools
289 Support: make  patch sed  gawk tar grep coreutils pkg-config
290 Support: m4  tzdata
291 Support: util-linux
292 Support: less
293 Support: which  elfutils
294 Support: update-alternatives
295 Support: libstdc++-devel
296 Support: cpp
297 Support: libatomic
298 Support: libgomp
299 Support: libitm
300
301 Keep: libstdc++-devel
302 Keep: libstdc++%{gcc_version}-devel gcc%{gcc_version}-c++
303 Keep: cpp gcc libstdc++
304 Keep: pam
305 Keep: binutils cpp  libmagic-data file findutils gawk gcc  gcc-c++
306 Keep: gdbm gzip libada libunwind  glibc-devel libpcre xz-lzma-compat
307 Keep: make  gmp libcap groff cpio
308 Keep: patch rpm-build  nss nspr elfutils python grep libgcc gcc-c++
309 Keep: kernel-headers  perl-libs perl
310 Keep: pkgconfig glib2 tizen-rpm-config
311 Keep: libmpc libmpfr libppl libgmp libppl_c
312 Keep: libcloog libppl libgmpxx
313 Keep: nss-softokn-freebl libmagic libmagic-data
314 Keep: setup
315 Keep: update-alternatives
316 Keep: cpp
317 Keep: gcc-c++
318 Keep: libatomic
319 Keep: libgomp
320 Keep: libitm
321
322 Substitute: gettext gettext-tools
323
324 %ifarch x86_64
325 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
326 Substitute: libgcc_s1-32bit libgcc-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: 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
336 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
337
338 #generic arm platform
339 #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__
340
341 #activate neon FPU instructions set (crosswalk build)
342 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__
343
344 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 -mtune=cortex-a57.cortex-a53