1 Substitute: python-accel-armv7l-cross-arm python-accel-armv7l
2 Substitute: python-accel-aarch64-cross-aarch64 python-accel-aarch64
3 ################################################################################
4 # OBS Project config for Tizen:Common
7 # Maciej Wereski <m.wereski@partner.samsung.com>
8 # Pawel Wieczorek <p.wieczorek2@samsung.com>
10 # Git mirror for OBS config: review.tizen.org:scm/meta/build-config / branch tizen_common
12 # vim: set syntax=spec:
13 ################################################################################
15 Patterntype: rpm-md comps
16 Release: <CI_CNT>.<B_CNT>
18 Support: build-compare build-mkbaselibs
19 Support: rpmlint-mini rpmlint-tizen
21 ############################# conflicts resolution #############################
23 FileProvides: /usr/sbin/groupadd shadow-utils
27 Prefer: bluetooth-tools-no-firmware
30 Prefer: vconf-buxton-devel
31 Prefer: vconf-buxton-keys-devel
33 ############################# profile definition ###############################
35 %define profile common
38 # %release_name and %tizen_full_version are used in platform/upstream/tizen-release
42 %release_name Tizen3/Common
44 %tizen_version_major 3
45 %tizen_version_minor 0
46 %tizen_version_patch 0
48 %tizen_version %{tizen_version_major}.%{tizen_version_minor}
49 %tizen_full_version %{tizen_version}.%{tizen_version_patch}
58 %_default_patch_fuzz 2
61 ########## RDP flag ##########
63 # enable/disable RDP (remote desktop protocol) for wayland
64 # flag: _with_rdp, used in repositories
65 # Affects: weston, freerdp
66 # Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
68 ########## mesa activation ##########
75 Substitute: mesa-devel pkgconfig(glesv2)
76 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
77 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
79 ############################# wayland repositories #############################
81 %if "%_repository" == "arm-wayland" || "%_repository" == "arm64-wayland" || "%_repository" == "ia32-wayland" || "%_repository" == "x86_64-wayland"
83 Prefer: coregl coregl-devel
84 Prefer: libwayland-egl libwayland-egl-devel
86 Substitute: mesa-libGLESv2 coregl
87 Substitute: mesa-libEGL coregl
89 %define _with_wayland 1
99 ############################# emulator repositories ############################
101 %if "%_repository" == "emulator32-wayland"
104 Prefer: coregl coregl-devel
105 Prefer: emulator-yagl emulator-yagl-devel
106 Prefer: libwayland-egl libwayland-egl-devel
108 %define _with_wayland 1
109 %define _with_emulator 1
119 ############################# misc config flags ################################
121 ########## USAGE ##########
123 # IMPORTANT: please follow the following rules when playing with flags
124 # ********************************************************************
126 # In spec file, call %bcond_with macro at the beginning and test with %with:
127 # -------------------------
128 # | %bcond_with myfeature
130 # | %if %{with myfeature}
134 # -------------------------
136 # To activate an option, use:
137 # -------------------------
138 # | %define _with_myfeature 1
140 # | %_with_myfeature 1
142 # -------------------------
144 # To disable an option, DON'T set the values to 0, as the option would still be defined
145 # but simply comment the lines: this will undefine the option.
146 # -------------------------
147 # | #%define _with_myfeature 1
149 # | #%_with_myfeature 1
151 # -------------------------
153 # More information here:
154 # https://en.opensuse.org/openSUSE:Build_Service_prjconf#.25bcond
157 ########## flags ##########
159 # This build macro controls the libdlog output. If enabled,
160 # libdlog writes to Systemd Journal. If disabled, libdlog writes to kernel Android
161 # logger FIFO. Affects: dlog.
162 # Owner: Mikko <mikko.ylinen@intel.com>
164 %_with_dlog_to_systemd_journal 1
167 # Macro used to handle bluetooth popups without syspopup/bt-syspopup which needs OSP .
168 # In IVI, this macro permits to address bluetooth notifications (using C API) to notification-service daemon.
169 # Then homescreen is supposed to deal with those notifications and display relevant popups.
170 # Affects: bluetooth-frwk
171 # Owner: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
173 %_with_bluetooth_frwk_libnotification 1
176 # Macro used for testing gstreamer 1.X API
178 # Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
179 %define _with_gstreamer1 1
184 # Macro used for testing libva availability
186 # Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
188 %define _with_libva 1
194 # Macro used for testing Input methods
196 # Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
197 #%define _with_tizenscim 1
202 # This build macro controls whether the OS uses
203 # legacy nfc-manager or neard enabled nfc-manager-neard. If enabled,
204 # nfc-manager-neard is used. Affects: nfc CAPI, emulator-plugin-nfc
205 # Owner: Arron Wang <arron.wang@intel.com>
210 # Uses mobile-specific Samsung patches for PulseAudio. Tizen Mobile needs
211 # this -> Tizen Mobile is compiled with this option.
212 # Owner: Ismo Puustinen <ismo.puustinen@intel.com>
213 # FIXME: Why this extra define in the obs config ?
214 %define _with_pulseaudio_samsung_policy 1
216 %_with_pulseaudio_samsung_policy 1
219 # Activate introspection
220 # This is needed on GuPNP to build Rygel correctly in IVI
221 # Impacts potentially packages that use gobject-introspection
222 # Owner: Mikko <mikko.ylinen@intel.com>
224 %_with_introspection 1
228 # This configuration flag enables the support of KDBUS
229 # Used: platform/upstream/setup
230 # Owner: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
231 #%define _with_kdbus 1
236 ############################# build config #####################################
238 %define gcc_version 49
243 ########## targets ##########
246 Target: i686-tizen-linux
250 Target: armv7hl-tizen-linux
254 Target: armv7l-tizen-linux
258 Target: aarch64-tizen-linux
261 ########## cross build ##########
263 %ifarch %arm armv7l aarch64
265 # cross build support for the build hosts
266 Preinstall: qemu-linux-user-cross
267 Runscripts: qemu-linux-user-cross
268 Keep: qemu-linux-user-cross
272 Preinstall: qemu-accel-armv7l
273 Runscripts: qemu-accel-armv7l
274 Preinstall: libmount libblkid libuuid
278 Preinstall: qemu-accel-aarch64
279 Runscripts: qemu-accel-aarch64
280 Preinstall: libmount libblkid libuuid
283 ########## exports for different architectures ##########
285 ExportFilter: \.armv7l\.rpm$ armv7l
286 ExportFilter: \.aarch64\.rpm$ aarch64
287 ExportFilter: \.x86_64\.rpm$ x86_64
289 ########## buildroot config ##########
291 Preinstall: setup filesystem
294 Preinstall: bash bzip2 coreutils diffutils grep rpm
295 Preinstall: glibc libacl libattr
298 Preinstall: libpopt sed tar zlib
299 Preinstall: libncurses libreadline
300 Preinstall: libelf libbz2
302 Preinstall: nss nspr libfreebl3 libsoftokn3
305 Preinstall: smack libsmack libxml2 libmagic libmagic-data
306 Preinstall: libsqlite
307 Preinstall: util-linux
309 VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols
312 Required: binutils gcc glibc rpm-build libtool
315 Support: glibc-locale
318 Support: cpio findutils
319 Support: file findutils zlib bzip2
320 Support: gzip hostname net-tools
321 Support: make patch sed gawk tar grep coreutils pkg-config
325 Support: which elfutils
326 Support: update-alternatives
327 Support: libstdc++-devel
333 Keep: libstdc++-devel
334 Keep: cpp gcc libstdc++
336 Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
337 Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
338 Keep: make gmp libcap groff cpio
339 Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
340 Keep: kernel-headers perl-libs perl
341 Keep: pkgconfig glib2 tizen-rpm-config
342 Keep: libmpc libmpfr libppl libgmp libppl_c
343 Keep: libcloog libppl libgmpxx
344 Keep: nss-softokn-freebl libmagic libmagic-data
346 Keep: update-alternatives
353 Substitute: gettext gettext-tools
356 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
357 Substitute: libgcc_s1-32bit libgcc-32bit
359 Substitute: glibc-devel-32bit
362 ########## compilation flags ##########
363 # derived from Tizen:Base
364 #######################################