1 ################################################################################
2 # OBS Project config for Tizen:Common
5 # Maciej Wereski <m.wereski@partner.samsung.com>
6 # Pawel Wieczorek <p.wieczorek2@samsung.com>
8 # Git mirror for OBS config: review.tizen.org:scm/meta/build-config / branch tizen_common
10 # vim: set syntax=spec:
11 ################################################################################
13 ############################# conflicts resolution #############################
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
28 Prefer: bluetooth-tools-no-firmware
31 Prefer: vconf-buxton-devel
32 Prefer: vconf-buxton-keys-devel
34 ############################# profile definition ###############################
36 %define profile common
39 # %release_name and %tizen_full_version are used in platform/upstream/tizen-release
43 %release_name Tizen3/Common
45 %tizen_version_major 3
46 %tizen_version_minor 0
47 %tizen_version_patch 0
49 %tizen_version %{tizen_version_major}.%{tizen_version_minor}
50 %tizen_full_version %{tizen_version}.%{tizen_version_patch}
56 %__spec_check_pre exit 0
59 %_default_patch_fuzz 2
62 ########## RDP flag ##########
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>
69 ########## mesa activation ##########
76 Substitute: mesa-devel pkgconfig(glesv2)
77 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
78 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
80 ############################# common config ####################################
82 Prefer: coregl coregl-devel
83 Prefer: libwayland-egl libwayland-egl-devel
85 %define _with_wayland 1
90 ############################# wayland repositories #############################
92 %if "%_repository" == "arm-wayland" || "%_repository" == "arm64-wayland" || "%_repository" == "ia32-wayland" || "%_repository" == "x86_64-wayland"
95 Substitute: mesa-libGLESv2 coregl
96 Substitute: mesa-libEGL coregl
105 ############################# emulator repositories ############################
107 %if "%_repository" == "emulator32-wayland"
110 Prefer: emulator-yagl emulator-yagl-devel
112 %define _with_emulator 1
120 ############################# misc config flags ################################
122 ########## USAGE ##########
124 # IMPORTANT: please follow the following rules when playing with flags
125 # ********************************************************************
127 # In spec file, call %bcond_with macro at the beginning and test with %with:
128 # -------------------------
129 # | %bcond_with myfeature
131 # | %if %{with myfeature}
135 # -------------------------
137 # To activate an option, use:
138 # -------------------------
139 # | %define _with_myfeature 1
141 # | %_with_myfeature 1
143 # -------------------------
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
150 # | #%_with_myfeature 1
152 # -------------------------
154 # More information here:
155 # https://en.opensuse.org/openSUSE:Build_Service_prjconf#.25bcond
158 ########## flags ##########
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>
165 %_with_dlog_to_systemd_journal 1
168 # Macro used for testing gstreamer 1.X API
170 # Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
171 %define _with_gstreamer1 1
176 # Macro used for testing libva availability
178 # Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
180 %define _with_libva 1
186 # Macro used for testing Input methods
188 # Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
189 #%define _with_tizenscim 1
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>
199 %_with_introspection 1
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
211 ############################# build config #####################################
212 # derived from Tizen:Base
213 ################################################################################
215 ########## compilation flags ##########
216 # derived from Tizen:Base
217 #######################################