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 #FIXME Substitute: pkgconfig(egl)
78 ############################# wayland repositories #############################
80 %if "%_repository" == "arm-wayland" || "%_repository" == "arm64-wayland" || "%_repository" == "ia32-wayland" || "%_repository" == "x86_64-wayland"
82 Prefer: coregl coregl-devel
83 Prefer: libwayland-egl libwayland-egl-devel
85 Substitute: mesa-libGLESv2 coregl
86 Substitute: mesa-libEGL coregl
88 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
89 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
91 %define _with_wayland 1
101 ############################# emulator repositories ############################
103 %if "%_repository" == "emulator32-wayland"
105 Substitute: mesa-devel pkgconfig(glesv2)
108 Prefer: coregl coregl-devel
109 Prefer: emulator-yagl emulator-yagl-devel
110 Prefer: libwayland-egl libwayland-egl-devel
112 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
113 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
115 %define _with_wayland 1
116 %define _with_emulator 1
126 ############################# misc config flags ################################
128 ########## USAGE ##########
130 # IMPORTANT: please follow the following rules when playing with flags
131 # ********************************************************************
133 # In spec file, call %bcond_with macro at the beginning and test with %with:
134 # -------------------------
135 # | %bcond_with myfeature
137 # | %if %{with myfeature}
141 # -------------------------
143 # To activate an option, use:
144 # -------------------------
145 # | %define _with_myfeature 1
147 # | %_with_myfeature 1
149 # -------------------------
151 # To disable an option, DON'T set the values to 0, as the option would still be defined
152 # but simply comment the lines: this will undefine the option.
153 # -------------------------
154 # | #%define _with_myfeature 1
156 # | #%_with_myfeature 1
158 # -------------------------
160 # More information here:
161 # https://en.opensuse.org/openSUSE:Build_Service_prjconf#.25bcond
164 ########## flags ##########
166 # This build macro controls the libdlog output. If enabled,
167 # libdlog writes to Systemd Journal. If disabled, libdlog writes to kernel Android
168 # logger FIFO. Affects: dlog.
169 # Owner: Mikko <mikko.ylinen@intel.com>
171 %_with_dlog_to_systemd_journal 1
174 # Macro used to handle bluetooth popups without syspopup/bt-syspopup which needs OSP .
175 # In IVI, this macro permits to address bluetooth notifications (using C API) to notification-service daemon.
176 # Then homescreen is supposed to deal with those notifications and display relevant popups.
177 # Affects: bluetooth-frwk
178 # Owner: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
180 %_with_bluetooth_frwk_libnotification 1
183 # Macro used for testing gstreamer 1.X API
185 # Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
186 %define _with_gstreamer1 1
191 # Macro used for testing libva availability
193 # Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
195 %define _with_libva 1
201 # Macro used for testing Input methods
203 # Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
204 #%define _with_tizenscim 1
209 # This build macro controls whether the OS uses
210 # legacy nfc-manager or neard enabled nfc-manager-neard. If enabled,
211 # nfc-manager-neard is used. Affects: nfc CAPI, emulator-plugin-nfc
212 # Owner: Arron Wang <arron.wang@intel.com>
217 # Uses mobile-specific Samsung patches for PulseAudio. Tizen Mobile needs
218 # this -> Tizen Mobile is compiled with this option.
219 # Owner: Ismo Puustinen <ismo.puustinen@intel.com>
220 # FIXME: Why this extra define in the obs config ?
221 %define _with_pulseaudio_samsung_policy 1
223 %_with_pulseaudio_samsung_policy 1
226 # Activate introspection
227 # This is needed on GuPNP to build Rygel correctly in IVI
228 # Impacts potentially packages that use gobject-introspection
229 # Owner: Mikko <mikko.ylinen@intel.com>
231 %_with_introspection 1
235 # This configuration flag enables the support of KDBUS
236 # Used: platform/upstream/setup
237 # Owner: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
238 #%define _with_kdbus 1
243 ############################# build config #####################################
245 %define gcc_version 49
250 ########## targets ##########
253 Target: i686-tizen-linux
257 Target: armv7hl-tizen-linux
261 Target: armv7l-tizen-linux
265 Target: aarch64-tizen-linux
268 ########## cross build ##########
270 %ifarch %arm armv7l aarch64
272 # cross build support for the build hosts
273 Preinstall: qemu-linux-user-cross
274 Runscripts: qemu-linux-user-cross
275 Keep: qemu-linux-user-cross
279 Preinstall: qemu-accel-armv7l
280 Runscripts: qemu-accel-armv7l
281 Preinstall: libmount libblkid libuuid
285 Preinstall: qemu-accel-aarch64
286 Runscripts: qemu-accel-aarch64
287 Preinstall: libmount libblkid libuuid
290 ########## exports for different architectures ##########
292 ExportFilter: \.armv7l\.rpm$ armv7l
293 ExportFilter: \.aarch64\.rpm$ aarch64
294 ExportFilter: \.x86_64\.rpm$ x86_64
296 ########## buildroot config ##########
298 Preinstall: setup filesystem
301 Preinstall: bash bzip2 coreutils diffutils grep rpm
302 Preinstall: glibc libacl libattr
305 Preinstall: libpopt sed tar zlib
306 Preinstall: libncurses libreadline
307 Preinstall: libelf libbz2
309 Preinstall: nss nspr libfreebl3 libsoftokn3
312 Preinstall: smack libsmack libxml2 libmagic libmagic-data
313 Preinstall: libsqlite
314 Preinstall: util-linux
316 VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols
319 Required: binutils gcc glibc rpm-build libtool
322 Support: glibc-locale
325 Support: cpio findutils
326 Support: file findutils zlib bzip2
327 Support: gzip hostname net-tools
328 Support: make patch sed gawk tar grep coreutils pkg-config
332 Support: which elfutils
333 Support: update-alternatives
334 Support: libstdc++-devel
340 Keep: libstdc++-devel
341 Keep: cpp gcc libstdc++
343 Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
344 Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
345 Keep: make gmp libcap groff cpio
346 Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
347 Keep: kernel-headers perl-libs perl
348 Keep: pkgconfig glib2 tizen-rpm-config
349 Keep: libmpc libmpfr libppl libgmp libppl_c
350 Keep: libcloog libppl libgmpxx
351 Keep: nss-softokn-freebl libmagic libmagic-data
353 Keep: update-alternatives
360 Substitute: gettext gettext-tools
363 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
364 Substitute: libgcc_s1-32bit libgcc-32bit
366 Substitute: glibc-devel-32bit
369 ########## compilation flags ##########
370 # derived from Tizen:Base
371 #######################################