2bc99b7febbafb0b8edf87ce73778b66ad276969
[scm/meta/obs.git] / Tizen:Unified / _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 Tizen5/Unified
25
26 %tizen_version_major 5
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
57 ########## WAYLAND #########
58
59 %define _with_wayland 1
60 Macros:
61 %_with_wayland 1
62 :Macros
63
64 ########## RDP flag ##########
65
66 # enable/disable RDP (remote desktop protocol) for wayland
67 # flag: _with_rdp, used in repositories
68 # Affects: weston, freerdp
69 # Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
70
71 ############################# target repositories #############################
72
73 %if "%_repository" == "standard"
74
75 Prefer: mesa libgbm
76 Substitute: mesa-libGLESv2 coregl
77 Substitute: mesa-libEGL coregl
78
79 %define _with_rdp 1
80 Macros:
81 %_with_rdp 1
82 :Macros
83
84 %endif
85
86 ############################# emulator repositories ############################
87
88 %if "%_repository" == "emulator"
89
90 Prefer: libgbm
91 Prefer: emulator-yagl emulator-yagl-devel
92
93 %define _with_emulator 1
94 Macros:
95 %_with_emulator 1
96 :Macros
97
98 %endif
99
100 ############################# misc config flags ################################
101 ########## USAGE ##########
102 #
103 # IMPORTANT: please follow the following rules when playing with flags
104 # ********************************************************************
105 #
106 # In spec file, call %bcond_with macro at the beginning and test with %with:
107 # -------------------------
108 # | %bcond_with myfeature
109 # | [...]
110 # | %if %{with myfeature}
111 # | [...]
112 # | %endif
113 # | [...]
114 # -------------------------
115 #
116 # To activate an option, use:
117 # -------------------------
118 # | %define _with_myfeature 1
119 # | Macros:
120 # | %_with_myfeature 1
121 # | :Macros
122 # -------------------------
123 #
124 # To disable an option, DON'T set the values to 0, as the option would still be defined
125 # but simply comment the lines: this will undefine the option.
126 # -------------------------
127 # | #%define _with_myfeature 1
128 # | #Macros:
129 # | #%_with_myfeature 1
130 # | #:Macros
131 # -------------------------
132 #
133 # More information here:
134 # https://en.opensuse.org/openSUSE:Build_Service_prjconf#.25bcond
135 #
136
137 ########## flags ##########
138
139 # Activate introspection
140 # This is needed on GuPNP to build Rygel correctly in IVI
141 # Impacts potentially packages that use gobject-introspection
142 # Owner: Mikko <mikko.ylinen@intel.com>
143
144 Macros:
145 %_with_introspection 1
146 :Macros
147
148 ############################# other config #####################################
149 # derived from Tizen:Base
150 ################################################################################