98c8155adc713bdd58f80e8079aff84609d373e9
[scm/meta/obs.git] / Tizen:TV / _config
1 ################################################################################
2 # OBS Project config for Tizen:TV
3 #
4 # RE contacts:
5 # Hyunggi Lee (hyunggi.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 tv
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 tv
31 %release_name Tizen3/TV
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" == "arm-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" == "ia32-wayland" || "%_repository" == "x86_64-wayland" || "%_repository" == "arm-wayland"
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 ############################# misc config flags ################################
152
153 # Activate introspection
154 # This is needed on GuPNP to build Rygel correctly in IVI
155 # Impacts potentially packages that use gobject-introspection
156 # Owner: Mikko <mikko.ylinen@intel.com>
157 Macros:
158 %_with_introspection 1
159 :Macros
160
161 ############################# build config #####################################
162 # derived from Tizen:Base
163 ################################################################################
164
165 ########## compilation flags ##########
166 # derived from Tizen:Base
167 #######################################