Tizen:3.0:Mobile/TV/Wearable/IVI - using Tizen:3.0:Base
[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 ############################# conflicts resolution #############################
11
12 FileProvides: /usr/sbin/groupadd shadow-utils
13 Prefer: libtapi-devel
14 Prefer: libpci-devel
15 Prefer: bluetooth-tools-no-firmware
16
17 ############################# profile definition ###############################
18
19 %define profile mobile
20 %define _with_tizen 1
21
22 # For classifying debug/release mode
23 Macros:
24 %tizen_build_devel_mode 1
25 :Macros
26
27 # %release_name and %tizen_full_version are used in platform/upstream/tizen-release
28
29 Macros:
30 %profile mobile
31 %release_name Tizen3/Mobile
32
33 %tizen_version_major 3
34 %tizen_version_minor 0
35 %tizen_version_patch 0
36
37 %tizen_version %{tizen_version_major}.%{tizen_version_minor}
38 %tizen_full_version %{tizen_version}.%{tizen_version_patch}
39 %tizen %tizen_version
40 %vendor tizen
41 %_vendor tizen
42 %_with_tizen 1
43
44 %check exit 0
45 %run_check_section 0
46 %opensuse_bs 1
47 %_default_patch_fuzz   2
48 :Macros
49
50 ############################# display system ###################################
51
52 ########## display system selection ##########
53
54 # selection of the display system
55 # this selection is done for each repository
56 #
57 # flags combinations:
58 # |----------------------------------------------------
59 # | wayland |  x  | meaning
60 # |----------------------------------------------------
61 # |         |  1  | pure X11 platform(no wayland)
62 # |   1     |     | pure wayland platform (no X11)
63 # |   1     |  1  | wayland but X compatibility
64 # |         |     | no X and no wayland
65 # |----------------------------------------------------
66 #
67 # Owner: Stephane <stephane.desneux@open.eurogiciel.org>
68
69 ########## RDP flag ##########
70
71 # enable/disable RDP (remote desktop protocol) for wayland
72 # flag: _with_rdp, used in repositories
73 # Affects: weston, freerdp
74 # Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
75
76 ########## mesa activation ##########
77
78 %define _with_mesa 1
79 Macros:
80 %_with_mesa 1
81 :Macros
82
83 %ifarch %arm armv7l aarch64
84    Substitute: mesa-devel pkgconfig(glesv2)
85    #FIXME Substitute: pkgconfig(egl)
86 %endif
87
88 ########## coregl ##########
89 %ifarch %arm aarch64
90 Prefer: coregl coregl-devel
91 Prefer: libwayland-egl libwayland-egl-devel
92 Substitute: mesa-libGLESv2 coregl
93 Substitute: mesa-libEGL coregl
94 %endif
95
96 ###################### Activate KDBUS ######################
97 # This configuration flag enables the support of KDBUS and Cynara-based Dbus Policy
98
99 #%if "%_repository" == "arm64-wayland"
100
101 #%define _with_kdbus 1
102 #%define _with_dbuspolicy 1
103
104 #Macros:
105 #%_with_kdbus 1
106 #%_with_dbuspolicy 1
107 #:Macros
108
109 #%endif
110
111 ############################# wayland repositories #############################
112
113 %if "%_repository" == "atom-wayland" || "%_repository" == "x86_64-wayland" || "%_repository" == "arm-wayland" || "%_repository" == "arm64-wayland" || "%_repository" == "target-TM1"
114
115 Substitute: pkgconfig(gles20)  pkgconfig(egl) pkgconfig(glesv2)
116 Substitute: pkgconfig(gles11)  pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
117
118 %define _with_wayland 1
119 %define _with_rdp 1
120
121 Macros:
122 %_with_wayland 1
123 %_with_rdp 1
124 :Macros
125
126 %endif
127
128 ############################# emulator repositories ############################
129
130 %if "%_repository" == "emulator32-wayland" || "%_repository" == "emulator64-wayland"
131
132 Substitute: mesa-devel pkgconfig(glesv2)
133
134 Substitute: pkgconfig(gles20)  pkgconfig(egl) pkgconfig(glesv2)
135 Substitute: pkgconfig(gles11)  pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
136
137 Prefer: libgbm
138 Prefer: coregl coregl-devel
139 Prefer: emulator-yagl emulator-yagl-devel
140
141 %define _with_wayland 1
142 %define _with_emulator 1
143
144 Macros:
145 %_with_wayland 1
146 %_with_emulator 1
147 :Macros
148
149 %endif
150
151 %if "%_repository" == "target-TM1"
152
153 Macros:
154 %tizen_target_name TM1
155 :Macros
156
157 %endif
158
159 ############################# misc config flags ################################
160
161 # Activate introspection
162 # This is needed on GuPNP to build Rygel correctly in IVI
163 # Impacts potentially packages that use gobject-introspection
164 # Owner: Mikko <mikko.ylinen@intel.com>
165 Macros:
166 %_with_introspection 1
167 :Macros
168
169 ############################# build config #####################################
170 # derived from Tizen:Base
171 ################################################################################
172
173 ########## compilation flags ##########
174 # derived from Tizen:Base
175 #######################################