sync-up obs meta information.
[scm/meta/obs.git] / Tizen:Common / _config
1 ################################################################################
2 # OBS Project config for Tizen:Common
3 #
4 # RE contacts:
5 # Maciej Wereski <m.wereski@partner.samsung.com>
6 # Pawel Wieczorek <p.wieczorek2@samsung.com>
7 #
8 # Git mirror for OBS config: review.tizen.org:scm/meta/build-config / branch tizen_common
9 #
10 # vim: set syntax=spec:
11 ################################################################################
12
13 ############################# conflicts resolution #############################
14
15 FileProvides: /etc/default/useradd shadow-utils
16 FileProvides: /usr/sbin/useradd shadow-utils
17 FileProvides: /etc/login.defs shadow-utils
18 FileProvides: /usr/sbin/chpasswd shadow-utils
19 FileProvides: /usr/sbin/groupadd shadow-utils
20 FileProvides: /usr/sbin/groupdel shadow-utils
21 FileProvides: /usr/sbin/groupmod shadow-utils
22 FileProvides: /usr/sbin/userdel shadow-utils
23 FileProvides: /usr/sbin/usermod shadow-utils
24 Prefer: shadow-utils
25
26 Prefer: libtapi-devel
27 Prefer: libpci-devel
28 Prefer: bluetooth-tools-no-firmware
29
30 Prefer: vconf-buxton
31 Prefer: vconf-buxton-devel
32 Prefer: vconf-buxton-keys-devel
33
34 ############################# profile definition ###############################
35
36 %define profile common
37 %define _with_tizen 1
38
39 # %release_name and %tizen_full_version are used in platform/upstream/tizen-release
40
41 Macros:
42 %profile common
43 %release_name Tizen3/Common
44
45 %tizen_version_major 3
46 %tizen_version_minor 0
47 %tizen_version_patch 0
48
49 %tizen_version %{tizen_version_major}.%{tizen_version_minor}
50 %tizen_full_version %{tizen_version}.%{tizen_version_patch}
51 %tizen %tizen_version
52 %vendor tizen
53 %_vendor tizen
54 %_with_tizen 1
55
56 %__spec_check_pre exit 0
57 %run_check_section 0
58 %opensuse_bs 1
59 %_default_patch_fuzz   2
60 :Macros
61
62 ########## RDP flag ##########
63
64 # enable/disable RDP (remote desktop protocol) for wayland
65 # flag: _with_rdp, used in repositories
66 # Affects: weston, freerdp
67 # Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
68
69 ########## mesa activation ##########
70
71 %define _with_mesa 1
72 Macros:
73 %_with_mesa 1
74 :Macros
75
76 Substitute: mesa-devel pkgconfig(glesv2)
77 Substitute: pkgconfig(gles20)  pkgconfig(egl) pkgconfig(glesv2)
78 Substitute: pkgconfig(gles11)  pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
79
80 ############################# common config ####################################
81
82 Prefer: coregl coregl-devel
83 Prefer: libwayland-egl libwayland-egl-devel
84
85 %define _with_wayland 1
86 Macros:
87 %_with_wayland 1
88 :Macros
89
90 ############################# wayland repositories #############################
91
92 %if "%_repository" == "arm-wayland" || "%_repository" == "arm64-wayland" || "%_repository" == "ia32-wayland" || "%_repository" == "x86_64-wayland"
93
94 Prefer: mesa libgbm
95 Substitute: mesa-libGLESv2 coregl
96 Substitute: mesa-libEGL coregl
97
98 %define _with_rdp 1
99 Macros:
100 %_with_rdp 1
101 :Macros
102
103 %endif
104
105 ############################# emulator repositories ############################
106
107 %if "%_repository" == "emulator32-wayland"
108
109 Prefer: libgbm
110 Prefer: emulator-yagl emulator-yagl-devel
111
112 %define _with_emulator 1
113 Macros:
114 %_with_emulator 1
115 :Macros
116
117 %endif
118
119
120 ############################# misc config flags ################################
121
122 ########## USAGE ##########
123 #
124 # IMPORTANT: please follow the following rules when playing with flags
125 # ********************************************************************
126 #
127 # In spec file, call %bcond_with macro at the beginning and test with %with:
128 # -------------------------
129 # | %bcond_with myfeature
130 # | [...]
131 # | %if %{with myfeature}
132 # | [...]
133 # | %endif
134 # | [...]
135 # -------------------------
136 #
137 # To activate an option, use:
138 # -------------------------
139 # | %define _with_myfeature 1
140 # | Macros:
141 # | %_with_myfeature 1
142 # | :Macros
143 # -------------------------
144 #
145 # To disable an option, DON'T set the values to 0, as the option would still be defined
146 # but simply comment the lines: this will undefine the option.
147 # -------------------------
148 # | #%define _with_myfeature 1
149 # | #Macros:
150 # | #%_with_myfeature 1
151 # | #:Macros
152 # -------------------------
153 #
154 # More information here:
155 # https://en.opensuse.org/openSUSE:Build_Service_prjconf#.25bcond
156 #
157
158 ########## flags ##########
159
160 # This build macro controls the libdlog output. If enabled,
161 # libdlog writes to Systemd Journal. If disabled, libdlog writes to kernel Android
162 # logger FIFO. Affects: dlog.
163 # Owner: Mikko <mikko.ylinen@intel.com>
164 Macros:
165 %_with_dlog_to_systemd_journal 1
166 :Macros
167
168 # Macro used for testing gstreamer 1.X API
169 # Used: qt*
170 # Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
171 %define _with_gstreamer1 1
172 Macros:
173 %_with_gstreamer1 1
174 :Macros
175
176 # Macro used for testing libva availability
177 # Used: weston
178 # Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
179 %ifarch x86_64 i586
180 %define _with_libva 1
181 Macros:
182 %_with_libva 1
183 :Macros
184 %endif
185
186 # Macro used for testing Input methods
187 # Used: qt*
188 # Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
189 #%define _with_tizenscim 1
190 #Macros:
191 #%_with_tizenscim 1
192 #:Macros
193
194 # Activate introspection
195 # This is needed on GuPNP to build Rygel correctly in IVI
196 # Impacts potentially packages that use gobject-introspection
197 # Owner: Mikko <mikko.ylinen@intel.com>
198 Macros:
199 %_with_introspection 1
200 :Macros
201
202 # Activate KDBUS
203 # This configuration flag enables the support of KDBUS
204 # Used: platform/upstream/setup
205 # Owner: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
206 #%define _with_kdbus 1
207 #Macros:
208 #%_with_kdbus 1
209 #:Macros
210
211 ############################# build config #####################################
212 # derived from Tizen:Base
213 ################################################################################
214
215 ########## compilation flags ##########
216 # derived from Tizen:Base
217 #######################################