Updating Snapshot 498759
[scm/meta/qb.git] / TIZEN / Tizen / Tizen-Unified / project_config
1 ################################################################################
2 # OBS Project config for Tizen:Unified
3 #
4 # vim: set syntax=spec:
5 ################################################################################
6
7 ############################# conflicts resolution #############################
8
9 FileProvides: /usr/sbin/groupadd shadow-utils
10 Prefer: bluetooth-tools-no-firmware
11
12 ############################# profile definition ###############################
13
14 %define _with_tizen 1
15
16 # For classifying debug/release mode
17 Macros:
18 %tizen_build_devel_mode 1
19 :Macros
20
21 # %release_name and %tizen_full_version are used in platform/upstream/tizen-release
22
23 Macros:
24 %release_name Tizen9.0/Unified
25
26 %tizen_version_major 9
27 %tizen_version_minor 0
28 %tizen_version_patch 0
29
30 %tizen_version %{tizen_version_major}.%{tizen_version_minor}
31 %tizen_full_version %{tizen_version}.%{tizen_version_patch}
32 %tizen %tizen_version
33 %vendor tizen
34 %_vendor tizen
35 %_with_tizen 1
36
37 #### %__spec_check_pre exit 0
38 #### %run_check_section 0
39 %opensuse_bs 1
40 %_default_patch_fuzz   2
41 :Macros
42
43 ########## mesa activation / coregl ##########
44
45 %define _with_mesa 1
46 Macros:
47 %_with_mesa 1
48 :Macros
49
50 Substitute: mesa-devel pkgconfig(glesv2)
51 Substitute: pkgconfig(gles20)  pkgconfig(egl) pkgconfig(glesv2)
52 Substitute: pkgconfig(gles11)  pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
53
54 Prefer: coregl coregl-devel
55 Prefer: libwayland-egl libwayland-egl-devel
56 Prefer: vulkan-loader vulkan-loader-devel
57 #libelementary.so (upstream, tizen-only ) so add below Prefer. Requested by EFL team.
58 Prefer: elementary
59
60 ########## WAYLAND #########
61
62 %define _with_wayland 1
63 Macros:
64 %_with_wayland 1
65 :Macros
66
67 ########## RDP flag ##########
68
69 # enable/disable RDP (remote desktop protocol) for wayland
70 # flag: _with_rdp, used in repositories
71 # Affects: weston, freerdp
72 # Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
73
74 ############################# target repositories #############################
75
76 %if "%_repository" == "standard"
77
78 Prefer: mesa libgbm
79 Substitute: mesa-libGLESv2 coregl
80 Substitute: mesa-libEGL coregl
81
82 %define _with_rdp 1
83 Macros:
84 %_with_rdp 1
85 :Macros
86
87 %endif
88
89 ############################# emulator repositories ############################
90
91 %if "%_repository" == "emulator"
92
93 Prefer: libgbm
94 Prefer: emulator-yagl emulator-yagl-devel
95
96 %define _with_emulator 1
97 Macros:
98 %_with_emulator 1
99 :Macros
100
101 %endif
102
103 ############################# standard_gcov repositories ############################
104
105 %if "%_repository" == "standard_gcov"
106 Prefer: mesa libgbm
107 Substitute: mesa-libGLESv2 coregl
108 Substitute: mesa-libEGL coregl
109
110 %define _with_rdp 1
111 Macros:
112 %_with_rdp 1
113 :Macros
114
115 #### Gcov ON ####
116 %define gcov 1
117 Macros:
118 %gcov 1
119 :Macros
120
121 # Temporarily skip the check section.
122 # Build fail occurs in some tests during build
123 # remove this macro when fix errors
124 Macros:
125 %__spec_check_pre exit 0
126 %run_check_section 0
127 :Macros
128
129 %endif
130
131 ############################# misc config flags ################################
132 ########## USAGE ##########
133 #
134 # IMPORTANT: please follow the following rules when playing with flags
135 # ********************************************************************
136 #
137 # In spec file, call %bcond_with macro at the beginning and test with %with:
138 # -------------------------
139 # | %bcond_with myfeature
140 # | [...]
141 # | %if %{with myfeature}
142 # | [...]
143 # | %endif
144 # | [...]
145 # -------------------------
146 #
147 # To activate an option, use:
148 # -------------------------
149 # | %define _with_myfeature 1
150 # | Macros:
151 # | %_with_myfeature 1
152 # | :Macros
153 # -------------------------
154 #
155 # To disable an option, DON'T set the values to 0, as the option would still be defined
156 # but simply comment the lines: this will undefine the option.
157 # -------------------------
158 # | #%define _with_myfeature 1
159 # | #Macros:
160 # | #%_with_myfeature 1
161 # | #:Macros
162 # -------------------------
163 #
164 # More information here:
165 # https://en.opensuse.org/openSUSE:Build_Service_prjconf#.25bcond
166 #
167
168 ########## flags ##########
169
170 # Activate introspection
171 # This is needed on GuPNP to build Rygel correctly in IVI
172 # Impacts potentially packages that use gobject-introspection
173 # Owner: Mikko <mikko.ylinen@intel.com>
174
175 Macros:
176 %_with_introspection 1
177 :Macros
178
179 ############################# other config #####################################
180 # derived from Tizen:Base
181 ################################################################################