--- /dev/null
+%define _project Tizen:3.0:Common
+
+### from Tizen:3.0:Base
+%define _repository arm
+
+Macros:
+%vendor obs://private/Tizen:3.0:Common
+%_project Tizen:3.0:Common
+
+### from Tizen:3.0:Base
+
+%_repository arm
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Base
+#
+# RE contacts:
+#
+#
+# vim: set syntax=spec:
+################################################################################
+
+Patterntype: rpm-md comps
+Release: <CI_CNT>.<B_CNT>
+Support: build
+Support: build-compare build-mkbaselibs
+# Support: rpmlint-mini rpmlint-tizen
+
+############################# conflicts resolution #############################
+
+Prefer: util-linux
+
+############################# base definition ###############################
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+
+%_binary_payload w5T.xzdio
+:Macros
+
+
+############################# build config #####################################
+
+%define gcc_version 49
+Macros:
+%gcc_version 49
+:Macros
+
+########## targets ##########
+
+%ifarch i586
+Target: i686-tizen-linux
+%endif
+
+%ifarch armv7hl
+Target: armv7hl-tizen-linux
+%endif
+
+%ifarch armv7l
+Target: armv7l-tizen-linux
+%endif
+
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+
+########## cross build ##########
+
+%define build_hostarch x86_64
+Macros:
+%build_hostarch x86_64
+:Macros
+
+%ifarch %arm armv7l aarch64
+Hostarch: x86_64
+# cross build support for the build hosts
+Preinstall: qemu-linux-user-%{build_hostarch}-cross
+Runscripts: qemu-linux-user-%{build_hostarch}-cross
+Keep: qemu-linux-user-%{build_hostarch}-cross
+%endif
+
+%ifarch armv7l
+Preinstall: qemu-accel-%{build_hostarch}-armv7l
+Runscripts: qemu-accel-%{build_hostarch}-armv7l
+Preinstall: libmount libblkid libuuid
+%endif
+
+%ifarch aarch64
+Preinstall: qemu-accel-%{build_hostarch}-aarch64
+Runscripts: qemu-accel-%{build_hostarch}-aarch64
+Preinstall: libmount libblkid libuuid
+%endif # aarch64
+
+Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
+Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
+
+########## exports for different architectures ##########
+
+ExportFilter: \.armv7l\.rpm$ armv7l
+ExportFilter: \.aarch64\.rpm$ aarch64
+ExportFilter: \.x86_64\.rpm$ x86_64
+
+########## buildroot config ##########
+
+Preinstall: setup filesystem
+RunScripts: setup
+
+Preinstall: bash bzip2 coreutils diffutils grep rpm
+Preinstall: glibc libacl libattr
+Preinstall: libcap
+Preinstall: libgcc
+Preinstall: libpopt sed tar zlib
+Preinstall: libncurses libreadline
+Preinstall: libelf libbz2
+Preinstall: liblzma
+Preinstall: nss nspr libfreebl3 libsoftokn3
+Preinstall: libmagic
+Preinstall: liblua
+Preinstall: smack libsmack libxml2 libmagic libmagic-data
+Preinstall: libsqlite
+#Preinstall: rpm-security-plugin
+Preinstall: util-linux util-linux-su
+
+VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols
+
+Required: binutils gcc glibc rpm-build libtool
+Required: gcc-c++
+
+Support: glibc-locale
+Support: perl
+Support: hostname
+Support: cpio findutils
+Support: file findutils zlib bzip2
+Support: gzip hostname net-tools
+Support: make patch sed gawk tar grep coreutils pkg-config
+Support: m4 tzdata
+Support: util-linux
+Support: less
+Support: which elfutils
+Support: update-alternatives
+Support: libstdc++-devel
+Support: cpp
+Support: libatomic
+Support: libgomp
+Support: libitm
+
+Keep: libstdc++-devel
+Keep: cpp gcc libstdc++
+Keep: pam
+Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
+Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
+Keep: make gmp libcap groff cpio
+Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
+Keep: kernel-headers perl-libs perl
+Keep: pkgconfig glib2 tizen-rpm-config
+Keep: libmpc libmpfr libppl libgmp libppl_c
+Keep: libcloog libppl libgmpxx
+Keep: nss-softokn-freebl libmagic libmagic-data
+Keep: setup
+Keep: update-alternatives
+Keep: cpp
+Keep: gcc-c++
+Keep: libatomic
+Keep: libgomp
+Keep: libitm
+
+Substitute: gettext gettext-tools
+
+%ifarch x86_64
+Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
+Substitute: libgcc_s1-32bit libgcc-32bit
+%else
+Substitute: glibc-devel-32bit
+%endif
+
+########## compilation flags ##########
+%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
+
+Optflags: armv7l %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -mthumb -Wp,-D__SOFTFP__ -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb
+Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
+Optflags: i686 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+Optflags: x86_64 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m64 -march=corei7 -msse4.2 -mtune=corei7-avx -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+### from Tizen:3.0:Common
+%define _repository arm-wayland
+
+Macros:
+
+%distribution Tizen:3.0:Common / arm-wayland
+%_project Tizen:3.0:Common
+
+### from Tizen:3.0:Common
+
+%_repository arm-wayland
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Common
+#
+# RE contacts:
+# Maciej Wereski <m.wereski@partner.samsung.com>
+# Pawel Wieczorek <p.wieczorek2@samsung.com>
+#
+# Git mirror for OBS config: review.tizen.org:scm/meta/build-config / branch tizen_common
+#
+# vim: set syntax=spec:
+################################################################################
+
+############################# conflicts resolution #############################
+
+FileProvides: /etc/default/useradd shadow-utils
+FileProvides: /usr/sbin/useradd shadow-utils
+FileProvides: /etc/login.defs shadow-utils
+FileProvides: /usr/sbin/chpasswd shadow-utils
+FileProvides: /usr/sbin/groupadd shadow-utils
+FileProvides: /usr/sbin/groupdel shadow-utils
+FileProvides: /usr/sbin/groupmod shadow-utils
+FileProvides: /usr/sbin/userdel shadow-utils
+FileProvides: /usr/sbin/usermod shadow-utils
+Prefer: shadow-utils
+
+Prefer: libtapi-devel
+Prefer: libpci-devel
+Prefer: bluetooth-tools-no-firmware
+
+Prefer: vconf-buxton
+Prefer: vconf-buxton-devel
+Prefer: vconf-buxton-keys-devel
+
+############################# profile definition ###############################
+
+%define profile common
+%define _with_tizen 1
+
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%profile common
+%release_name Tizen3/Common
+
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+:Macros
+
+########## RDP flag ##########
+
+# enable/disable RDP (remote desktop protocol) for wayland
+# flag: _with_rdp, used in repositories
+# Affects: weston, freerdp
+# Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
+
+########## mesa activation ##########
+
+%define _with_mesa 1
+Macros:
+%_with_mesa 1
+:Macros
+
+Substitute: mesa-devel pkgconfig(glesv2)
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+############################# common config ####################################
+
+Prefer: coregl coregl-devel
+Prefer: libwayland-egl libwayland-egl-devel
+
+%define _with_wayland 1
+Macros:
+%_with_wayland 1
+:Macros
+
+############################# wayland repositories #############################
+
+%if "%_repository" == "arm-wayland" || "%_repository" == "arm64-wayland" || "%_repository" == "ia32-wayland" || "%_repository" == "x86_64-wayland"
+
+Prefer: mesa libgbm
+Substitute: mesa-libGLESv2 coregl
+Substitute: mesa-libEGL coregl
+
+%define _with_rdp 1
+Macros:
+%_with_rdp 1
+:Macros
+
+%endif
+
+############################# emulator repositories ############################
+
+%if "%_repository" == "emulator32-wayland"
+
+Prefer: libgbm
+Prefer: emulator-yagl emulator-yagl-devel
+
+%define _with_emulator 1
+Macros:
+%_with_emulator 1
+:Macros
+
+%endif
+
+
+############################# misc config flags ################################
+
+########## USAGE ##########
+#
+# IMPORTANT: please follow the following rules when playing with flags
+# ********************************************************************
+#
+# In spec file, call %bcond_with macro at the beginning and test with %with:
+# -------------------------
+# | %bcond_with myfeature
+# | [...]
+# | %if %{with myfeature}
+# | [...]
+# | %endif
+# | [...]
+# -------------------------
+#
+# To activate an option, use:
+# -------------------------
+# | %define _with_myfeature 1
+# | Macros:
+# | %_with_myfeature 1
+# | :Macros
+# -------------------------
+#
+# To disable an option, DON'T set the values to 0, as the option would still be defined
+# but simply comment the lines: this will undefine the option.
+# -------------------------
+# | #%define _with_myfeature 1
+# | #Macros:
+# | #%_with_myfeature 1
+# | #:Macros
+# -------------------------
+#
+# More information here:
+# https://en.opensuse.org/openSUSE:Build_Service_prjconf#.25bcond
+#
+
+########## flags ##########
+
+# This build macro controls the libdlog output. If enabled,
+# libdlog writes to Systemd Journal. If disabled, libdlog writes to kernel Android
+# logger FIFO. Affects: dlog.
+# Owner: Mikko <mikko.ylinen@intel.com>
+Macros:
+%_with_dlog_to_systemd_journal 1
+:Macros
+
+# Macro used for testing gstreamer 1.X API
+# Used: qt*
+# Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
+%define _with_gstreamer1 1
+Macros:
+%_with_gstreamer1 1
+:Macros
+
+# Macro used for testing libva availability
+# Used: weston
+# Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
+%ifarch x86_64 i586
+%define _with_libva 1
+Macros:
+%_with_libva 1
+:Macros
+%endif
+
+# Macro used for testing Input methods
+# Used: qt*
+# Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
+#%define _with_tizenscim 1
+#Macros:
+#%_with_tizenscim 1
+#:Macros
+
+# Activate introspection
+# This is needed on GuPNP to build Rygel correctly in IVI
+# Impacts potentially packages that use gobject-introspection
+# Owner: Mikko <mikko.ylinen@intel.com>
+Macros:
+%_with_introspection 1
+:Macros
+
+# Activate KDBUS
+# This configuration flag enables the support of KDBUS
+# Used: platform/upstream/setup
+# Owner: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
+#%define _with_kdbus 1
+#Macros:
+#%_with_kdbus 1
+#:Macros
+
+############################# build config #####################################
+# derived from Tizen:Base
+################################################################################
+
+########## compilation flags ##########
+# derived from Tizen:Base
+#######################################
\ No newline at end of file
--- /dev/null
+%define _project Tizen:3.0:Common
+
+### from Tizen:3.0:Base
+%define _repository arm64
+
+Macros:
+%vendor obs://private/Tizen:3.0:Common
+%_project Tizen:3.0:Common
+
+### from Tizen:3.0:Base
+
+%_repository arm64
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Base
+#
+# RE contacts:
+#
+#
+# vim: set syntax=spec:
+################################################################################
+
+Patterntype: rpm-md comps
+Release: <CI_CNT>.<B_CNT>
+Support: build
+Support: build-compare build-mkbaselibs
+# Support: rpmlint-mini rpmlint-tizen
+
+############################# conflicts resolution #############################
+
+Prefer: util-linux
+
+############################# base definition ###############################
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+
+%_binary_payload w5T.xzdio
+:Macros
+
+
+############################# build config #####################################
+
+%define gcc_version 49
+Macros:
+%gcc_version 49
+:Macros
+
+########## targets ##########
+
+%ifarch i586
+Target: i686-tizen-linux
+%endif
+
+%ifarch armv7hl
+Target: armv7hl-tizen-linux
+%endif
+
+%ifarch armv7l
+Target: armv7l-tizen-linux
+%endif
+
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+
+########## cross build ##########
+
+%define build_hostarch x86_64
+Macros:
+%build_hostarch x86_64
+:Macros
+
+%ifarch %arm armv7l aarch64
+Hostarch: x86_64
+# cross build support for the build hosts
+Preinstall: qemu-linux-user-%{build_hostarch}-cross
+Runscripts: qemu-linux-user-%{build_hostarch}-cross
+Keep: qemu-linux-user-%{build_hostarch}-cross
+%endif
+
+%ifarch armv7l
+Preinstall: qemu-accel-%{build_hostarch}-armv7l
+Runscripts: qemu-accel-%{build_hostarch}-armv7l
+Preinstall: libmount libblkid libuuid
+%endif
+
+%ifarch aarch64
+Preinstall: qemu-accel-%{build_hostarch}-aarch64
+Runscripts: qemu-accel-%{build_hostarch}-aarch64
+Preinstall: libmount libblkid libuuid
+%endif # aarch64
+
+Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
+Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
+
+########## exports for different architectures ##########
+
+ExportFilter: \.armv7l\.rpm$ armv7l
+ExportFilter: \.aarch64\.rpm$ aarch64
+ExportFilter: \.x86_64\.rpm$ x86_64
+
+########## buildroot config ##########
+
+Preinstall: setup filesystem
+RunScripts: setup
+
+Preinstall: bash bzip2 coreutils diffutils grep rpm
+Preinstall: glibc libacl libattr
+Preinstall: libcap
+Preinstall: libgcc
+Preinstall: libpopt sed tar zlib
+Preinstall: libncurses libreadline
+Preinstall: libelf libbz2
+Preinstall: liblzma
+Preinstall: nss nspr libfreebl3 libsoftokn3
+Preinstall: libmagic
+Preinstall: liblua
+Preinstall: smack libsmack libxml2 libmagic libmagic-data
+Preinstall: libsqlite
+#Preinstall: rpm-security-plugin
+Preinstall: util-linux util-linux-su
+
+VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols
+
+Required: binutils gcc glibc rpm-build libtool
+Required: gcc-c++
+
+Support: glibc-locale
+Support: perl
+Support: hostname
+Support: cpio findutils
+Support: file findutils zlib bzip2
+Support: gzip hostname net-tools
+Support: make patch sed gawk tar grep coreutils pkg-config
+Support: m4 tzdata
+Support: util-linux
+Support: less
+Support: which elfutils
+Support: update-alternatives
+Support: libstdc++-devel
+Support: cpp
+Support: libatomic
+Support: libgomp
+Support: libitm
+
+Keep: libstdc++-devel
+Keep: cpp gcc libstdc++
+Keep: pam
+Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
+Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
+Keep: make gmp libcap groff cpio
+Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
+Keep: kernel-headers perl-libs perl
+Keep: pkgconfig glib2 tizen-rpm-config
+Keep: libmpc libmpfr libppl libgmp libppl_c
+Keep: libcloog libppl libgmpxx
+Keep: nss-softokn-freebl libmagic libmagic-data
+Keep: setup
+Keep: update-alternatives
+Keep: cpp
+Keep: gcc-c++
+Keep: libatomic
+Keep: libgomp
+Keep: libitm
+
+Substitute: gettext gettext-tools
+
+%ifarch x86_64
+Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
+Substitute: libgcc_s1-32bit libgcc-32bit
+%else
+Substitute: glibc-devel-32bit
+%endif
+
+########## compilation flags ##########
+%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
+
+Optflags: armv7l %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -mthumb -Wp,-D__SOFTFP__ -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb
+Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
+Optflags: i686 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+Optflags: x86_64 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m64 -march=corei7 -msse4.2 -mtune=corei7-avx -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+### from Tizen:3.0:Common
+%define _repository arm64-wayland
+
+Macros:
+
+%distribution Tizen:3.0:Common / arm64-wayland
+%_project Tizen:3.0:Common
+
+### from Tizen:3.0:Common
+
+%_repository arm64-wayland
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Common
+#
+# RE contacts:
+# Maciej Wereski <m.wereski@partner.samsung.com>
+# Pawel Wieczorek <p.wieczorek2@samsung.com>
+#
+# Git mirror for OBS config: review.tizen.org:scm/meta/build-config / branch tizen_common
+#
+# vim: set syntax=spec:
+################################################################################
+
+############################# conflicts resolution #############################
+
+FileProvides: /etc/default/useradd shadow-utils
+FileProvides: /usr/sbin/useradd shadow-utils
+FileProvides: /etc/login.defs shadow-utils
+FileProvides: /usr/sbin/chpasswd shadow-utils
+FileProvides: /usr/sbin/groupadd shadow-utils
+FileProvides: /usr/sbin/groupdel shadow-utils
+FileProvides: /usr/sbin/groupmod shadow-utils
+FileProvides: /usr/sbin/userdel shadow-utils
+FileProvides: /usr/sbin/usermod shadow-utils
+Prefer: shadow-utils
+
+Prefer: libtapi-devel
+Prefer: libpci-devel
+Prefer: bluetooth-tools-no-firmware
+
+Prefer: vconf-buxton
+Prefer: vconf-buxton-devel
+Prefer: vconf-buxton-keys-devel
+
+############################# profile definition ###############################
+
+%define profile common
+%define _with_tizen 1
+
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%profile common
+%release_name Tizen3/Common
+
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+:Macros
+
+########## RDP flag ##########
+
+# enable/disable RDP (remote desktop protocol) for wayland
+# flag: _with_rdp, used in repositories
+# Affects: weston, freerdp
+# Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
+
+########## mesa activation ##########
+
+%define _with_mesa 1
+Macros:
+%_with_mesa 1
+:Macros
+
+Substitute: mesa-devel pkgconfig(glesv2)
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+############################# common config ####################################
+
+Prefer: coregl coregl-devel
+Prefer: libwayland-egl libwayland-egl-devel
+
+%define _with_wayland 1
+Macros:
+%_with_wayland 1
+:Macros
+
+############################# wayland repositories #############################
+
+%if "%_repository" == "arm-wayland" || "%_repository" == "arm64-wayland" || "%_repository" == "ia32-wayland" || "%_repository" == "x86_64-wayland"
+
+Prefer: mesa libgbm
+Substitute: mesa-libGLESv2 coregl
+Substitute: mesa-libEGL coregl
+
+%define _with_rdp 1
+Macros:
+%_with_rdp 1
+:Macros
+
+%endif
+
+############################# emulator repositories ############################
+
+%if "%_repository" == "emulator32-wayland"
+
+Prefer: libgbm
+Prefer: emulator-yagl emulator-yagl-devel
+
+%define _with_emulator 1
+Macros:
+%_with_emulator 1
+:Macros
+
+%endif
+
+
+############################# misc config flags ################################
+
+########## USAGE ##########
+#
+# IMPORTANT: please follow the following rules when playing with flags
+# ********************************************************************
+#
+# In spec file, call %bcond_with macro at the beginning and test with %with:
+# -------------------------
+# | %bcond_with myfeature
+# | [...]
+# | %if %{with myfeature}
+# | [...]
+# | %endif
+# | [...]
+# -------------------------
+#
+# To activate an option, use:
+# -------------------------
+# | %define _with_myfeature 1
+# | Macros:
+# | %_with_myfeature 1
+# | :Macros
+# -------------------------
+#
+# To disable an option, DON'T set the values to 0, as the option would still be defined
+# but simply comment the lines: this will undefine the option.
+# -------------------------
+# | #%define _with_myfeature 1
+# | #Macros:
+# | #%_with_myfeature 1
+# | #:Macros
+# -------------------------
+#
+# More information here:
+# https://en.opensuse.org/openSUSE:Build_Service_prjconf#.25bcond
+#
+
+########## flags ##########
+
+# This build macro controls the libdlog output. If enabled,
+# libdlog writes to Systemd Journal. If disabled, libdlog writes to kernel Android
+# logger FIFO. Affects: dlog.
+# Owner: Mikko <mikko.ylinen@intel.com>
+Macros:
+%_with_dlog_to_systemd_journal 1
+:Macros
+
+# Macro used for testing gstreamer 1.X API
+# Used: qt*
+# Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
+%define _with_gstreamer1 1
+Macros:
+%_with_gstreamer1 1
+:Macros
+
+# Macro used for testing libva availability
+# Used: weston
+# Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
+%ifarch x86_64 i586
+%define _with_libva 1
+Macros:
+%_with_libva 1
+:Macros
+%endif
+
+# Macro used for testing Input methods
+# Used: qt*
+# Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
+#%define _with_tizenscim 1
+#Macros:
+#%_with_tizenscim 1
+#:Macros
+
+# Activate introspection
+# This is needed on GuPNP to build Rygel correctly in IVI
+# Impacts potentially packages that use gobject-introspection
+# Owner: Mikko <mikko.ylinen@intel.com>
+Macros:
+%_with_introspection 1
+:Macros
+
+# Activate KDBUS
+# This configuration flag enables the support of KDBUS
+# Used: platform/upstream/setup
+# Owner: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
+#%define _with_kdbus 1
+#Macros:
+#%_with_kdbus 1
+#:Macros
+
+############################# build config #####################################
+# derived from Tizen:Base
+################################################################################
+
+########## compilation flags ##########
+# derived from Tizen:Base
+#######################################
\ No newline at end of file
--- /dev/null
+%define _project Tizen:3.0:Common
+
+### from Tizen:3.0:Base
+%define _repository emulator32
+
+Macros:
+%vendor obs://private/Tizen:3.0:Common
+%_project Tizen:3.0:Common
+
+### from Tizen:3.0:Base
+
+%_repository emulator32
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Base
+#
+# RE contacts:
+#
+#
+# vim: set syntax=spec:
+################################################################################
+
+Patterntype: rpm-md comps
+Release: <CI_CNT>.<B_CNT>
+Support: build
+Support: build-compare build-mkbaselibs
+# Support: rpmlint-mini rpmlint-tizen
+
+############################# conflicts resolution #############################
+
+Prefer: util-linux
+
+############################# base definition ###############################
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+
+%_binary_payload w5T.xzdio
+:Macros
+
+
+############################# build config #####################################
+
+%define gcc_version 49
+Macros:
+%gcc_version 49
+:Macros
+
+########## targets ##########
+
+%ifarch i586
+Target: i686-tizen-linux
+%endif
+
+%ifarch armv7hl
+Target: armv7hl-tizen-linux
+%endif
+
+%ifarch armv7l
+Target: armv7l-tizen-linux
+%endif
+
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+
+########## cross build ##########
+
+%define build_hostarch x86_64
+Macros:
+%build_hostarch x86_64
+:Macros
+
+%ifarch %arm armv7l aarch64
+Hostarch: x86_64
+# cross build support for the build hosts
+Preinstall: qemu-linux-user-%{build_hostarch}-cross
+Runscripts: qemu-linux-user-%{build_hostarch}-cross
+Keep: qemu-linux-user-%{build_hostarch}-cross
+%endif
+
+%ifarch armv7l
+Preinstall: qemu-accel-%{build_hostarch}-armv7l
+Runscripts: qemu-accel-%{build_hostarch}-armv7l
+Preinstall: libmount libblkid libuuid
+%endif
+
+%ifarch aarch64
+Preinstall: qemu-accel-%{build_hostarch}-aarch64
+Runscripts: qemu-accel-%{build_hostarch}-aarch64
+Preinstall: libmount libblkid libuuid
+%endif # aarch64
+
+Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
+Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
+
+########## exports for different architectures ##########
+
+ExportFilter: \.armv7l\.rpm$ armv7l
+ExportFilter: \.aarch64\.rpm$ aarch64
+ExportFilter: \.x86_64\.rpm$ x86_64
+
+########## buildroot config ##########
+
+Preinstall: setup filesystem
+RunScripts: setup
+
+Preinstall: bash bzip2 coreutils diffutils grep rpm
+Preinstall: glibc libacl libattr
+Preinstall: libcap
+Preinstall: libgcc
+Preinstall: libpopt sed tar zlib
+Preinstall: libncurses libreadline
+Preinstall: libelf libbz2
+Preinstall: liblzma
+Preinstall: nss nspr libfreebl3 libsoftokn3
+Preinstall: libmagic
+Preinstall: liblua
+Preinstall: smack libsmack libxml2 libmagic libmagic-data
+Preinstall: libsqlite
+#Preinstall: rpm-security-plugin
+Preinstall: util-linux util-linux-su
+
+VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols
+
+Required: binutils gcc glibc rpm-build libtool
+Required: gcc-c++
+
+Support: glibc-locale
+Support: perl
+Support: hostname
+Support: cpio findutils
+Support: file findutils zlib bzip2
+Support: gzip hostname net-tools
+Support: make patch sed gawk tar grep coreutils pkg-config
+Support: m4 tzdata
+Support: util-linux
+Support: less
+Support: which elfutils
+Support: update-alternatives
+Support: libstdc++-devel
+Support: cpp
+Support: libatomic
+Support: libgomp
+Support: libitm
+
+Keep: libstdc++-devel
+Keep: cpp gcc libstdc++
+Keep: pam
+Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
+Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
+Keep: make gmp libcap groff cpio
+Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
+Keep: kernel-headers perl-libs perl
+Keep: pkgconfig glib2 tizen-rpm-config
+Keep: libmpc libmpfr libppl libgmp libppl_c
+Keep: libcloog libppl libgmpxx
+Keep: nss-softokn-freebl libmagic libmagic-data
+Keep: setup
+Keep: update-alternatives
+Keep: cpp
+Keep: gcc-c++
+Keep: libatomic
+Keep: libgomp
+Keep: libitm
+
+Substitute: gettext gettext-tools
+
+%ifarch x86_64
+Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
+Substitute: libgcc_s1-32bit libgcc-32bit
+%else
+Substitute: glibc-devel-32bit
+%endif
+
+########## compilation flags ##########
+%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
+
+Optflags: armv7l %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -mthumb -Wp,-D__SOFTFP__ -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb
+Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
+Optflags: i686 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+Optflags: x86_64 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m64 -march=corei7 -msse4.2 -mtune=corei7-avx -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+### from Tizen:3.0:Common
+%define _repository emulator32-wayland
+
+Macros:
+
+%distribution Tizen:3.0:Common / emulator32-wayland
+%_project Tizen:3.0:Common
+
+### from Tizen:3.0:Common
+
+%_repository emulator32-wayland
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Common
+#
+# RE contacts:
+# Maciej Wereski <m.wereski@partner.samsung.com>
+# Pawel Wieczorek <p.wieczorek2@samsung.com>
+#
+# Git mirror for OBS config: review.tizen.org:scm/meta/build-config / branch tizen_common
+#
+# vim: set syntax=spec:
+################################################################################
+
+############################# conflicts resolution #############################
+
+FileProvides: /etc/default/useradd shadow-utils
+FileProvides: /usr/sbin/useradd shadow-utils
+FileProvides: /etc/login.defs shadow-utils
+FileProvides: /usr/sbin/chpasswd shadow-utils
+FileProvides: /usr/sbin/groupadd shadow-utils
+FileProvides: /usr/sbin/groupdel shadow-utils
+FileProvides: /usr/sbin/groupmod shadow-utils
+FileProvides: /usr/sbin/userdel shadow-utils
+FileProvides: /usr/sbin/usermod shadow-utils
+Prefer: shadow-utils
+
+Prefer: libtapi-devel
+Prefer: libpci-devel
+Prefer: bluetooth-tools-no-firmware
+
+Prefer: vconf-buxton
+Prefer: vconf-buxton-devel
+Prefer: vconf-buxton-keys-devel
+
+############################# profile definition ###############################
+
+%define profile common
+%define _with_tizen 1
+
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%profile common
+%release_name Tizen3/Common
+
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+:Macros
+
+########## RDP flag ##########
+
+# enable/disable RDP (remote desktop protocol) for wayland
+# flag: _with_rdp, used in repositories
+# Affects: weston, freerdp
+# Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
+
+########## mesa activation ##########
+
+%define _with_mesa 1
+Macros:
+%_with_mesa 1
+:Macros
+
+Substitute: mesa-devel pkgconfig(glesv2)
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+############################# common config ####################################
+
+Prefer: coregl coregl-devel
+Prefer: libwayland-egl libwayland-egl-devel
+
+%define _with_wayland 1
+Macros:
+%_with_wayland 1
+:Macros
+
+############################# wayland repositories #############################
+
+%if "%_repository" == "arm-wayland" || "%_repository" == "arm64-wayland" || "%_repository" == "ia32-wayland" || "%_repository" == "x86_64-wayland"
+
+Prefer: mesa libgbm
+Substitute: mesa-libGLESv2 coregl
+Substitute: mesa-libEGL coregl
+
+%define _with_rdp 1
+Macros:
+%_with_rdp 1
+:Macros
+
+%endif
+
+############################# emulator repositories ############################
+
+%if "%_repository" == "emulator32-wayland"
+
+Prefer: libgbm
+Prefer: emulator-yagl emulator-yagl-devel
+
+%define _with_emulator 1
+Macros:
+%_with_emulator 1
+:Macros
+
+%endif
+
+
+############################# misc config flags ################################
+
+########## USAGE ##########
+#
+# IMPORTANT: please follow the following rules when playing with flags
+# ********************************************************************
+#
+# In spec file, call %bcond_with macro at the beginning and test with %with:
+# -------------------------
+# | %bcond_with myfeature
+# | [...]
+# | %if %{with myfeature}
+# | [...]
+# | %endif
+# | [...]
+# -------------------------
+#
+# To activate an option, use:
+# -------------------------
+# | %define _with_myfeature 1
+# | Macros:
+# | %_with_myfeature 1
+# | :Macros
+# -------------------------
+#
+# To disable an option, DON'T set the values to 0, as the option would still be defined
+# but simply comment the lines: this will undefine the option.
+# -------------------------
+# | #%define _with_myfeature 1
+# | #Macros:
+# | #%_with_myfeature 1
+# | #:Macros
+# -------------------------
+#
+# More information here:
+# https://en.opensuse.org/openSUSE:Build_Service_prjconf#.25bcond
+#
+
+########## flags ##########
+
+# This build macro controls the libdlog output. If enabled,
+# libdlog writes to Systemd Journal. If disabled, libdlog writes to kernel Android
+# logger FIFO. Affects: dlog.
+# Owner: Mikko <mikko.ylinen@intel.com>
+Macros:
+%_with_dlog_to_systemd_journal 1
+:Macros
+
+# Macro used for testing gstreamer 1.X API
+# Used: qt*
+# Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
+%define _with_gstreamer1 1
+Macros:
+%_with_gstreamer1 1
+:Macros
+
+# Macro used for testing libva availability
+# Used: weston
+# Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
+%ifarch x86_64 i586
+%define _with_libva 1
+Macros:
+%_with_libva 1
+:Macros
+%endif
+
+# Macro used for testing Input methods
+# Used: qt*
+# Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
+#%define _with_tizenscim 1
+#Macros:
+#%_with_tizenscim 1
+#:Macros
+
+# Activate introspection
+# This is needed on GuPNP to build Rygel correctly in IVI
+# Impacts potentially packages that use gobject-introspection
+# Owner: Mikko <mikko.ylinen@intel.com>
+Macros:
+%_with_introspection 1
+:Macros
+
+# Activate KDBUS
+# This configuration flag enables the support of KDBUS
+# Used: platform/upstream/setup
+# Owner: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
+#%define _with_kdbus 1
+#Macros:
+#%_with_kdbus 1
+#:Macros
+
+############################# build config #####################################
+# derived from Tizen:Base
+################################################################################
+
+########## compilation flags ##########
+# derived from Tizen:Base
+#######################################
\ No newline at end of file
--- /dev/null
+%define _project Tizen:3.0:Common
+
+### from Tizen:3.0:Base
+%define _repository ia32
+
+Macros:
+%vendor obs://private/Tizen:3.0:Common
+%_project Tizen:3.0:Common
+
+### from Tizen:3.0:Base
+
+%_repository ia32
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Base
+#
+# RE contacts:
+#
+#
+# vim: set syntax=spec:
+################################################################################
+
+Patterntype: rpm-md comps
+Release: <CI_CNT>.<B_CNT>
+Support: build
+Support: build-compare build-mkbaselibs
+# Support: rpmlint-mini rpmlint-tizen
+
+############################# conflicts resolution #############################
+
+Prefer: util-linux
+
+############################# base definition ###############################
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+
+%_binary_payload w5T.xzdio
+:Macros
+
+
+############################# build config #####################################
+
+%define gcc_version 49
+Macros:
+%gcc_version 49
+:Macros
+
+########## targets ##########
+
+%ifarch i586
+Target: i686-tizen-linux
+%endif
+
+%ifarch armv7hl
+Target: armv7hl-tizen-linux
+%endif
+
+%ifarch armv7l
+Target: armv7l-tizen-linux
+%endif
+
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+
+########## cross build ##########
+
+%define build_hostarch x86_64
+Macros:
+%build_hostarch x86_64
+:Macros
+
+%ifarch %arm armv7l aarch64
+Hostarch: x86_64
+# cross build support for the build hosts
+Preinstall: qemu-linux-user-%{build_hostarch}-cross
+Runscripts: qemu-linux-user-%{build_hostarch}-cross
+Keep: qemu-linux-user-%{build_hostarch}-cross
+%endif
+
+%ifarch armv7l
+Preinstall: qemu-accel-%{build_hostarch}-armv7l
+Runscripts: qemu-accel-%{build_hostarch}-armv7l
+Preinstall: libmount libblkid libuuid
+%endif
+
+%ifarch aarch64
+Preinstall: qemu-accel-%{build_hostarch}-aarch64
+Runscripts: qemu-accel-%{build_hostarch}-aarch64
+Preinstall: libmount libblkid libuuid
+%endif # aarch64
+
+Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
+Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
+
+########## exports for different architectures ##########
+
+ExportFilter: \.armv7l\.rpm$ armv7l
+ExportFilter: \.aarch64\.rpm$ aarch64
+ExportFilter: \.x86_64\.rpm$ x86_64
+
+########## buildroot config ##########
+
+Preinstall: setup filesystem
+RunScripts: setup
+
+Preinstall: bash bzip2 coreutils diffutils grep rpm
+Preinstall: glibc libacl libattr
+Preinstall: libcap
+Preinstall: libgcc
+Preinstall: libpopt sed tar zlib
+Preinstall: libncurses libreadline
+Preinstall: libelf libbz2
+Preinstall: liblzma
+Preinstall: nss nspr libfreebl3 libsoftokn3
+Preinstall: libmagic
+Preinstall: liblua
+Preinstall: smack libsmack libxml2 libmagic libmagic-data
+Preinstall: libsqlite
+#Preinstall: rpm-security-plugin
+Preinstall: util-linux util-linux-su
+
+VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols
+
+Required: binutils gcc glibc rpm-build libtool
+Required: gcc-c++
+
+Support: glibc-locale
+Support: perl
+Support: hostname
+Support: cpio findutils
+Support: file findutils zlib bzip2
+Support: gzip hostname net-tools
+Support: make patch sed gawk tar grep coreutils pkg-config
+Support: m4 tzdata
+Support: util-linux
+Support: less
+Support: which elfutils
+Support: update-alternatives
+Support: libstdc++-devel
+Support: cpp
+Support: libatomic
+Support: libgomp
+Support: libitm
+
+Keep: libstdc++-devel
+Keep: cpp gcc libstdc++
+Keep: pam
+Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
+Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
+Keep: make gmp libcap groff cpio
+Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
+Keep: kernel-headers perl-libs perl
+Keep: pkgconfig glib2 tizen-rpm-config
+Keep: libmpc libmpfr libppl libgmp libppl_c
+Keep: libcloog libppl libgmpxx
+Keep: nss-softokn-freebl libmagic libmagic-data
+Keep: setup
+Keep: update-alternatives
+Keep: cpp
+Keep: gcc-c++
+Keep: libatomic
+Keep: libgomp
+Keep: libitm
+
+Substitute: gettext gettext-tools
+
+%ifarch x86_64
+Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
+Substitute: libgcc_s1-32bit libgcc-32bit
+%else
+Substitute: glibc-devel-32bit
+%endif
+
+########## compilation flags ##########
+%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
+
+Optflags: armv7l %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -mthumb -Wp,-D__SOFTFP__ -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb
+Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
+Optflags: i686 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+Optflags: x86_64 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m64 -march=corei7 -msse4.2 -mtune=corei7-avx -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+### from Tizen:3.0:Common
+%define _repository ia32-wayland
+
+Macros:
+
+%distribution Tizen:3.0:Common / ia32-wayland
+%_project Tizen:3.0:Common
+
+### from Tizen:3.0:Common
+
+%_repository ia32-wayland
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Common
+#
+# RE contacts:
+# Maciej Wereski <m.wereski@partner.samsung.com>
+# Pawel Wieczorek <p.wieczorek2@samsung.com>
+#
+# Git mirror for OBS config: review.tizen.org:scm/meta/build-config / branch tizen_common
+#
+# vim: set syntax=spec:
+################################################################################
+
+############################# conflicts resolution #############################
+
+FileProvides: /etc/default/useradd shadow-utils
+FileProvides: /usr/sbin/useradd shadow-utils
+FileProvides: /etc/login.defs shadow-utils
+FileProvides: /usr/sbin/chpasswd shadow-utils
+FileProvides: /usr/sbin/groupadd shadow-utils
+FileProvides: /usr/sbin/groupdel shadow-utils
+FileProvides: /usr/sbin/groupmod shadow-utils
+FileProvides: /usr/sbin/userdel shadow-utils
+FileProvides: /usr/sbin/usermod shadow-utils
+Prefer: shadow-utils
+
+Prefer: libtapi-devel
+Prefer: libpci-devel
+Prefer: bluetooth-tools-no-firmware
+
+Prefer: vconf-buxton
+Prefer: vconf-buxton-devel
+Prefer: vconf-buxton-keys-devel
+
+############################# profile definition ###############################
+
+%define profile common
+%define _with_tizen 1
+
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%profile common
+%release_name Tizen3/Common
+
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+:Macros
+
+########## RDP flag ##########
+
+# enable/disable RDP (remote desktop protocol) for wayland
+# flag: _with_rdp, used in repositories
+# Affects: weston, freerdp
+# Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
+
+########## mesa activation ##########
+
+%define _with_mesa 1
+Macros:
+%_with_mesa 1
+:Macros
+
+Substitute: mesa-devel pkgconfig(glesv2)
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+############################# common config ####################################
+
+Prefer: coregl coregl-devel
+Prefer: libwayland-egl libwayland-egl-devel
+
+%define _with_wayland 1
+Macros:
+%_with_wayland 1
+:Macros
+
+############################# wayland repositories #############################
+
+%if "%_repository" == "arm-wayland" || "%_repository" == "arm64-wayland" || "%_repository" == "ia32-wayland" || "%_repository" == "x86_64-wayland"
+
+Prefer: mesa libgbm
+Substitute: mesa-libGLESv2 coregl
+Substitute: mesa-libEGL coregl
+
+%define _with_rdp 1
+Macros:
+%_with_rdp 1
+:Macros
+
+%endif
+
+############################# emulator repositories ############################
+
+%if "%_repository" == "emulator32-wayland"
+
+Prefer: libgbm
+Prefer: emulator-yagl emulator-yagl-devel
+
+%define _with_emulator 1
+Macros:
+%_with_emulator 1
+:Macros
+
+%endif
+
+
+############################# misc config flags ################################
+
+########## USAGE ##########
+#
+# IMPORTANT: please follow the following rules when playing with flags
+# ********************************************************************
+#
+# In spec file, call %bcond_with macro at the beginning and test with %with:
+# -------------------------
+# | %bcond_with myfeature
+# | [...]
+# | %if %{with myfeature}
+# | [...]
+# | %endif
+# | [...]
+# -------------------------
+#
+# To activate an option, use:
+# -------------------------
+# | %define _with_myfeature 1
+# | Macros:
+# | %_with_myfeature 1
+# | :Macros
+# -------------------------
+#
+# To disable an option, DON'T set the values to 0, as the option would still be defined
+# but simply comment the lines: this will undefine the option.
+# -------------------------
+# | #%define _with_myfeature 1
+# | #Macros:
+# | #%_with_myfeature 1
+# | #:Macros
+# -------------------------
+#
+# More information here:
+# https://en.opensuse.org/openSUSE:Build_Service_prjconf#.25bcond
+#
+
+########## flags ##########
+
+# This build macro controls the libdlog output. If enabled,
+# libdlog writes to Systemd Journal. If disabled, libdlog writes to kernel Android
+# logger FIFO. Affects: dlog.
+# Owner: Mikko <mikko.ylinen@intel.com>
+Macros:
+%_with_dlog_to_systemd_journal 1
+:Macros
+
+# Macro used for testing gstreamer 1.X API
+# Used: qt*
+# Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
+%define _with_gstreamer1 1
+Macros:
+%_with_gstreamer1 1
+:Macros
+
+# Macro used for testing libva availability
+# Used: weston
+# Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
+%ifarch x86_64 i586
+%define _with_libva 1
+Macros:
+%_with_libva 1
+:Macros
+%endif
+
+# Macro used for testing Input methods
+# Used: qt*
+# Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
+#%define _with_tizenscim 1
+#Macros:
+#%_with_tizenscim 1
+#:Macros
+
+# Activate introspection
+# This is needed on GuPNP to build Rygel correctly in IVI
+# Impacts potentially packages that use gobject-introspection
+# Owner: Mikko <mikko.ylinen@intel.com>
+Macros:
+%_with_introspection 1
+:Macros
+
+# Activate KDBUS
+# This configuration flag enables the support of KDBUS
+# Used: platform/upstream/setup
+# Owner: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
+#%define _with_kdbus 1
+#Macros:
+#%_with_kdbus 1
+#:Macros
+
+############################# build config #####################################
+# derived from Tizen:Base
+################################################################################
+
+########## compilation flags ##########
+# derived from Tizen:Base
+#######################################
\ No newline at end of file
--- /dev/null
+%define _project Tizen:3.0:Common
+
+### from Tizen:3.0:Base
+%define _repository x86_64
+
+Macros:
+%vendor obs://private/Tizen:3.0:Common
+%_project Tizen:3.0:Common
+
+### from Tizen:3.0:Base
+
+%_repository x86_64
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Base
+#
+# RE contacts:
+#
+#
+# vim: set syntax=spec:
+################################################################################
+
+Patterntype: rpm-md comps
+Release: <CI_CNT>.<B_CNT>
+Support: build
+Support: build-compare build-mkbaselibs
+# Support: rpmlint-mini rpmlint-tizen
+
+############################# conflicts resolution #############################
+
+Prefer: util-linux
+
+############################# base definition ###############################
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+
+%_binary_payload w5T.xzdio
+:Macros
+
+
+############################# build config #####################################
+
+%define gcc_version 49
+Macros:
+%gcc_version 49
+:Macros
+
+########## targets ##########
+
+%ifarch i586
+Target: i686-tizen-linux
+%endif
+
+%ifarch armv7hl
+Target: armv7hl-tizen-linux
+%endif
+
+%ifarch armv7l
+Target: armv7l-tizen-linux
+%endif
+
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+
+########## cross build ##########
+
+%define build_hostarch x86_64
+Macros:
+%build_hostarch x86_64
+:Macros
+
+%ifarch %arm armv7l aarch64
+Hostarch: x86_64
+# cross build support for the build hosts
+Preinstall: qemu-linux-user-%{build_hostarch}-cross
+Runscripts: qemu-linux-user-%{build_hostarch}-cross
+Keep: qemu-linux-user-%{build_hostarch}-cross
+%endif
+
+%ifarch armv7l
+Preinstall: qemu-accel-%{build_hostarch}-armv7l
+Runscripts: qemu-accel-%{build_hostarch}-armv7l
+Preinstall: libmount libblkid libuuid
+%endif
+
+%ifarch aarch64
+Preinstall: qemu-accel-%{build_hostarch}-aarch64
+Runscripts: qemu-accel-%{build_hostarch}-aarch64
+Preinstall: libmount libblkid libuuid
+%endif # aarch64
+
+Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
+Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
+
+########## exports for different architectures ##########
+
+ExportFilter: \.armv7l\.rpm$ armv7l
+ExportFilter: \.aarch64\.rpm$ aarch64
+ExportFilter: \.x86_64\.rpm$ x86_64
+
+########## buildroot config ##########
+
+Preinstall: setup filesystem
+RunScripts: setup
+
+Preinstall: bash bzip2 coreutils diffutils grep rpm
+Preinstall: glibc libacl libattr
+Preinstall: libcap
+Preinstall: libgcc
+Preinstall: libpopt sed tar zlib
+Preinstall: libncurses libreadline
+Preinstall: libelf libbz2
+Preinstall: liblzma
+Preinstall: nss nspr libfreebl3 libsoftokn3
+Preinstall: libmagic
+Preinstall: liblua
+Preinstall: smack libsmack libxml2 libmagic libmagic-data
+Preinstall: libsqlite
+#Preinstall: rpm-security-plugin
+Preinstall: util-linux util-linux-su
+
+VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols
+
+Required: binutils gcc glibc rpm-build libtool
+Required: gcc-c++
+
+Support: glibc-locale
+Support: perl
+Support: hostname
+Support: cpio findutils
+Support: file findutils zlib bzip2
+Support: gzip hostname net-tools
+Support: make patch sed gawk tar grep coreutils pkg-config
+Support: m4 tzdata
+Support: util-linux
+Support: less
+Support: which elfutils
+Support: update-alternatives
+Support: libstdc++-devel
+Support: cpp
+Support: libatomic
+Support: libgomp
+Support: libitm
+
+Keep: libstdc++-devel
+Keep: cpp gcc libstdc++
+Keep: pam
+Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
+Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
+Keep: make gmp libcap groff cpio
+Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
+Keep: kernel-headers perl-libs perl
+Keep: pkgconfig glib2 tizen-rpm-config
+Keep: libmpc libmpfr libppl libgmp libppl_c
+Keep: libcloog libppl libgmpxx
+Keep: nss-softokn-freebl libmagic libmagic-data
+Keep: setup
+Keep: update-alternatives
+Keep: cpp
+Keep: gcc-c++
+Keep: libatomic
+Keep: libgomp
+Keep: libitm
+
+Substitute: gettext gettext-tools
+
+%ifarch x86_64
+Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
+Substitute: libgcc_s1-32bit libgcc-32bit
+%else
+Substitute: glibc-devel-32bit
+%endif
+
+########## compilation flags ##########
+%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
+
+Optflags: armv7l %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -mthumb -Wp,-D__SOFTFP__ -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb
+Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
+Optflags: i686 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+Optflags: x86_64 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m64 -march=corei7 -msse4.2 -mtune=corei7-avx -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+### from Tizen:3.0:Common
+%define _repository x86_64-wayland
+
+Macros:
+
+%distribution Tizen:3.0:Common / x86_64-wayland
+%_project Tizen:3.0:Common
+
+### from Tizen:3.0:Common
+
+%_repository x86_64-wayland
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Common
+#
+# RE contacts:
+# Maciej Wereski <m.wereski@partner.samsung.com>
+# Pawel Wieczorek <p.wieczorek2@samsung.com>
+#
+# Git mirror for OBS config: review.tizen.org:scm/meta/build-config / branch tizen_common
+#
+# vim: set syntax=spec:
+################################################################################
+
+############################# conflicts resolution #############################
+
+FileProvides: /etc/default/useradd shadow-utils
+FileProvides: /usr/sbin/useradd shadow-utils
+FileProvides: /etc/login.defs shadow-utils
+FileProvides: /usr/sbin/chpasswd shadow-utils
+FileProvides: /usr/sbin/groupadd shadow-utils
+FileProvides: /usr/sbin/groupdel shadow-utils
+FileProvides: /usr/sbin/groupmod shadow-utils
+FileProvides: /usr/sbin/userdel shadow-utils
+FileProvides: /usr/sbin/usermod shadow-utils
+Prefer: shadow-utils
+
+Prefer: libtapi-devel
+Prefer: libpci-devel
+Prefer: bluetooth-tools-no-firmware
+
+Prefer: vconf-buxton
+Prefer: vconf-buxton-devel
+Prefer: vconf-buxton-keys-devel
+
+############################# profile definition ###############################
+
+%define profile common
+%define _with_tizen 1
+
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%profile common
+%release_name Tizen3/Common
+
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+:Macros
+
+########## RDP flag ##########
+
+# enable/disable RDP (remote desktop protocol) for wayland
+# flag: _with_rdp, used in repositories
+# Affects: weston, freerdp
+# Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
+
+########## mesa activation ##########
+
+%define _with_mesa 1
+Macros:
+%_with_mesa 1
+:Macros
+
+Substitute: mesa-devel pkgconfig(glesv2)
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+############################# common config ####################################
+
+Prefer: coregl coregl-devel
+Prefer: libwayland-egl libwayland-egl-devel
+
+%define _with_wayland 1
+Macros:
+%_with_wayland 1
+:Macros
+
+############################# wayland repositories #############################
+
+%if "%_repository" == "arm-wayland" || "%_repository" == "arm64-wayland" || "%_repository" == "ia32-wayland" || "%_repository" == "x86_64-wayland"
+
+Prefer: mesa libgbm
+Substitute: mesa-libGLESv2 coregl
+Substitute: mesa-libEGL coregl
+
+%define _with_rdp 1
+Macros:
+%_with_rdp 1
+:Macros
+
+%endif
+
+############################# emulator repositories ############################
+
+%if "%_repository" == "emulator32-wayland"
+
+Prefer: libgbm
+Prefer: emulator-yagl emulator-yagl-devel
+
+%define _with_emulator 1
+Macros:
+%_with_emulator 1
+:Macros
+
+%endif
+
+
+############################# misc config flags ################################
+
+########## USAGE ##########
+#
+# IMPORTANT: please follow the following rules when playing with flags
+# ********************************************************************
+#
+# In spec file, call %bcond_with macro at the beginning and test with %with:
+# -------------------------
+# | %bcond_with myfeature
+# | [...]
+# | %if %{with myfeature}
+# | [...]
+# | %endif
+# | [...]
+# -------------------------
+#
+# To activate an option, use:
+# -------------------------
+# | %define _with_myfeature 1
+# | Macros:
+# | %_with_myfeature 1
+# | :Macros
+# -------------------------
+#
+# To disable an option, DON'T set the values to 0, as the option would still be defined
+# but simply comment the lines: this will undefine the option.
+# -------------------------
+# | #%define _with_myfeature 1
+# | #Macros:
+# | #%_with_myfeature 1
+# | #:Macros
+# -------------------------
+#
+# More information here:
+# https://en.opensuse.org/openSUSE:Build_Service_prjconf#.25bcond
+#
+
+########## flags ##########
+
+# This build macro controls the libdlog output. If enabled,
+# libdlog writes to Systemd Journal. If disabled, libdlog writes to kernel Android
+# logger FIFO. Affects: dlog.
+# Owner: Mikko <mikko.ylinen@intel.com>
+Macros:
+%_with_dlog_to_systemd_journal 1
+:Macros
+
+# Macro used for testing gstreamer 1.X API
+# Used: qt*
+# Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
+%define _with_gstreamer1 1
+Macros:
+%_with_gstreamer1 1
+:Macros
+
+# Macro used for testing libva availability
+# Used: weston
+# Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
+%ifarch x86_64 i586
+%define _with_libva 1
+Macros:
+%_with_libva 1
+:Macros
+%endif
+
+# Macro used for testing Input methods
+# Used: qt*
+# Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
+#%define _with_tizenscim 1
+#Macros:
+#%_with_tizenscim 1
+#:Macros
+
+# Activate introspection
+# This is needed on GuPNP to build Rygel correctly in IVI
+# Impacts potentially packages that use gobject-introspection
+# Owner: Mikko <mikko.ylinen@intel.com>
+Macros:
+%_with_introspection 1
+:Macros
+
+# Activate KDBUS
+# This configuration flag enables the support of KDBUS
+# Used: platform/upstream/setup
+# Owner: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
+#%define _with_kdbus 1
+#Macros:
+#%_with_kdbus 1
+#:Macros
+
+############################# build config #####################################
+# derived from Tizen:Base
+################################################################################
+
+########## compilation flags ##########
+# derived from Tizen:Base
+#######################################
\ No newline at end of file
--- /dev/null
+%define _project Tizen:3.0:IVI
+
+### from Tizen:3.0:Base
+%define _repository arm
+
+Macros:
+%vendor obs://private/Tizen:3.0:IVI
+%_project Tizen:3.0:IVI
+
+### from Tizen:3.0:Base
+
+%_repository arm
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Base
+#
+# RE contacts:
+#
+#
+# vim: set syntax=spec:
+################################################################################
+
+Patterntype: rpm-md comps
+Release: <CI_CNT>.<B_CNT>
+Support: build
+Support: build-compare build-mkbaselibs
+# Support: rpmlint-mini rpmlint-tizen
+
+############################# conflicts resolution #############################
+
+Prefer: util-linux
+
+############################# base definition ###############################
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+
+%_binary_payload w5T.xzdio
+:Macros
+
+
+############################# build config #####################################
+
+%define gcc_version 49
+Macros:
+%gcc_version 49
+:Macros
+
+########## targets ##########
+
+%ifarch i586
+Target: i686-tizen-linux
+%endif
+
+%ifarch armv7hl
+Target: armv7hl-tizen-linux
+%endif
+
+%ifarch armv7l
+Target: armv7l-tizen-linux
+%endif
+
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+
+########## cross build ##########
+
+%define build_hostarch x86_64
+Macros:
+%build_hostarch x86_64
+:Macros
+
+%ifarch %arm armv7l aarch64
+Hostarch: x86_64
+# cross build support for the build hosts
+Preinstall: qemu-linux-user-%{build_hostarch}-cross
+Runscripts: qemu-linux-user-%{build_hostarch}-cross
+Keep: qemu-linux-user-%{build_hostarch}-cross
+%endif
+
+%ifarch armv7l
+Preinstall: qemu-accel-%{build_hostarch}-armv7l
+Runscripts: qemu-accel-%{build_hostarch}-armv7l
+Preinstall: libmount libblkid libuuid
+%endif
+
+%ifarch aarch64
+Preinstall: qemu-accel-%{build_hostarch}-aarch64
+Runscripts: qemu-accel-%{build_hostarch}-aarch64
+Preinstall: libmount libblkid libuuid
+%endif # aarch64
+
+Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
+Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
+
+########## exports for different architectures ##########
+
+ExportFilter: \.armv7l\.rpm$ armv7l
+ExportFilter: \.aarch64\.rpm$ aarch64
+ExportFilter: \.x86_64\.rpm$ x86_64
+
+########## buildroot config ##########
+
+Preinstall: setup filesystem
+RunScripts: setup
+
+Preinstall: bash bzip2 coreutils diffutils grep rpm
+Preinstall: glibc libacl libattr
+Preinstall: libcap
+Preinstall: libgcc
+Preinstall: libpopt sed tar zlib
+Preinstall: libncurses libreadline
+Preinstall: libelf libbz2
+Preinstall: liblzma
+Preinstall: nss nspr libfreebl3 libsoftokn3
+Preinstall: libmagic
+Preinstall: liblua
+Preinstall: smack libsmack libxml2 libmagic libmagic-data
+Preinstall: libsqlite
+#Preinstall: rpm-security-plugin
+Preinstall: util-linux util-linux-su
+
+VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols
+
+Required: binutils gcc glibc rpm-build libtool
+Required: gcc-c++
+
+Support: glibc-locale
+Support: perl
+Support: hostname
+Support: cpio findutils
+Support: file findutils zlib bzip2
+Support: gzip hostname net-tools
+Support: make patch sed gawk tar grep coreutils pkg-config
+Support: m4 tzdata
+Support: util-linux
+Support: less
+Support: which elfutils
+Support: update-alternatives
+Support: libstdc++-devel
+Support: cpp
+Support: libatomic
+Support: libgomp
+Support: libitm
+
+Keep: libstdc++-devel
+Keep: cpp gcc libstdc++
+Keep: pam
+Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
+Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
+Keep: make gmp libcap groff cpio
+Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
+Keep: kernel-headers perl-libs perl
+Keep: pkgconfig glib2 tizen-rpm-config
+Keep: libmpc libmpfr libppl libgmp libppl_c
+Keep: libcloog libppl libgmpxx
+Keep: nss-softokn-freebl libmagic libmagic-data
+Keep: setup
+Keep: update-alternatives
+Keep: cpp
+Keep: gcc-c++
+Keep: libatomic
+Keep: libgomp
+Keep: libitm
+
+Substitute: gettext gettext-tools
+
+%ifarch x86_64
+Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
+Substitute: libgcc_s1-32bit libgcc-32bit
+%else
+Substitute: glibc-devel-32bit
+%endif
+
+########## compilation flags ##########
+%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
+
+Optflags: armv7l %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -mthumb -Wp,-D__SOFTFP__ -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb
+Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
+Optflags: i686 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+Optflags: x86_64 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m64 -march=corei7 -msse4.2 -mtune=corei7-avx -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+### from Tizen:3.0:IVI
+%define _repository arm
+
+Macros:
+
+%distribution Tizen:3.0:IVI / arm
+%_project Tizen:3.0:IVI
+
+### from Tizen:3.0:IVI
+
+%_repository arm
+:Macros
+
+################################################################################
+# RE contacts:
+#
+#
+# vim: set syntax=spec:
+################################################################################
+
+############################# conflicts resolution #############################
+
+FileProvides: /usr/sbin/groupadd shadow-utils
+Prefer: libtapi-devel
+Prefer: libpci-devel
+Prefer: bluetooth-tools-no-firmware
+
+############################# profile definition ###############################
+
+%define profile ivi
+%define _with_tizen 1
+
+# For classifying debug/release mode
+Macros:
+%tizen_build_devel_mode 1
+:Macros
+
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%profile ivi
+%release_name Tizen3/IVI
+
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+:Macros
+
+############################# display system ###################################
+
+########## display system selection ##########
+
+# selection of the display system
+# this selection is done for each repository
+#
+# flags combinations:
+# |----------------------------------------------------
+# | wayland | x | meaning
+# |----------------------------------------------------
+# | | 1 | pure X11 platform(no wayland)
+# | 1 | | pure wayland platform (no X11)
+# | 1 | 1 | wayland but X compatibility
+# | | | no X and no wayland
+# |----------------------------------------------------
+#
+# Owner: Stephane <stephane.desneux@open.eurogiciel.org>
+
+########## RDP flag ##########
+
+# enable/disable RDP (remote desktop protocol) for wayland
+# flag: _with_rdp, used in repositories
+# Affects: weston, freerdp
+# Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
+
+########## mesa activation ##########
+
+%define _with_mesa 1
+Macros:
+%_with_mesa 1
+:Macros
+
+Substitute: mesa-devel pkgconfig(glesv2)
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+########## coregl ##########
+
+Prefer: coregl coregl-devel
+
+###################### Activate KDBUS ######################
+# This configuration flag enables the support of KDBUS
+
+#%if "%_repository" == "arm64-wayland"
+
+#%define _with_kdbus 1
+
+#Macros:
+#%_with_kdbus 1
+#:Macros
+
+#%endif
+
+############################# wayland repositories #############################
+
+%if "%_repository" == "arm" || "%_repository" == "x86_64"
+
+Prefer: libwayland-egl libwayland-egl-devel
+Prefer: mesa libgbm
+Substitute: mesa-libGLESv2 coregl
+Substitute: mesa-libEGL coregl
+
+%define _with_wayland 1
+%define _with_rdp 1
+
+Macros:
+%_with_wayland 1
+%_with_rdp 1
+:Macros
+
+%endif
+
+############################# emulator repositories ############################
+
+%if "%_repository" == "emulator"
+
+Prefer: libgbm
+Prefer: emulator-yagl emulator-yagl-devel
+Prefer: libwayland-egl libwayland-egl-devel
+
+%define _with_wayland 1
+%define _with_emulator 1
+
+Macros:
+%_with_wayland 1
+%_with_emulator 1
+:Macros
+
+%endif
+
+############################# misc config flags ################################
+
+# Activate introspection
+# This is needed on GuPNP to build Rygel correctly in IVI
+# Impacts potentially packages that use gobject-introspection
+# Owner: Mikko <mikko.ylinen@intel.com>
+Macros:
+%_with_introspection 1
+:Macros
+
+############################# build config #####################################
+
+%define gcc_version 49
+Macros:
+%gcc_version 49
+:Macros
+
+########## targets ##########
+
+%ifarch i586
+Target: i686-tizen-linux
+%endif
+
+%ifarch armv7hl
+Target: armv7hl-tizen-linux
+%endif
+
+%ifarch armv7l
+Target: armv7l-tizen-linux
+%endif
+
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+
+############################# build config #####################################
+# derived from Tizen:Base
+################################################################################
+
+########## compilation flags ##########
+# derived from Tizen:Base
+#######################################
\ No newline at end of file
--- /dev/null
+%define _project Tizen:3.0:IVI
+
+### from Tizen:3.0:Base
+%define _repository emulator32
+
+Macros:
+%vendor obs://private/Tizen:3.0:IVI
+%_project Tizen:3.0:IVI
+
+### from Tizen:3.0:Base
+
+%_repository emulator32
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Base
+#
+# RE contacts:
+#
+#
+# vim: set syntax=spec:
+################################################################################
+
+Patterntype: rpm-md comps
+Release: <CI_CNT>.<B_CNT>
+Support: build
+Support: build-compare build-mkbaselibs
+# Support: rpmlint-mini rpmlint-tizen
+
+############################# conflicts resolution #############################
+
+Prefer: util-linux
+
+############################# base definition ###############################
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+
+%_binary_payload w5T.xzdio
+:Macros
+
+
+############################# build config #####################################
+
+%define gcc_version 49
+Macros:
+%gcc_version 49
+:Macros
+
+########## targets ##########
+
+%ifarch i586
+Target: i686-tizen-linux
+%endif
+
+%ifarch armv7hl
+Target: armv7hl-tizen-linux
+%endif
+
+%ifarch armv7l
+Target: armv7l-tizen-linux
+%endif
+
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+
+########## cross build ##########
+
+%define build_hostarch x86_64
+Macros:
+%build_hostarch x86_64
+:Macros
+
+%ifarch %arm armv7l aarch64
+Hostarch: x86_64
+# cross build support for the build hosts
+Preinstall: qemu-linux-user-%{build_hostarch}-cross
+Runscripts: qemu-linux-user-%{build_hostarch}-cross
+Keep: qemu-linux-user-%{build_hostarch}-cross
+%endif
+
+%ifarch armv7l
+Preinstall: qemu-accel-%{build_hostarch}-armv7l
+Runscripts: qemu-accel-%{build_hostarch}-armv7l
+Preinstall: libmount libblkid libuuid
+%endif
+
+%ifarch aarch64
+Preinstall: qemu-accel-%{build_hostarch}-aarch64
+Runscripts: qemu-accel-%{build_hostarch}-aarch64
+Preinstall: libmount libblkid libuuid
+%endif # aarch64
+
+Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
+Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
+
+########## exports for different architectures ##########
+
+ExportFilter: \.armv7l\.rpm$ armv7l
+ExportFilter: \.aarch64\.rpm$ aarch64
+ExportFilter: \.x86_64\.rpm$ x86_64
+
+########## buildroot config ##########
+
+Preinstall: setup filesystem
+RunScripts: setup
+
+Preinstall: bash bzip2 coreutils diffutils grep rpm
+Preinstall: glibc libacl libattr
+Preinstall: libcap
+Preinstall: libgcc
+Preinstall: libpopt sed tar zlib
+Preinstall: libncurses libreadline
+Preinstall: libelf libbz2
+Preinstall: liblzma
+Preinstall: nss nspr libfreebl3 libsoftokn3
+Preinstall: libmagic
+Preinstall: liblua
+Preinstall: smack libsmack libxml2 libmagic libmagic-data
+Preinstall: libsqlite
+#Preinstall: rpm-security-plugin
+Preinstall: util-linux util-linux-su
+
+VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols
+
+Required: binutils gcc glibc rpm-build libtool
+Required: gcc-c++
+
+Support: glibc-locale
+Support: perl
+Support: hostname
+Support: cpio findutils
+Support: file findutils zlib bzip2
+Support: gzip hostname net-tools
+Support: make patch sed gawk tar grep coreutils pkg-config
+Support: m4 tzdata
+Support: util-linux
+Support: less
+Support: which elfutils
+Support: update-alternatives
+Support: libstdc++-devel
+Support: cpp
+Support: libatomic
+Support: libgomp
+Support: libitm
+
+Keep: libstdc++-devel
+Keep: cpp gcc libstdc++
+Keep: pam
+Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
+Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
+Keep: make gmp libcap groff cpio
+Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
+Keep: kernel-headers perl-libs perl
+Keep: pkgconfig glib2 tizen-rpm-config
+Keep: libmpc libmpfr libppl libgmp libppl_c
+Keep: libcloog libppl libgmpxx
+Keep: nss-softokn-freebl libmagic libmagic-data
+Keep: setup
+Keep: update-alternatives
+Keep: cpp
+Keep: gcc-c++
+Keep: libatomic
+Keep: libgomp
+Keep: libitm
+
+Substitute: gettext gettext-tools
+
+%ifarch x86_64
+Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
+Substitute: libgcc_s1-32bit libgcc-32bit
+%else
+Substitute: glibc-devel-32bit
+%endif
+
+########## compilation flags ##########
+%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
+
+Optflags: armv7l %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -mthumb -Wp,-D__SOFTFP__ -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb
+Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
+Optflags: i686 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+Optflags: x86_64 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m64 -march=corei7 -msse4.2 -mtune=corei7-avx -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+### from Tizen:3.0:IVI
+%define _repository emulator
+
+Macros:
+
+%distribution Tizen:3.0:IVI / emulator
+%_project Tizen:3.0:IVI
+
+### from Tizen:3.0:IVI
+
+%_repository emulator
+:Macros
+
+################################################################################
+# RE contacts:
+#
+#
+# vim: set syntax=spec:
+################################################################################
+
+############################# conflicts resolution #############################
+
+FileProvides: /usr/sbin/groupadd shadow-utils
+Prefer: libtapi-devel
+Prefer: libpci-devel
+Prefer: bluetooth-tools-no-firmware
+
+############################# profile definition ###############################
+
+%define profile ivi
+%define _with_tizen 1
+
+# For classifying debug/release mode
+Macros:
+%tizen_build_devel_mode 1
+:Macros
+
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%profile ivi
+%release_name Tizen3/IVI
+
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+:Macros
+
+############################# display system ###################################
+
+########## display system selection ##########
+
+# selection of the display system
+# this selection is done for each repository
+#
+# flags combinations:
+# |----------------------------------------------------
+# | wayland | x | meaning
+# |----------------------------------------------------
+# | | 1 | pure X11 platform(no wayland)
+# | 1 | | pure wayland platform (no X11)
+# | 1 | 1 | wayland but X compatibility
+# | | | no X and no wayland
+# |----------------------------------------------------
+#
+# Owner: Stephane <stephane.desneux@open.eurogiciel.org>
+
+########## RDP flag ##########
+
+# enable/disable RDP (remote desktop protocol) for wayland
+# flag: _with_rdp, used in repositories
+# Affects: weston, freerdp
+# Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
+
+########## mesa activation ##########
+
+%define _with_mesa 1
+Macros:
+%_with_mesa 1
+:Macros
+
+Substitute: mesa-devel pkgconfig(glesv2)
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+########## coregl ##########
+
+Prefer: coregl coregl-devel
+
+###################### Activate KDBUS ######################
+# This configuration flag enables the support of KDBUS
+
+#%if "%_repository" == "arm64-wayland"
+
+#%define _with_kdbus 1
+
+#Macros:
+#%_with_kdbus 1
+#:Macros
+
+#%endif
+
+############################# wayland repositories #############################
+
+%if "%_repository" == "arm" || "%_repository" == "x86_64"
+
+Prefer: libwayland-egl libwayland-egl-devel
+Prefer: mesa libgbm
+Substitute: mesa-libGLESv2 coregl
+Substitute: mesa-libEGL coregl
+
+%define _with_wayland 1
+%define _with_rdp 1
+
+Macros:
+%_with_wayland 1
+%_with_rdp 1
+:Macros
+
+%endif
+
+############################# emulator repositories ############################
+
+%if "%_repository" == "emulator"
+
+Prefer: libgbm
+Prefer: emulator-yagl emulator-yagl-devel
+Prefer: libwayland-egl libwayland-egl-devel
+
+%define _with_wayland 1
+%define _with_emulator 1
+
+Macros:
+%_with_wayland 1
+%_with_emulator 1
+:Macros
+
+%endif
+
+############################# misc config flags ################################
+
+# Activate introspection
+# This is needed on GuPNP to build Rygel correctly in IVI
+# Impacts potentially packages that use gobject-introspection
+# Owner: Mikko <mikko.ylinen@intel.com>
+Macros:
+%_with_introspection 1
+:Macros
+
+############################# build config #####################################
+
+%define gcc_version 49
+Macros:
+%gcc_version 49
+:Macros
+
+########## targets ##########
+
+%ifarch i586
+Target: i686-tizen-linux
+%endif
+
+%ifarch armv7hl
+Target: armv7hl-tizen-linux
+%endif
+
+%ifarch armv7l
+Target: armv7l-tizen-linux
+%endif
+
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+
+############################# build config #####################################
+# derived from Tizen:Base
+################################################################################
+
+########## compilation flags ##########
+# derived from Tizen:Base
+#######################################
\ No newline at end of file
--- /dev/null
+%define _project Tizen:3.0:Mobile
+
+### from Tizen:3.0:Base
+%define _repository arm
+
+Macros:
+%vendor obs://private/Tizen:3.0:Mobile
+%_project Tizen:3.0:Mobile
+
+### from Tizen:3.0:Base
+
+%_repository arm
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Base
+#
+# RE contacts:
+#
+#
+# vim: set syntax=spec:
+################################################################################
+
+Patterntype: rpm-md comps
+Release: <CI_CNT>.<B_CNT>
+Support: build
+Support: build-compare build-mkbaselibs
+# Support: rpmlint-mini rpmlint-tizen
+
+############################# conflicts resolution #############################
+
+Prefer: util-linux
+
+############################# base definition ###############################
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+
+%_binary_payload w5T.xzdio
+:Macros
+
+
+############################# build config #####################################
+
+%define gcc_version 49
+Macros:
+%gcc_version 49
+:Macros
+
+########## targets ##########
+
+%ifarch i586
+Target: i686-tizen-linux
+%endif
+
+%ifarch armv7hl
+Target: armv7hl-tizen-linux
+%endif
+
+%ifarch armv7l
+Target: armv7l-tizen-linux
+%endif
+
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+
+########## cross build ##########
+
+%define build_hostarch x86_64
+Macros:
+%build_hostarch x86_64
+:Macros
+
+%ifarch %arm armv7l aarch64
+Hostarch: x86_64
+# cross build support for the build hosts
+Preinstall: qemu-linux-user-%{build_hostarch}-cross
+Runscripts: qemu-linux-user-%{build_hostarch}-cross
+Keep: qemu-linux-user-%{build_hostarch}-cross
+%endif
+
+%ifarch armv7l
+Preinstall: qemu-accel-%{build_hostarch}-armv7l
+Runscripts: qemu-accel-%{build_hostarch}-armv7l
+Preinstall: libmount libblkid libuuid
+%endif
+
+%ifarch aarch64
+Preinstall: qemu-accel-%{build_hostarch}-aarch64
+Runscripts: qemu-accel-%{build_hostarch}-aarch64
+Preinstall: libmount libblkid libuuid
+%endif # aarch64
+
+Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
+Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
+
+########## exports for different architectures ##########
+
+ExportFilter: \.armv7l\.rpm$ armv7l
+ExportFilter: \.aarch64\.rpm$ aarch64
+ExportFilter: \.x86_64\.rpm$ x86_64
+
+########## buildroot config ##########
+
+Preinstall: setup filesystem
+RunScripts: setup
+
+Preinstall: bash bzip2 coreutils diffutils grep rpm
+Preinstall: glibc libacl libattr
+Preinstall: libcap
+Preinstall: libgcc
+Preinstall: libpopt sed tar zlib
+Preinstall: libncurses libreadline
+Preinstall: libelf libbz2
+Preinstall: liblzma
+Preinstall: nss nspr libfreebl3 libsoftokn3
+Preinstall: libmagic
+Preinstall: liblua
+Preinstall: smack libsmack libxml2 libmagic libmagic-data
+Preinstall: libsqlite
+#Preinstall: rpm-security-plugin
+Preinstall: util-linux util-linux-su
+
+VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols
+
+Required: binutils gcc glibc rpm-build libtool
+Required: gcc-c++
+
+Support: glibc-locale
+Support: perl
+Support: hostname
+Support: cpio findutils
+Support: file findutils zlib bzip2
+Support: gzip hostname net-tools
+Support: make patch sed gawk tar grep coreutils pkg-config
+Support: m4 tzdata
+Support: util-linux
+Support: less
+Support: which elfutils
+Support: update-alternatives
+Support: libstdc++-devel
+Support: cpp
+Support: libatomic
+Support: libgomp
+Support: libitm
+
+Keep: libstdc++-devel
+Keep: cpp gcc libstdc++
+Keep: pam
+Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
+Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
+Keep: make gmp libcap groff cpio
+Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
+Keep: kernel-headers perl-libs perl
+Keep: pkgconfig glib2 tizen-rpm-config
+Keep: libmpc libmpfr libppl libgmp libppl_c
+Keep: libcloog libppl libgmpxx
+Keep: nss-softokn-freebl libmagic libmagic-data
+Keep: setup
+Keep: update-alternatives
+Keep: cpp
+Keep: gcc-c++
+Keep: libatomic
+Keep: libgomp
+Keep: libitm
+
+Substitute: gettext gettext-tools
+
+%ifarch x86_64
+Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
+Substitute: libgcc_s1-32bit libgcc-32bit
+%else
+Substitute: glibc-devel-32bit
+%endif
+
+########## compilation flags ##########
+%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
+
+Optflags: armv7l %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -mthumb -Wp,-D__SOFTFP__ -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb
+Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
+Optflags: i686 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+Optflags: x86_64 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m64 -march=corei7 -msse4.2 -mtune=corei7-avx -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+### from Tizen:3.0:Mobile
+%define _repository arm-wayland
+
+Macros:
+
+%distribution Tizen:3.0:Mobile / arm-wayland
+%_project Tizen:3.0:Mobile
+
+### from Tizen:3.0:Mobile
+
+%_repository arm-wayland
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Mobile
+#
+# RE contacts:
+#
+# vim: set syntax=spec:
+################################################################################
+
+############################# conflicts resolution #############################
+
+FileProvides: /usr/sbin/groupadd shadow-utils
+Prefer: libtapi-devel
+Prefer: libpci-devel
+Prefer: bluetooth-tools-no-firmware
+
+############################# profile definition ###############################
+
+%define profile mobile
+%define _with_tizen 1
+
+# For classifying debug/release mode
+Macros:
+%tizen_build_devel_mode 1
+:Macros
+
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%profile mobile
+%release_name Tizen3/Mobile
+
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+:Macros
+
+############################# display system ###################################
+
+########## display system selection ##########
+
+# selection of the display system
+# this selection is done for each repository
+#
+# flags combinations:
+# |----------------------------------------------------
+# | wayland | x | meaning
+# |----------------------------------------------------
+# | | 1 | pure X11 platform(no wayland)
+# | 1 | | pure wayland platform (no X11)
+# | 1 | 1 | wayland but X compatibility
+# | | | no X and no wayland
+# |----------------------------------------------------
+#
+# Owner: Stephane <stephane.desneux@open.eurogiciel.org>
+
+########## RDP flag ##########
+
+# enable/disable RDP (remote desktop protocol) for wayland
+# flag: _with_rdp, used in repositories
+# Affects: weston, freerdp
+# Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
+
+########## mesa activation ##########
+
+%define _with_mesa 1
+Macros:
+%_with_mesa 1
+:Macros
+
+%ifarch %arm armv7l aarch64
+ Substitute: mesa-devel pkgconfig(glesv2)
+ #FIXME Substitute: pkgconfig(egl)
+%endif
+
+########## coregl ##########
+%ifarch %arm aarch64
+Prefer: coregl coregl-devel
+Prefer: libwayland-egl libwayland-egl-devel
+Substitute: mesa-libGLESv2 coregl
+Substitute: mesa-libEGL coregl
+%endif
+
+###################### Activate KDBUS ######################
+# This configuration flag enables the support of KDBUS and Cynara-based Dbus Policy
+
+#%if "%_repository" == "arm64-wayland"
+
+#%define _with_kdbus 1
+#%define _with_dbuspolicy 1
+
+#Macros:
+#%_with_kdbus 1
+#%_with_dbuspolicy 1
+#:Macros
+
+#%endif
+
+############################# wayland repositories #############################
+
+%if "%_repository" == "atom-wayland" || "%_repository" == "x86_64-wayland" || "%_repository" == "arm-wayland" || "%_repository" == "arm64-wayland" || "%_repository" == "target-TM1"
+
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+%define _with_wayland 1
+%define _with_rdp 1
+
+Macros:
+%_with_wayland 1
+%_with_rdp 1
+:Macros
+
+%endif
+
+############################# emulator repositories ############################
+
+%if "%_repository" == "emulator32-wayland" || "%_repository" == "emulator64-wayland"
+
+Substitute: mesa-devel pkgconfig(glesv2)
+
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+Prefer: libgbm
+Prefer: coregl coregl-devel
+Prefer: emulator-yagl emulator-yagl-devel
+
+%define _with_wayland 1
+%define _with_emulator 1
+
+Macros:
+%_with_wayland 1
+%_with_emulator 1
+:Macros
+
+%endif
+
+%if "%_repository" == "target-TM1"
+
+Macros:
+%tizen_target_name TM1
+:Macros
+
+%endif
+
+############################# misc config flags ################################
+
+# Activate introspection
+# This is needed on GuPNP to build Rygel correctly in IVI
+# Impacts potentially packages that use gobject-introspection
+# Owner: Mikko <mikko.ylinen@intel.com>
+Macros:
+%_with_introspection 1
+:Macros
+
+############################# build config #####################################
+# derived from Tizen:Base
+################################################################################
+
+########## compilation flags ##########
+# derived from Tizen:Base
+#######################################
\ No newline at end of file
--- /dev/null
+%define _project Tizen:3.0:Mobile
+
+### from Tizen:3.0:Base
+%define _repository emulator32
+
+Macros:
+%vendor obs://private/Tizen:3.0:Mobile
+%_project Tizen:3.0:Mobile
+
+### from Tizen:3.0:Base
+
+%_repository emulator32
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Base
+#
+# RE contacts:
+#
+#
+# vim: set syntax=spec:
+################################################################################
+
+Patterntype: rpm-md comps
+Release: <CI_CNT>.<B_CNT>
+Support: build
+Support: build-compare build-mkbaselibs
+# Support: rpmlint-mini rpmlint-tizen
+
+############################# conflicts resolution #############################
+
+Prefer: util-linux
+
+############################# base definition ###############################
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+
+%_binary_payload w5T.xzdio
+:Macros
+
+
+############################# build config #####################################
+
+%define gcc_version 49
+Macros:
+%gcc_version 49
+:Macros
+
+########## targets ##########
+
+%ifarch i586
+Target: i686-tizen-linux
+%endif
+
+%ifarch armv7hl
+Target: armv7hl-tizen-linux
+%endif
+
+%ifarch armv7l
+Target: armv7l-tizen-linux
+%endif
+
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+
+########## cross build ##########
+
+%define build_hostarch x86_64
+Macros:
+%build_hostarch x86_64
+:Macros
+
+%ifarch %arm armv7l aarch64
+Hostarch: x86_64
+# cross build support for the build hosts
+Preinstall: qemu-linux-user-%{build_hostarch}-cross
+Runscripts: qemu-linux-user-%{build_hostarch}-cross
+Keep: qemu-linux-user-%{build_hostarch}-cross
+%endif
+
+%ifarch armv7l
+Preinstall: qemu-accel-%{build_hostarch}-armv7l
+Runscripts: qemu-accel-%{build_hostarch}-armv7l
+Preinstall: libmount libblkid libuuid
+%endif
+
+%ifarch aarch64
+Preinstall: qemu-accel-%{build_hostarch}-aarch64
+Runscripts: qemu-accel-%{build_hostarch}-aarch64
+Preinstall: libmount libblkid libuuid
+%endif # aarch64
+
+Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
+Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
+
+########## exports for different architectures ##########
+
+ExportFilter: \.armv7l\.rpm$ armv7l
+ExportFilter: \.aarch64\.rpm$ aarch64
+ExportFilter: \.x86_64\.rpm$ x86_64
+
+########## buildroot config ##########
+
+Preinstall: setup filesystem
+RunScripts: setup
+
+Preinstall: bash bzip2 coreutils diffutils grep rpm
+Preinstall: glibc libacl libattr
+Preinstall: libcap
+Preinstall: libgcc
+Preinstall: libpopt sed tar zlib
+Preinstall: libncurses libreadline
+Preinstall: libelf libbz2
+Preinstall: liblzma
+Preinstall: nss nspr libfreebl3 libsoftokn3
+Preinstall: libmagic
+Preinstall: liblua
+Preinstall: smack libsmack libxml2 libmagic libmagic-data
+Preinstall: libsqlite
+#Preinstall: rpm-security-plugin
+Preinstall: util-linux util-linux-su
+
+VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols
+
+Required: binutils gcc glibc rpm-build libtool
+Required: gcc-c++
+
+Support: glibc-locale
+Support: perl
+Support: hostname
+Support: cpio findutils
+Support: file findutils zlib bzip2
+Support: gzip hostname net-tools
+Support: make patch sed gawk tar grep coreutils pkg-config
+Support: m4 tzdata
+Support: util-linux
+Support: less
+Support: which elfutils
+Support: update-alternatives
+Support: libstdc++-devel
+Support: cpp
+Support: libatomic
+Support: libgomp
+Support: libitm
+
+Keep: libstdc++-devel
+Keep: cpp gcc libstdc++
+Keep: pam
+Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
+Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
+Keep: make gmp libcap groff cpio
+Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
+Keep: kernel-headers perl-libs perl
+Keep: pkgconfig glib2 tizen-rpm-config
+Keep: libmpc libmpfr libppl libgmp libppl_c
+Keep: libcloog libppl libgmpxx
+Keep: nss-softokn-freebl libmagic libmagic-data
+Keep: setup
+Keep: update-alternatives
+Keep: cpp
+Keep: gcc-c++
+Keep: libatomic
+Keep: libgomp
+Keep: libitm
+
+Substitute: gettext gettext-tools
+
+%ifarch x86_64
+Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
+Substitute: libgcc_s1-32bit libgcc-32bit
+%else
+Substitute: glibc-devel-32bit
+%endif
+
+########## compilation flags ##########
+%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
+
+Optflags: armv7l %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -mthumb -Wp,-D__SOFTFP__ -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb
+Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
+Optflags: i686 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+Optflags: x86_64 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m64 -march=corei7 -msse4.2 -mtune=corei7-avx -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+### from Tizen:3.0:Mobile
+%define _repository emulator32-wayland
+
+Macros:
+
+%distribution Tizen:3.0:Mobile / emulator32-wayland
+%_project Tizen:3.0:Mobile
+
+### from Tizen:3.0:Mobile
+
+%_repository emulator32-wayland
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Mobile
+#
+# RE contacts:
+#
+# vim: set syntax=spec:
+################################################################################
+
+############################# conflicts resolution #############################
+
+FileProvides: /usr/sbin/groupadd shadow-utils
+Prefer: libtapi-devel
+Prefer: libpci-devel
+Prefer: bluetooth-tools-no-firmware
+
+############################# profile definition ###############################
+
+%define profile mobile
+%define _with_tizen 1
+
+# For classifying debug/release mode
+Macros:
+%tizen_build_devel_mode 1
+:Macros
+
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%profile mobile
+%release_name Tizen3/Mobile
+
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+:Macros
+
+############################# display system ###################################
+
+########## display system selection ##########
+
+# selection of the display system
+# this selection is done for each repository
+#
+# flags combinations:
+# |----------------------------------------------------
+# | wayland | x | meaning
+# |----------------------------------------------------
+# | | 1 | pure X11 platform(no wayland)
+# | 1 | | pure wayland platform (no X11)
+# | 1 | 1 | wayland but X compatibility
+# | | | no X and no wayland
+# |----------------------------------------------------
+#
+# Owner: Stephane <stephane.desneux@open.eurogiciel.org>
+
+########## RDP flag ##########
+
+# enable/disable RDP (remote desktop protocol) for wayland
+# flag: _with_rdp, used in repositories
+# Affects: weston, freerdp
+# Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
+
+########## mesa activation ##########
+
+%define _with_mesa 1
+Macros:
+%_with_mesa 1
+:Macros
+
+%ifarch %arm armv7l aarch64
+ Substitute: mesa-devel pkgconfig(glesv2)
+ #FIXME Substitute: pkgconfig(egl)
+%endif
+
+########## coregl ##########
+%ifarch %arm aarch64
+Prefer: coregl coregl-devel
+Prefer: libwayland-egl libwayland-egl-devel
+Substitute: mesa-libGLESv2 coregl
+Substitute: mesa-libEGL coregl
+%endif
+
+###################### Activate KDBUS ######################
+# This configuration flag enables the support of KDBUS and Cynara-based Dbus Policy
+
+#%if "%_repository" == "arm64-wayland"
+
+#%define _with_kdbus 1
+#%define _with_dbuspolicy 1
+
+#Macros:
+#%_with_kdbus 1
+#%_with_dbuspolicy 1
+#:Macros
+
+#%endif
+
+############################# wayland repositories #############################
+
+%if "%_repository" == "atom-wayland" || "%_repository" == "x86_64-wayland" || "%_repository" == "arm-wayland" || "%_repository" == "arm64-wayland" || "%_repository" == "target-TM1"
+
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+%define _with_wayland 1
+%define _with_rdp 1
+
+Macros:
+%_with_wayland 1
+%_with_rdp 1
+:Macros
+
+%endif
+
+############################# emulator repositories ############################
+
+%if "%_repository" == "emulator32-wayland" || "%_repository" == "emulator64-wayland"
+
+Substitute: mesa-devel pkgconfig(glesv2)
+
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+Prefer: libgbm
+Prefer: coregl coregl-devel
+Prefer: emulator-yagl emulator-yagl-devel
+
+%define _with_wayland 1
+%define _with_emulator 1
+
+Macros:
+%_with_wayland 1
+%_with_emulator 1
+:Macros
+
+%endif
+
+%if "%_repository" == "target-TM1"
+
+Macros:
+%tizen_target_name TM1
+:Macros
+
+%endif
+
+############################# misc config flags ################################
+
+# Activate introspection
+# This is needed on GuPNP to build Rygel correctly in IVI
+# Impacts potentially packages that use gobject-introspection
+# Owner: Mikko <mikko.ylinen@intel.com>
+Macros:
+%_with_introspection 1
+:Macros
+
+############################# build config #####################################
+# derived from Tizen:Base
+################################################################################
+
+########## compilation flags ##########
+# derived from Tizen:Base
+#######################################
\ No newline at end of file
--- /dev/null
+%define _project Tizen:3.0:Mobile
+
+### from Tizen:3.0:Base
+%define _repository arm
+
+Macros:
+%vendor obs://private/Tizen:3.0:Mobile
+%_project Tizen:3.0:Mobile
+
+### from Tizen:3.0:Base
+
+%_repository arm
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Base
+#
+# RE contacts:
+#
+#
+# vim: set syntax=spec:
+################################################################################
+
+Patterntype: rpm-md comps
+Release: <CI_CNT>.<B_CNT>
+Support: build
+Support: build-compare build-mkbaselibs
+# Support: rpmlint-mini rpmlint-tizen
+
+############################# conflicts resolution #############################
+
+Prefer: util-linux
+
+############################# base definition ###############################
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+
+%_binary_payload w5T.xzdio
+:Macros
+
+
+############################# build config #####################################
+
+%define gcc_version 49
+Macros:
+%gcc_version 49
+:Macros
+
+########## targets ##########
+
+%ifarch i586
+Target: i686-tizen-linux
+%endif
+
+%ifarch armv7hl
+Target: armv7hl-tizen-linux
+%endif
+
+%ifarch armv7l
+Target: armv7l-tizen-linux
+%endif
+
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+
+########## cross build ##########
+
+%define build_hostarch x86_64
+Macros:
+%build_hostarch x86_64
+:Macros
+
+%ifarch %arm armv7l aarch64
+Hostarch: x86_64
+# cross build support for the build hosts
+Preinstall: qemu-linux-user-%{build_hostarch}-cross
+Runscripts: qemu-linux-user-%{build_hostarch}-cross
+Keep: qemu-linux-user-%{build_hostarch}-cross
+%endif
+
+%ifarch armv7l
+Preinstall: qemu-accel-%{build_hostarch}-armv7l
+Runscripts: qemu-accel-%{build_hostarch}-armv7l
+Preinstall: libmount libblkid libuuid
+%endif
+
+%ifarch aarch64
+Preinstall: qemu-accel-%{build_hostarch}-aarch64
+Runscripts: qemu-accel-%{build_hostarch}-aarch64
+Preinstall: libmount libblkid libuuid
+%endif # aarch64
+
+Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
+Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
+
+########## exports for different architectures ##########
+
+ExportFilter: \.armv7l\.rpm$ armv7l
+ExportFilter: \.aarch64\.rpm$ aarch64
+ExportFilter: \.x86_64\.rpm$ x86_64
+
+########## buildroot config ##########
+
+Preinstall: setup filesystem
+RunScripts: setup
+
+Preinstall: bash bzip2 coreutils diffutils grep rpm
+Preinstall: glibc libacl libattr
+Preinstall: libcap
+Preinstall: libgcc
+Preinstall: libpopt sed tar zlib
+Preinstall: libncurses libreadline
+Preinstall: libelf libbz2
+Preinstall: liblzma
+Preinstall: nss nspr libfreebl3 libsoftokn3
+Preinstall: libmagic
+Preinstall: liblua
+Preinstall: smack libsmack libxml2 libmagic libmagic-data
+Preinstall: libsqlite
+#Preinstall: rpm-security-plugin
+Preinstall: util-linux util-linux-su
+
+VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols
+
+Required: binutils gcc glibc rpm-build libtool
+Required: gcc-c++
+
+Support: glibc-locale
+Support: perl
+Support: hostname
+Support: cpio findutils
+Support: file findutils zlib bzip2
+Support: gzip hostname net-tools
+Support: make patch sed gawk tar grep coreutils pkg-config
+Support: m4 tzdata
+Support: util-linux
+Support: less
+Support: which elfutils
+Support: update-alternatives
+Support: libstdc++-devel
+Support: cpp
+Support: libatomic
+Support: libgomp
+Support: libitm
+
+Keep: libstdc++-devel
+Keep: cpp gcc libstdc++
+Keep: pam
+Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
+Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
+Keep: make gmp libcap groff cpio
+Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
+Keep: kernel-headers perl-libs perl
+Keep: pkgconfig glib2 tizen-rpm-config
+Keep: libmpc libmpfr libppl libgmp libppl_c
+Keep: libcloog libppl libgmpxx
+Keep: nss-softokn-freebl libmagic libmagic-data
+Keep: setup
+Keep: update-alternatives
+Keep: cpp
+Keep: gcc-c++
+Keep: libatomic
+Keep: libgomp
+Keep: libitm
+
+Substitute: gettext gettext-tools
+
+%ifarch x86_64
+Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
+Substitute: libgcc_s1-32bit libgcc-32bit
+%else
+Substitute: glibc-devel-32bit
+%endif
+
+########## compilation flags ##########
+%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
+
+Optflags: armv7l %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -mthumb -Wp,-D__SOFTFP__ -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb
+Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
+Optflags: i686 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+Optflags: x86_64 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m64 -march=corei7 -msse4.2 -mtune=corei7-avx -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+### from Tizen:3.0:Mobile
+%define _repository target-TM1
+
+Macros:
+
+%distribution Tizen:3.0:Mobile / target-TM1
+%_project Tizen:3.0:Mobile
+
+### from Tizen:3.0:Mobile
+
+%_repository target-TM1
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Mobile
+#
+# RE contacts:
+#
+# vim: set syntax=spec:
+################################################################################
+
+############################# conflicts resolution #############################
+
+FileProvides: /usr/sbin/groupadd shadow-utils
+Prefer: libtapi-devel
+Prefer: libpci-devel
+Prefer: bluetooth-tools-no-firmware
+
+############################# profile definition ###############################
+
+%define profile mobile
+%define _with_tizen 1
+
+# For classifying debug/release mode
+Macros:
+%tizen_build_devel_mode 1
+:Macros
+
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%profile mobile
+%release_name Tizen3/Mobile
+
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+:Macros
+
+############################# display system ###################################
+
+########## display system selection ##########
+
+# selection of the display system
+# this selection is done for each repository
+#
+# flags combinations:
+# |----------------------------------------------------
+# | wayland | x | meaning
+# |----------------------------------------------------
+# | | 1 | pure X11 platform(no wayland)
+# | 1 | | pure wayland platform (no X11)
+# | 1 | 1 | wayland but X compatibility
+# | | | no X and no wayland
+# |----------------------------------------------------
+#
+# Owner: Stephane <stephane.desneux@open.eurogiciel.org>
+
+########## RDP flag ##########
+
+# enable/disable RDP (remote desktop protocol) for wayland
+# flag: _with_rdp, used in repositories
+# Affects: weston, freerdp
+# Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
+
+########## mesa activation ##########
+
+%define _with_mesa 1
+Macros:
+%_with_mesa 1
+:Macros
+
+%ifarch %arm armv7l aarch64
+ Substitute: mesa-devel pkgconfig(glesv2)
+ #FIXME Substitute: pkgconfig(egl)
+%endif
+
+########## coregl ##########
+%ifarch %arm aarch64
+Prefer: coregl coregl-devel
+Prefer: libwayland-egl libwayland-egl-devel
+Substitute: mesa-libGLESv2 coregl
+Substitute: mesa-libEGL coregl
+%endif
+
+###################### Activate KDBUS ######################
+# This configuration flag enables the support of KDBUS and Cynara-based Dbus Policy
+
+#%if "%_repository" == "arm64-wayland"
+
+#%define _with_kdbus 1
+#%define _with_dbuspolicy 1
+
+#Macros:
+#%_with_kdbus 1
+#%_with_dbuspolicy 1
+#:Macros
+
+#%endif
+
+############################# wayland repositories #############################
+
+%if "%_repository" == "atom-wayland" || "%_repository" == "x86_64-wayland" || "%_repository" == "arm-wayland" || "%_repository" == "arm64-wayland" || "%_repository" == "target-TM1"
+
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+%define _with_wayland 1
+%define _with_rdp 1
+
+Macros:
+%_with_wayland 1
+%_with_rdp 1
+:Macros
+
+%endif
+
+############################# emulator repositories ############################
+
+%if "%_repository" == "emulator32-wayland" || "%_repository" == "emulator64-wayland"
+
+Substitute: mesa-devel pkgconfig(glesv2)
+
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+Prefer: libgbm
+Prefer: coregl coregl-devel
+Prefer: emulator-yagl emulator-yagl-devel
+
+%define _with_wayland 1
+%define _with_emulator 1
+
+Macros:
+%_with_wayland 1
+%_with_emulator 1
+:Macros
+
+%endif
+
+%if "%_repository" == "target-TM1"
+
+Macros:
+%tizen_target_name TM1
+:Macros
+
+%endif
+
+############################# misc config flags ################################
+
+# Activate introspection
+# This is needed on GuPNP to build Rygel correctly in IVI
+# Impacts potentially packages that use gobject-introspection
+# Owner: Mikko <mikko.ylinen@intel.com>
+Macros:
+%_with_introspection 1
+:Macros
+
+############################# build config #####################################
+# derived from Tizen:Base
+################################################################################
+
+########## compilation flags ##########
+# derived from Tizen:Base
+#######################################
\ No newline at end of file
--- /dev/null
+%define _project Tizen:3.0:TV
+
+### from Tizen:3.0:Base
+%define _repository arm
+
+Macros:
+%vendor obs://private/Tizen:3.0:TV
+%_project Tizen:3.0:TV
+
+### from Tizen:3.0:Base
+
+%_repository arm
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Base
+#
+# RE contacts:
+#
+#
+# vim: set syntax=spec:
+################################################################################
+
+Patterntype: rpm-md comps
+Release: <CI_CNT>.<B_CNT>
+Support: build
+Support: build-compare build-mkbaselibs
+# Support: rpmlint-mini rpmlint-tizen
+
+############################# conflicts resolution #############################
+
+Prefer: util-linux
+
+############################# base definition ###############################
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+
+%_binary_payload w5T.xzdio
+:Macros
+
+
+############################# build config #####################################
+
+%define gcc_version 49
+Macros:
+%gcc_version 49
+:Macros
+
+########## targets ##########
+
+%ifarch i586
+Target: i686-tizen-linux
+%endif
+
+%ifarch armv7hl
+Target: armv7hl-tizen-linux
+%endif
+
+%ifarch armv7l
+Target: armv7l-tizen-linux
+%endif
+
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+
+########## cross build ##########
+
+%define build_hostarch x86_64
+Macros:
+%build_hostarch x86_64
+:Macros
+
+%ifarch %arm armv7l aarch64
+Hostarch: x86_64
+# cross build support for the build hosts
+Preinstall: qemu-linux-user-%{build_hostarch}-cross
+Runscripts: qemu-linux-user-%{build_hostarch}-cross
+Keep: qemu-linux-user-%{build_hostarch}-cross
+%endif
+
+%ifarch armv7l
+Preinstall: qemu-accel-%{build_hostarch}-armv7l
+Runscripts: qemu-accel-%{build_hostarch}-armv7l
+Preinstall: libmount libblkid libuuid
+%endif
+
+%ifarch aarch64
+Preinstall: qemu-accel-%{build_hostarch}-aarch64
+Runscripts: qemu-accel-%{build_hostarch}-aarch64
+Preinstall: libmount libblkid libuuid
+%endif # aarch64
+
+Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
+Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
+
+########## exports for different architectures ##########
+
+ExportFilter: \.armv7l\.rpm$ armv7l
+ExportFilter: \.aarch64\.rpm$ aarch64
+ExportFilter: \.x86_64\.rpm$ x86_64
+
+########## buildroot config ##########
+
+Preinstall: setup filesystem
+RunScripts: setup
+
+Preinstall: bash bzip2 coreutils diffutils grep rpm
+Preinstall: glibc libacl libattr
+Preinstall: libcap
+Preinstall: libgcc
+Preinstall: libpopt sed tar zlib
+Preinstall: libncurses libreadline
+Preinstall: libelf libbz2
+Preinstall: liblzma
+Preinstall: nss nspr libfreebl3 libsoftokn3
+Preinstall: libmagic
+Preinstall: liblua
+Preinstall: smack libsmack libxml2 libmagic libmagic-data
+Preinstall: libsqlite
+#Preinstall: rpm-security-plugin
+Preinstall: util-linux util-linux-su
+
+VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols
+
+Required: binutils gcc glibc rpm-build libtool
+Required: gcc-c++
+
+Support: glibc-locale
+Support: perl
+Support: hostname
+Support: cpio findutils
+Support: file findutils zlib bzip2
+Support: gzip hostname net-tools
+Support: make patch sed gawk tar grep coreutils pkg-config
+Support: m4 tzdata
+Support: util-linux
+Support: less
+Support: which elfutils
+Support: update-alternatives
+Support: libstdc++-devel
+Support: cpp
+Support: libatomic
+Support: libgomp
+Support: libitm
+
+Keep: libstdc++-devel
+Keep: cpp gcc libstdc++
+Keep: pam
+Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
+Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
+Keep: make gmp libcap groff cpio
+Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
+Keep: kernel-headers perl-libs perl
+Keep: pkgconfig glib2 tizen-rpm-config
+Keep: libmpc libmpfr libppl libgmp libppl_c
+Keep: libcloog libppl libgmpxx
+Keep: nss-softokn-freebl libmagic libmagic-data
+Keep: setup
+Keep: update-alternatives
+Keep: cpp
+Keep: gcc-c++
+Keep: libatomic
+Keep: libgomp
+Keep: libitm
+
+Substitute: gettext gettext-tools
+
+%ifarch x86_64
+Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
+Substitute: libgcc_s1-32bit libgcc-32bit
+%else
+Substitute: glibc-devel-32bit
+%endif
+
+########## compilation flags ##########
+%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
+
+Optflags: armv7l %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -mthumb -Wp,-D__SOFTFP__ -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb
+Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
+Optflags: i686 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+Optflags: x86_64 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m64 -march=corei7 -msse4.2 -mtune=corei7-avx -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+### from Tizen:3.0:TV
+%define _repository arm-wayland
+
+Macros:
+
+%distribution Tizen:3.0:TV / arm-wayland
+%_project Tizen:3.0:TV
+
+### from Tizen:3.0:TV
+
+%_repository arm-wayland
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:TV
+#
+# RE contacts:
+#
+# vim: set syntax=spec:
+################################################################################
+
+############################# conflicts resolution #############################
+
+FileProvides: /usr/sbin/groupadd shadow-utils
+Prefer: libtapi-devel
+Prefer: libpci-devel
+Prefer: bluetooth-tools-no-firmware
+
+############################# profile definition ###############################
+
+%define profile tv
+%define _with_tizen 1
+
+# For classifying debug/release mode
+Macros:
+%tizen_build_devel_mode 1
+:Macros
+
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%profile tv
+%release_name Tizen3/TV
+
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+:Macros
+
+############################# display system ###################################
+
+########## display system selection ##########
+
+# selection of the display system
+# this selection is done for each repository
+#
+# flags combinations:
+# |----------------------------------------------------
+# | wayland | x | meaning
+# |----------------------------------------------------
+# | | 1 | pure X11 platform(no wayland)
+# | 1 | | pure wayland platform (no X11)
+# | 1 | 1 | wayland but X compatibility
+# | | | no X and no wayland
+# |----------------------------------------------------
+#
+# Owner: Stephane <stephane.desneux@open.eurogiciel.org>
+
+########## RDP flag ##########
+
+# enable/disable RDP (remote desktop protocol) for wayland
+# flag: _with_rdp, used in repositories
+# Affects: weston, freerdp
+# Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
+
+########## mesa activation ##########
+
+%define _with_mesa 1
+Macros:
+%_with_mesa 1
+:Macros
+
+%ifarch %arm armv7l aarch64
+ Substitute: mesa-devel pkgconfig(glesv2)
+ #FIXME Substitute: pkgconfig(egl)
+%endif
+
+########## coregl ##########
+%ifarch %arm aarch64
+Prefer: coregl coregl-devel
+Prefer: libwayland-egl libwayland-egl-devel
+Substitute: mesa-libGLESv2 coregl
+Substitute: mesa-libEGL coregl
+%endif
+
+###################### Activate KDBUS ######################
+# This configuration flag enables the support of KDBUS and Cynara-based Dbus Policy
+
+%if "%_repository" == "arm-wayland"
+
+%define _with_kdbus 1
+%define _with_dbuspolicy 1
+
+Macros:
+%_with_kdbus 1
+%_with_dbuspolicy 1
+:Macros
+
+%endif
+
+############################# wayland repositories #############################
+
+%if "%_repository" == "ia32-wayland" || "%_repository" == "x86_64-wayland" || "%_repository" == "arm-wayland"
+
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+%define _with_wayland 1
+%define _with_rdp 1
+
+Macros:
+%_with_wayland 1
+%_with_rdp 1
+:Macros
+
+%endif
+
+############################# emulator repositories ############################
+
+%if "%_repository" == "emulator32-wayland" || "%_repository" == "emulator64-wayland"
+
+Substitute: mesa-devel pkgconfig(glesv2)
+
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+Prefer: libgbm
+Prefer: coregl coregl-devel
+Prefer: emulator-yagl emulator-yagl-devel
+
+%define _with_wayland 1
+%define _with_emulator 1
+
+Macros:
+%_with_wayland 1
+%_with_emulator 1
+:Macros
+
+%endif
+
+############################# misc config flags ################################
+
+# Activate introspection
+# This is needed on GuPNP to build Rygel correctly in IVI
+# Impacts potentially packages that use gobject-introspection
+# Owner: Mikko <mikko.ylinen@intel.com>
+Macros:
+%_with_introspection 1
+:Macros
+
+############################# build config #####################################
+# derived from Tizen:Base
+################################################################################
+
+########## compilation flags ##########
+# derived from Tizen:Base
+#######################################
\ No newline at end of file
--- /dev/null
+%define _project Tizen:3.0:TV
+
+### from Tizen:3.0:Base
+%define _repository emulator32
+
+Macros:
+%vendor obs://private/Tizen:3.0:TV
+%_project Tizen:3.0:TV
+
+### from Tizen:3.0:Base
+
+%_repository emulator32
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Base
+#
+# RE contacts:
+#
+#
+# vim: set syntax=spec:
+################################################################################
+
+Patterntype: rpm-md comps
+Release: <CI_CNT>.<B_CNT>
+Support: build
+Support: build-compare build-mkbaselibs
+# Support: rpmlint-mini rpmlint-tizen
+
+############################# conflicts resolution #############################
+
+Prefer: util-linux
+
+############################# base definition ###############################
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+
+%_binary_payload w5T.xzdio
+:Macros
+
+
+############################# build config #####################################
+
+%define gcc_version 49
+Macros:
+%gcc_version 49
+:Macros
+
+########## targets ##########
+
+%ifarch i586
+Target: i686-tizen-linux
+%endif
+
+%ifarch armv7hl
+Target: armv7hl-tizen-linux
+%endif
+
+%ifarch armv7l
+Target: armv7l-tizen-linux
+%endif
+
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+
+########## cross build ##########
+
+%define build_hostarch x86_64
+Macros:
+%build_hostarch x86_64
+:Macros
+
+%ifarch %arm armv7l aarch64
+Hostarch: x86_64
+# cross build support for the build hosts
+Preinstall: qemu-linux-user-%{build_hostarch}-cross
+Runscripts: qemu-linux-user-%{build_hostarch}-cross
+Keep: qemu-linux-user-%{build_hostarch}-cross
+%endif
+
+%ifarch armv7l
+Preinstall: qemu-accel-%{build_hostarch}-armv7l
+Runscripts: qemu-accel-%{build_hostarch}-armv7l
+Preinstall: libmount libblkid libuuid
+%endif
+
+%ifarch aarch64
+Preinstall: qemu-accel-%{build_hostarch}-aarch64
+Runscripts: qemu-accel-%{build_hostarch}-aarch64
+Preinstall: libmount libblkid libuuid
+%endif # aarch64
+
+Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
+Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
+
+########## exports for different architectures ##########
+
+ExportFilter: \.armv7l\.rpm$ armv7l
+ExportFilter: \.aarch64\.rpm$ aarch64
+ExportFilter: \.x86_64\.rpm$ x86_64
+
+########## buildroot config ##########
+
+Preinstall: setup filesystem
+RunScripts: setup
+
+Preinstall: bash bzip2 coreutils diffutils grep rpm
+Preinstall: glibc libacl libattr
+Preinstall: libcap
+Preinstall: libgcc
+Preinstall: libpopt sed tar zlib
+Preinstall: libncurses libreadline
+Preinstall: libelf libbz2
+Preinstall: liblzma
+Preinstall: nss nspr libfreebl3 libsoftokn3
+Preinstall: libmagic
+Preinstall: liblua
+Preinstall: smack libsmack libxml2 libmagic libmagic-data
+Preinstall: libsqlite
+#Preinstall: rpm-security-plugin
+Preinstall: util-linux util-linux-su
+
+VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols
+
+Required: binutils gcc glibc rpm-build libtool
+Required: gcc-c++
+
+Support: glibc-locale
+Support: perl
+Support: hostname
+Support: cpio findutils
+Support: file findutils zlib bzip2
+Support: gzip hostname net-tools
+Support: make patch sed gawk tar grep coreutils pkg-config
+Support: m4 tzdata
+Support: util-linux
+Support: less
+Support: which elfutils
+Support: update-alternatives
+Support: libstdc++-devel
+Support: cpp
+Support: libatomic
+Support: libgomp
+Support: libitm
+
+Keep: libstdc++-devel
+Keep: cpp gcc libstdc++
+Keep: pam
+Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
+Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
+Keep: make gmp libcap groff cpio
+Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
+Keep: kernel-headers perl-libs perl
+Keep: pkgconfig glib2 tizen-rpm-config
+Keep: libmpc libmpfr libppl libgmp libppl_c
+Keep: libcloog libppl libgmpxx
+Keep: nss-softokn-freebl libmagic libmagic-data
+Keep: setup
+Keep: update-alternatives
+Keep: cpp
+Keep: gcc-c++
+Keep: libatomic
+Keep: libgomp
+Keep: libitm
+
+Substitute: gettext gettext-tools
+
+%ifarch x86_64
+Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
+Substitute: libgcc_s1-32bit libgcc-32bit
+%else
+Substitute: glibc-devel-32bit
+%endif
+
+########## compilation flags ##########
+%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
+
+Optflags: armv7l %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -mthumb -Wp,-D__SOFTFP__ -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb
+Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
+Optflags: i686 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+Optflags: x86_64 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m64 -march=corei7 -msse4.2 -mtune=corei7-avx -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+### from Tizen:3.0:TV
+%define _repository emulator32-wayland
+
+Macros:
+
+%distribution Tizen:3.0:TV / emulator32-wayland
+%_project Tizen:3.0:TV
+
+### from Tizen:3.0:TV
+
+%_repository emulator32-wayland
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:TV
+#
+# RE contacts:
+#
+# vim: set syntax=spec:
+################################################################################
+
+############################# conflicts resolution #############################
+
+FileProvides: /usr/sbin/groupadd shadow-utils
+Prefer: libtapi-devel
+Prefer: libpci-devel
+Prefer: bluetooth-tools-no-firmware
+
+############################# profile definition ###############################
+
+%define profile tv
+%define _with_tizen 1
+
+# For classifying debug/release mode
+Macros:
+%tizen_build_devel_mode 1
+:Macros
+
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%profile tv
+%release_name Tizen3/TV
+
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+:Macros
+
+############################# display system ###################################
+
+########## display system selection ##########
+
+# selection of the display system
+# this selection is done for each repository
+#
+# flags combinations:
+# |----------------------------------------------------
+# | wayland | x | meaning
+# |----------------------------------------------------
+# | | 1 | pure X11 platform(no wayland)
+# | 1 | | pure wayland platform (no X11)
+# | 1 | 1 | wayland but X compatibility
+# | | | no X and no wayland
+# |----------------------------------------------------
+#
+# Owner: Stephane <stephane.desneux@open.eurogiciel.org>
+
+########## RDP flag ##########
+
+# enable/disable RDP (remote desktop protocol) for wayland
+# flag: _with_rdp, used in repositories
+# Affects: weston, freerdp
+# Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
+
+########## mesa activation ##########
+
+%define _with_mesa 1
+Macros:
+%_with_mesa 1
+:Macros
+
+%ifarch %arm armv7l aarch64
+ Substitute: mesa-devel pkgconfig(glesv2)
+ #FIXME Substitute: pkgconfig(egl)
+%endif
+
+########## coregl ##########
+%ifarch %arm aarch64
+Prefer: coregl coregl-devel
+Prefer: libwayland-egl libwayland-egl-devel
+Substitute: mesa-libGLESv2 coregl
+Substitute: mesa-libEGL coregl
+%endif
+
+###################### Activate KDBUS ######################
+# This configuration flag enables the support of KDBUS and Cynara-based Dbus Policy
+
+%if "%_repository" == "arm-wayland"
+
+%define _with_kdbus 1
+%define _with_dbuspolicy 1
+
+Macros:
+%_with_kdbus 1
+%_with_dbuspolicy 1
+:Macros
+
+%endif
+
+############################# wayland repositories #############################
+
+%if "%_repository" == "ia32-wayland" || "%_repository" == "x86_64-wayland" || "%_repository" == "arm-wayland"
+
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+%define _with_wayland 1
+%define _with_rdp 1
+
+Macros:
+%_with_wayland 1
+%_with_rdp 1
+:Macros
+
+%endif
+
+############################# emulator repositories ############################
+
+%if "%_repository" == "emulator32-wayland" || "%_repository" == "emulator64-wayland"
+
+Substitute: mesa-devel pkgconfig(glesv2)
+
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+Prefer: libgbm
+Prefer: coregl coregl-devel
+Prefer: emulator-yagl emulator-yagl-devel
+
+%define _with_wayland 1
+%define _with_emulator 1
+
+Macros:
+%_with_wayland 1
+%_with_emulator 1
+:Macros
+
+%endif
+
+############################# misc config flags ################################
+
+# Activate introspection
+# This is needed on GuPNP to build Rygel correctly in IVI
+# Impacts potentially packages that use gobject-introspection
+# Owner: Mikko <mikko.ylinen@intel.com>
+Macros:
+%_with_introspection 1
+:Macros
+
+############################# build config #####################################
+# derived from Tizen:Base
+################################################################################
+
+########## compilation flags ##########
+# derived from Tizen:Base
+#######################################
\ No newline at end of file
--- /dev/null
+%define _project Tizen:3.0:TV
+
+### from Tizen:3.0:Base
+%define _repository emulator64
+
+Macros:
+%vendor obs://private/Tizen:3.0:TV
+%_project Tizen:3.0:TV
+
+### from Tizen:3.0:Base
+
+%_repository emulator64
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Base
+#
+# RE contacts:
+#
+#
+# vim: set syntax=spec:
+################################################################################
+
+Patterntype: rpm-md comps
+Release: <CI_CNT>.<B_CNT>
+Support: build
+Support: build-compare build-mkbaselibs
+# Support: rpmlint-mini rpmlint-tizen
+
+############################# conflicts resolution #############################
+
+Prefer: util-linux
+
+############################# base definition ###############################
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+
+%_binary_payload w5T.xzdio
+:Macros
+
+
+############################# build config #####################################
+
+%define gcc_version 49
+Macros:
+%gcc_version 49
+:Macros
+
+########## targets ##########
+
+%ifarch i586
+Target: i686-tizen-linux
+%endif
+
+%ifarch armv7hl
+Target: armv7hl-tizen-linux
+%endif
+
+%ifarch armv7l
+Target: armv7l-tizen-linux
+%endif
+
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+
+########## cross build ##########
+
+%define build_hostarch x86_64
+Macros:
+%build_hostarch x86_64
+:Macros
+
+%ifarch %arm armv7l aarch64
+Hostarch: x86_64
+# cross build support for the build hosts
+Preinstall: qemu-linux-user-%{build_hostarch}-cross
+Runscripts: qemu-linux-user-%{build_hostarch}-cross
+Keep: qemu-linux-user-%{build_hostarch}-cross
+%endif
+
+%ifarch armv7l
+Preinstall: qemu-accel-%{build_hostarch}-armv7l
+Runscripts: qemu-accel-%{build_hostarch}-armv7l
+Preinstall: libmount libblkid libuuid
+%endif
+
+%ifarch aarch64
+Preinstall: qemu-accel-%{build_hostarch}-aarch64
+Runscripts: qemu-accel-%{build_hostarch}-aarch64
+Preinstall: libmount libblkid libuuid
+%endif # aarch64
+
+Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
+Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
+
+########## exports for different architectures ##########
+
+ExportFilter: \.armv7l\.rpm$ armv7l
+ExportFilter: \.aarch64\.rpm$ aarch64
+ExportFilter: \.x86_64\.rpm$ x86_64
+
+########## buildroot config ##########
+
+Preinstall: setup filesystem
+RunScripts: setup
+
+Preinstall: bash bzip2 coreutils diffutils grep rpm
+Preinstall: glibc libacl libattr
+Preinstall: libcap
+Preinstall: libgcc
+Preinstall: libpopt sed tar zlib
+Preinstall: libncurses libreadline
+Preinstall: libelf libbz2
+Preinstall: liblzma
+Preinstall: nss nspr libfreebl3 libsoftokn3
+Preinstall: libmagic
+Preinstall: liblua
+Preinstall: smack libsmack libxml2 libmagic libmagic-data
+Preinstall: libsqlite
+#Preinstall: rpm-security-plugin
+Preinstall: util-linux util-linux-su
+
+VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols
+
+Required: binutils gcc glibc rpm-build libtool
+Required: gcc-c++
+
+Support: glibc-locale
+Support: perl
+Support: hostname
+Support: cpio findutils
+Support: file findutils zlib bzip2
+Support: gzip hostname net-tools
+Support: make patch sed gawk tar grep coreutils pkg-config
+Support: m4 tzdata
+Support: util-linux
+Support: less
+Support: which elfutils
+Support: update-alternatives
+Support: libstdc++-devel
+Support: cpp
+Support: libatomic
+Support: libgomp
+Support: libitm
+
+Keep: libstdc++-devel
+Keep: cpp gcc libstdc++
+Keep: pam
+Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
+Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
+Keep: make gmp libcap groff cpio
+Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
+Keep: kernel-headers perl-libs perl
+Keep: pkgconfig glib2 tizen-rpm-config
+Keep: libmpc libmpfr libppl libgmp libppl_c
+Keep: libcloog libppl libgmpxx
+Keep: nss-softokn-freebl libmagic libmagic-data
+Keep: setup
+Keep: update-alternatives
+Keep: cpp
+Keep: gcc-c++
+Keep: libatomic
+Keep: libgomp
+Keep: libitm
+
+Substitute: gettext gettext-tools
+
+%ifarch x86_64
+Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
+Substitute: libgcc_s1-32bit libgcc-32bit
+%else
+Substitute: glibc-devel-32bit
+%endif
+
+########## compilation flags ##########
+%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
+
+Optflags: armv7l %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -mthumb -Wp,-D__SOFTFP__ -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb
+Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
+Optflags: i686 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+Optflags: x86_64 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m64 -march=corei7 -msse4.2 -mtune=corei7-avx -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+### from Tizen:3.0:TV
+%define _repository emulator64-wayland
+
+Macros:
+
+%distribution Tizen:3.0:TV / emulator64-wayland
+%_project Tizen:3.0:TV
+
+### from Tizen:3.0:TV
+
+%_repository emulator64-wayland
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:TV
+#
+# RE contacts:
+#
+# vim: set syntax=spec:
+################################################################################
+
+############################# conflicts resolution #############################
+
+FileProvides: /usr/sbin/groupadd shadow-utils
+Prefer: libtapi-devel
+Prefer: libpci-devel
+Prefer: bluetooth-tools-no-firmware
+
+############################# profile definition ###############################
+
+%define profile tv
+%define _with_tizen 1
+
+# For classifying debug/release mode
+Macros:
+%tizen_build_devel_mode 1
+:Macros
+
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%profile tv
+%release_name Tizen3/TV
+
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+:Macros
+
+############################# display system ###################################
+
+########## display system selection ##########
+
+# selection of the display system
+# this selection is done for each repository
+#
+# flags combinations:
+# |----------------------------------------------------
+# | wayland | x | meaning
+# |----------------------------------------------------
+# | | 1 | pure X11 platform(no wayland)
+# | 1 | | pure wayland platform (no X11)
+# | 1 | 1 | wayland but X compatibility
+# | | | no X and no wayland
+# |----------------------------------------------------
+#
+# Owner: Stephane <stephane.desneux@open.eurogiciel.org>
+
+########## RDP flag ##########
+
+# enable/disable RDP (remote desktop protocol) for wayland
+# flag: _with_rdp, used in repositories
+# Affects: weston, freerdp
+# Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
+
+########## mesa activation ##########
+
+%define _with_mesa 1
+Macros:
+%_with_mesa 1
+:Macros
+
+%ifarch %arm armv7l aarch64
+ Substitute: mesa-devel pkgconfig(glesv2)
+ #FIXME Substitute: pkgconfig(egl)
+%endif
+
+########## coregl ##########
+%ifarch %arm aarch64
+Prefer: coregl coregl-devel
+Prefer: libwayland-egl libwayland-egl-devel
+Substitute: mesa-libGLESv2 coregl
+Substitute: mesa-libEGL coregl
+%endif
+
+###################### Activate KDBUS ######################
+# This configuration flag enables the support of KDBUS and Cynara-based Dbus Policy
+
+%if "%_repository" == "arm-wayland"
+
+%define _with_kdbus 1
+%define _with_dbuspolicy 1
+
+Macros:
+%_with_kdbus 1
+%_with_dbuspolicy 1
+:Macros
+
+%endif
+
+############################# wayland repositories #############################
+
+%if "%_repository" == "ia32-wayland" || "%_repository" == "x86_64-wayland" || "%_repository" == "arm-wayland"
+
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+%define _with_wayland 1
+%define _with_rdp 1
+
+Macros:
+%_with_wayland 1
+%_with_rdp 1
+:Macros
+
+%endif
+
+############################# emulator repositories ############################
+
+%if "%_repository" == "emulator32-wayland" || "%_repository" == "emulator64-wayland"
+
+Substitute: mesa-devel pkgconfig(glesv2)
+
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+Prefer: libgbm
+Prefer: coregl coregl-devel
+Prefer: emulator-yagl emulator-yagl-devel
+
+%define _with_wayland 1
+%define _with_emulator 1
+
+Macros:
+%_with_wayland 1
+%_with_emulator 1
+:Macros
+
+%endif
+
+############################# misc config flags ################################
+
+# Activate introspection
+# This is needed on GuPNP to build Rygel correctly in IVI
+# Impacts potentially packages that use gobject-introspection
+# Owner: Mikko <mikko.ylinen@intel.com>
+Macros:
+%_with_introspection 1
+:Macros
+
+############################# build config #####################################
+# derived from Tizen:Base
+################################################################################
+
+########## compilation flags ##########
+# derived from Tizen:Base
+#######################################
\ No newline at end of file
--- /dev/null
+%define _project Tizen:3.0:Wearable
+
+### from Tizen:3.0:Base
+%define _repository emulator32
+
+Macros:
+%vendor obs://private/Tizen:3.0:Wearable
+%_project Tizen:3.0:Wearable
+
+### from Tizen:3.0:Base
+
+%_repository emulator32
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Base
+#
+# RE contacts:
+#
+#
+# vim: set syntax=spec:
+################################################################################
+
+Patterntype: rpm-md comps
+Release: <CI_CNT>.<B_CNT>
+Support: build
+Support: build-compare build-mkbaselibs
+# Support: rpmlint-mini rpmlint-tizen
+
+############################# conflicts resolution #############################
+
+Prefer: util-linux
+
+############################# base definition ###############################
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+
+%_binary_payload w5T.xzdio
+:Macros
+
+
+############################# build config #####################################
+
+%define gcc_version 49
+Macros:
+%gcc_version 49
+:Macros
+
+########## targets ##########
+
+%ifarch i586
+Target: i686-tizen-linux
+%endif
+
+%ifarch armv7hl
+Target: armv7hl-tizen-linux
+%endif
+
+%ifarch armv7l
+Target: armv7l-tizen-linux
+%endif
+
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+
+########## cross build ##########
+
+%define build_hostarch x86_64
+Macros:
+%build_hostarch x86_64
+:Macros
+
+%ifarch %arm armv7l aarch64
+Hostarch: x86_64
+# cross build support for the build hosts
+Preinstall: qemu-linux-user-%{build_hostarch}-cross
+Runscripts: qemu-linux-user-%{build_hostarch}-cross
+Keep: qemu-linux-user-%{build_hostarch}-cross
+%endif
+
+%ifarch armv7l
+Preinstall: qemu-accel-%{build_hostarch}-armv7l
+Runscripts: qemu-accel-%{build_hostarch}-armv7l
+Preinstall: libmount libblkid libuuid
+%endif
+
+%ifarch aarch64
+Preinstall: qemu-accel-%{build_hostarch}-aarch64
+Runscripts: qemu-accel-%{build_hostarch}-aarch64
+Preinstall: libmount libblkid libuuid
+%endif # aarch64
+
+Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
+Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
+
+########## exports for different architectures ##########
+
+ExportFilter: \.armv7l\.rpm$ armv7l
+ExportFilter: \.aarch64\.rpm$ aarch64
+ExportFilter: \.x86_64\.rpm$ x86_64
+
+########## buildroot config ##########
+
+Preinstall: setup filesystem
+RunScripts: setup
+
+Preinstall: bash bzip2 coreutils diffutils grep rpm
+Preinstall: glibc libacl libattr
+Preinstall: libcap
+Preinstall: libgcc
+Preinstall: libpopt sed tar zlib
+Preinstall: libncurses libreadline
+Preinstall: libelf libbz2
+Preinstall: liblzma
+Preinstall: nss nspr libfreebl3 libsoftokn3
+Preinstall: libmagic
+Preinstall: liblua
+Preinstall: smack libsmack libxml2 libmagic libmagic-data
+Preinstall: libsqlite
+#Preinstall: rpm-security-plugin
+Preinstall: util-linux util-linux-su
+
+VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols
+
+Required: binutils gcc glibc rpm-build libtool
+Required: gcc-c++
+
+Support: glibc-locale
+Support: perl
+Support: hostname
+Support: cpio findutils
+Support: file findutils zlib bzip2
+Support: gzip hostname net-tools
+Support: make patch sed gawk tar grep coreutils pkg-config
+Support: m4 tzdata
+Support: util-linux
+Support: less
+Support: which elfutils
+Support: update-alternatives
+Support: libstdc++-devel
+Support: cpp
+Support: libatomic
+Support: libgomp
+Support: libitm
+
+Keep: libstdc++-devel
+Keep: cpp gcc libstdc++
+Keep: pam
+Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
+Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
+Keep: make gmp libcap groff cpio
+Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
+Keep: kernel-headers perl-libs perl
+Keep: pkgconfig glib2 tizen-rpm-config
+Keep: libmpc libmpfr libppl libgmp libppl_c
+Keep: libcloog libppl libgmpxx
+Keep: nss-softokn-freebl libmagic libmagic-data
+Keep: setup
+Keep: update-alternatives
+Keep: cpp
+Keep: gcc-c++
+Keep: libatomic
+Keep: libgomp
+Keep: libitm
+
+Substitute: gettext gettext-tools
+
+%ifarch x86_64
+Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
+Substitute: libgcc_s1-32bit libgcc-32bit
+%else
+Substitute: glibc-devel-32bit
+%endif
+
+########## compilation flags ##########
+%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
+
+Optflags: armv7l %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -mthumb -Wp,-D__SOFTFP__ -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb
+Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
+Optflags: i686 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+Optflags: x86_64 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m64 -march=corei7 -msse4.2 -mtune=corei7-avx -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+### from Tizen:3.0:Wearable
+%define _repository emulator-circle
+
+Macros:
+
+%distribution Tizen:3.0:Wearable / emulator-circle
+%_project Tizen:3.0:Wearable
+
+### from Tizen:3.0:Wearable
+
+%_repository emulator-circle
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Wearable
+#
+# RE contacts:
+#
+# vim: set syntax=spec:
+################################################################################
+
+############################# conflicts resolution #############################
+
+FileProvides: /usr/sbin/groupadd shadow-utils
+Prefer: libtapi-devel
+Prefer: libpci-devel
+Prefer: bluetooth-tools-no-firmware
+
+############################# profile definition ###############################
+
+%define profile wearable
+%define _with_tizen 1
+
+# For classifying debug/release mode
+Macros:
+%tizen_build_devel_mode 1
+:Macros
+
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%profile wearable
+%release_name Tizen3/Wearable
+
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+:Macros
+
+############################# display system ###################################
+
+########## display system selection ##########
+
+# selection of the display system
+# this selection is done for each repository
+#
+# flags combinations:
+# |----------------------------------------------------
+# | wayland | x | meaning
+# |----------------------------------------------------
+# | | 1 | pure X11 platform(no wayland)
+# | 1 | | pure wayland platform (no X11)
+# | 1 | 1 | wayland but X compatibility
+# | | | no X and no wayland
+# |----------------------------------------------------
+#
+# Owner: Stephane <stephane.desneux@open.eurogiciel.org>
+
+########## RDP flag ##########
+
+# enable/disable RDP (remote desktop protocol) for wayland
+# flag: _with_rdp, used in repositories
+# Affects: weston, freerdp
+# Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
+
+########## mesa activation ##########
+
+%define _with_mesa 1
+Macros:
+%_with_mesa 1
+:Macros
+
+%ifarch %arm armv7l aarch64
+ Substitute: mesa-devel pkgconfig(glesv2)
+ #FIXME Substitute: pkgconfig(egl)
+%endif
+
+########## coregl ##########
+%ifarch %arm aarch64
+Prefer: coregl coregl-devel
+Prefer: libwayland-egl libwayland-egl-devel
+Substitute: mesa-libGLESv2 coregl
+Substitute: mesa-libEGL coregl
+%endif
+
+############################# wayland repositories #############################
+
+%if "%_repository" == "target-circle"
+
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+%define _with_wayland 1
+%define _with_rdp 1
+
+Macros:
+%_with_wayland 1
+%_with_rdp 1
+:Macros
+
+%endif
+
+############################# emulator repositories ############################
+
+%if "%_repository" == "emulator32-wayland" || "%_repository" == "emulator-circle"
+
+Substitute: mesa-devel pkgconfig(glesv2)
+
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+Prefer: libgbm
+Prefer: coregl coregl-devel
+Prefer: emulator-yagl emulator-yagl-devel
+
+%define _with_wayland 1
+%define _with_emulator 1
+
+Macros:
+%_with_wayland 1
+%_with_emulator 1
+:Macros
+
+%endif
+
+############################# misc config flags ################################
+
+# Activate introspection
+# This is needed on GuPNP to build Rygel correctly in IVI
+# Impacts potentially packages that use gobject-introspection
+# Owner: Mikko <mikko.ylinen@intel.com>
+Macros:
+%_with_introspection 1
+:Macros
+
+############################# build config #####################################
+# derived from Tizen:Base
+################################################################################
+
+########## compilation flags ##########
+# derived from Tizen:Base
+#######################################
\ No newline at end of file
--- /dev/null
+%define _project Tizen:3.0:Wearable
+
+### from Tizen:3.0:Base
+%define _repository emulator32
+
+Macros:
+%vendor obs://private/Tizen:3.0:Wearable
+%_project Tizen:3.0:Wearable
+
+### from Tizen:3.0:Base
+
+%_repository emulator32
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Base
+#
+# RE contacts:
+#
+#
+# vim: set syntax=spec:
+################################################################################
+
+Patterntype: rpm-md comps
+Release: <CI_CNT>.<B_CNT>
+Support: build
+Support: build-compare build-mkbaselibs
+# Support: rpmlint-mini rpmlint-tizen
+
+############################# conflicts resolution #############################
+
+Prefer: util-linux
+
+############################# base definition ###############################
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+
+%_binary_payload w5T.xzdio
+:Macros
+
+
+############################# build config #####################################
+
+%define gcc_version 49
+Macros:
+%gcc_version 49
+:Macros
+
+########## targets ##########
+
+%ifarch i586
+Target: i686-tizen-linux
+%endif
+
+%ifarch armv7hl
+Target: armv7hl-tizen-linux
+%endif
+
+%ifarch armv7l
+Target: armv7l-tizen-linux
+%endif
+
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+
+########## cross build ##########
+
+%define build_hostarch x86_64
+Macros:
+%build_hostarch x86_64
+:Macros
+
+%ifarch %arm armv7l aarch64
+Hostarch: x86_64
+# cross build support for the build hosts
+Preinstall: qemu-linux-user-%{build_hostarch}-cross
+Runscripts: qemu-linux-user-%{build_hostarch}-cross
+Keep: qemu-linux-user-%{build_hostarch}-cross
+%endif
+
+%ifarch armv7l
+Preinstall: qemu-accel-%{build_hostarch}-armv7l
+Runscripts: qemu-accel-%{build_hostarch}-armv7l
+Preinstall: libmount libblkid libuuid
+%endif
+
+%ifarch aarch64
+Preinstall: qemu-accel-%{build_hostarch}-aarch64
+Runscripts: qemu-accel-%{build_hostarch}-aarch64
+Preinstall: libmount libblkid libuuid
+%endif # aarch64
+
+Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
+Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
+
+########## exports for different architectures ##########
+
+ExportFilter: \.armv7l\.rpm$ armv7l
+ExportFilter: \.aarch64\.rpm$ aarch64
+ExportFilter: \.x86_64\.rpm$ x86_64
+
+########## buildroot config ##########
+
+Preinstall: setup filesystem
+RunScripts: setup
+
+Preinstall: bash bzip2 coreutils diffutils grep rpm
+Preinstall: glibc libacl libattr
+Preinstall: libcap
+Preinstall: libgcc
+Preinstall: libpopt sed tar zlib
+Preinstall: libncurses libreadline
+Preinstall: libelf libbz2
+Preinstall: liblzma
+Preinstall: nss nspr libfreebl3 libsoftokn3
+Preinstall: libmagic
+Preinstall: liblua
+Preinstall: smack libsmack libxml2 libmagic libmagic-data
+Preinstall: libsqlite
+#Preinstall: rpm-security-plugin
+Preinstall: util-linux util-linux-su
+
+VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols
+
+Required: binutils gcc glibc rpm-build libtool
+Required: gcc-c++
+
+Support: glibc-locale
+Support: perl
+Support: hostname
+Support: cpio findutils
+Support: file findutils zlib bzip2
+Support: gzip hostname net-tools
+Support: make patch sed gawk tar grep coreutils pkg-config
+Support: m4 tzdata
+Support: util-linux
+Support: less
+Support: which elfutils
+Support: update-alternatives
+Support: libstdc++-devel
+Support: cpp
+Support: libatomic
+Support: libgomp
+Support: libitm
+
+Keep: libstdc++-devel
+Keep: cpp gcc libstdc++
+Keep: pam
+Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
+Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
+Keep: make gmp libcap groff cpio
+Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
+Keep: kernel-headers perl-libs perl
+Keep: pkgconfig glib2 tizen-rpm-config
+Keep: libmpc libmpfr libppl libgmp libppl_c
+Keep: libcloog libppl libgmpxx
+Keep: nss-softokn-freebl libmagic libmagic-data
+Keep: setup
+Keep: update-alternatives
+Keep: cpp
+Keep: gcc-c++
+Keep: libatomic
+Keep: libgomp
+Keep: libitm
+
+Substitute: gettext gettext-tools
+
+%ifarch x86_64
+Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
+Substitute: libgcc_s1-32bit libgcc-32bit
+%else
+Substitute: glibc-devel-32bit
+%endif
+
+########## compilation flags ##########
+%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
+
+Optflags: armv7l %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -mthumb -Wp,-D__SOFTFP__ -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb
+Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
+Optflags: i686 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+Optflags: x86_64 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m64 -march=corei7 -msse4.2 -mtune=corei7-avx -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+### from Tizen:3.0:Wearable
+%define _repository emulator32-wayland
+
+Macros:
+
+%distribution Tizen:3.0:Wearable / emulator32-wayland
+%_project Tizen:3.0:Wearable
+
+### from Tizen:3.0:Wearable
+
+%_repository emulator32-wayland
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Wearable
+#
+# RE contacts:
+#
+# vim: set syntax=spec:
+################################################################################
+
+############################# conflicts resolution #############################
+
+FileProvides: /usr/sbin/groupadd shadow-utils
+Prefer: libtapi-devel
+Prefer: libpci-devel
+Prefer: bluetooth-tools-no-firmware
+
+############################# profile definition ###############################
+
+%define profile wearable
+%define _with_tizen 1
+
+# For classifying debug/release mode
+Macros:
+%tizen_build_devel_mode 1
+:Macros
+
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%profile wearable
+%release_name Tizen3/Wearable
+
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+:Macros
+
+############################# display system ###################################
+
+########## display system selection ##########
+
+# selection of the display system
+# this selection is done for each repository
+#
+# flags combinations:
+# |----------------------------------------------------
+# | wayland | x | meaning
+# |----------------------------------------------------
+# | | 1 | pure X11 platform(no wayland)
+# | 1 | | pure wayland platform (no X11)
+# | 1 | 1 | wayland but X compatibility
+# | | | no X and no wayland
+# |----------------------------------------------------
+#
+# Owner: Stephane <stephane.desneux@open.eurogiciel.org>
+
+########## RDP flag ##########
+
+# enable/disable RDP (remote desktop protocol) for wayland
+# flag: _with_rdp, used in repositories
+# Affects: weston, freerdp
+# Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
+
+########## mesa activation ##########
+
+%define _with_mesa 1
+Macros:
+%_with_mesa 1
+:Macros
+
+%ifarch %arm armv7l aarch64
+ Substitute: mesa-devel pkgconfig(glesv2)
+ #FIXME Substitute: pkgconfig(egl)
+%endif
+
+########## coregl ##########
+%ifarch %arm aarch64
+Prefer: coregl coregl-devel
+Prefer: libwayland-egl libwayland-egl-devel
+Substitute: mesa-libGLESv2 coregl
+Substitute: mesa-libEGL coregl
+%endif
+
+############################# wayland repositories #############################
+
+%if "%_repository" == "target-circle"
+
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+%define _with_wayland 1
+%define _with_rdp 1
+
+Macros:
+%_with_wayland 1
+%_with_rdp 1
+:Macros
+
+%endif
+
+############################# emulator repositories ############################
+
+%if "%_repository" == "emulator32-wayland" || "%_repository" == "emulator-circle"
+
+Substitute: mesa-devel pkgconfig(glesv2)
+
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+Prefer: libgbm
+Prefer: coregl coregl-devel
+Prefer: emulator-yagl emulator-yagl-devel
+
+%define _with_wayland 1
+%define _with_emulator 1
+
+Macros:
+%_with_wayland 1
+%_with_emulator 1
+:Macros
+
+%endif
+
+############################# misc config flags ################################
+
+# Activate introspection
+# This is needed on GuPNP to build Rygel correctly in IVI
+# Impacts potentially packages that use gobject-introspection
+# Owner: Mikko <mikko.ylinen@intel.com>
+Macros:
+%_with_introspection 1
+:Macros
+
+############################# build config #####################################
+# derived from Tizen:Base
+################################################################################
+
+########## compilation flags ##########
+# derived from Tizen:Base
+#######################################
\ No newline at end of file
--- /dev/null
+%define _project Tizen:3.0:Wearable
+
+### from Tizen:3.0:Base
+%define _repository arm
+
+Macros:
+%vendor obs://private/Tizen:3.0:Wearable
+%_project Tizen:3.0:Wearable
+
+### from Tizen:3.0:Base
+
+%_repository arm
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Base
+#
+# RE contacts:
+#
+#
+# vim: set syntax=spec:
+################################################################################
+
+Patterntype: rpm-md comps
+Release: <CI_CNT>.<B_CNT>
+Support: build
+Support: build-compare build-mkbaselibs
+# Support: rpmlint-mini rpmlint-tizen
+
+############################# conflicts resolution #############################
+
+Prefer: util-linux
+
+############################# base definition ###############################
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+
+%_binary_payload w5T.xzdio
+:Macros
+
+
+############################# build config #####################################
+
+%define gcc_version 49
+Macros:
+%gcc_version 49
+:Macros
+
+########## targets ##########
+
+%ifarch i586
+Target: i686-tizen-linux
+%endif
+
+%ifarch armv7hl
+Target: armv7hl-tizen-linux
+%endif
+
+%ifarch armv7l
+Target: armv7l-tizen-linux
+%endif
+
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+
+########## cross build ##########
+
+%define build_hostarch x86_64
+Macros:
+%build_hostarch x86_64
+:Macros
+
+%ifarch %arm armv7l aarch64
+Hostarch: x86_64
+# cross build support for the build hosts
+Preinstall: qemu-linux-user-%{build_hostarch}-cross
+Runscripts: qemu-linux-user-%{build_hostarch}-cross
+Keep: qemu-linux-user-%{build_hostarch}-cross
+%endif
+
+%ifarch armv7l
+Preinstall: qemu-accel-%{build_hostarch}-armv7l
+Runscripts: qemu-accel-%{build_hostarch}-armv7l
+Preinstall: libmount libblkid libuuid
+%endif
+
+%ifarch aarch64
+Preinstall: qemu-accel-%{build_hostarch}-aarch64
+Runscripts: qemu-accel-%{build_hostarch}-aarch64
+Preinstall: libmount libblkid libuuid
+%endif # aarch64
+
+Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
+Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
+
+########## exports for different architectures ##########
+
+ExportFilter: \.armv7l\.rpm$ armv7l
+ExportFilter: \.aarch64\.rpm$ aarch64
+ExportFilter: \.x86_64\.rpm$ x86_64
+
+########## buildroot config ##########
+
+Preinstall: setup filesystem
+RunScripts: setup
+
+Preinstall: bash bzip2 coreutils diffutils grep rpm
+Preinstall: glibc libacl libattr
+Preinstall: libcap
+Preinstall: libgcc
+Preinstall: libpopt sed tar zlib
+Preinstall: libncurses libreadline
+Preinstall: libelf libbz2
+Preinstall: liblzma
+Preinstall: nss nspr libfreebl3 libsoftokn3
+Preinstall: libmagic
+Preinstall: liblua
+Preinstall: smack libsmack libxml2 libmagic libmagic-data
+Preinstall: libsqlite
+#Preinstall: rpm-security-plugin
+Preinstall: util-linux util-linux-su
+
+VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols
+
+Required: binutils gcc glibc rpm-build libtool
+Required: gcc-c++
+
+Support: glibc-locale
+Support: perl
+Support: hostname
+Support: cpio findutils
+Support: file findutils zlib bzip2
+Support: gzip hostname net-tools
+Support: make patch sed gawk tar grep coreutils pkg-config
+Support: m4 tzdata
+Support: util-linux
+Support: less
+Support: which elfutils
+Support: update-alternatives
+Support: libstdc++-devel
+Support: cpp
+Support: libatomic
+Support: libgomp
+Support: libitm
+
+Keep: libstdc++-devel
+Keep: cpp gcc libstdc++
+Keep: pam
+Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
+Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
+Keep: make gmp libcap groff cpio
+Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
+Keep: kernel-headers perl-libs perl
+Keep: pkgconfig glib2 tizen-rpm-config
+Keep: libmpc libmpfr libppl libgmp libppl_c
+Keep: libcloog libppl libgmpxx
+Keep: nss-softokn-freebl libmagic libmagic-data
+Keep: setup
+Keep: update-alternatives
+Keep: cpp
+Keep: gcc-c++
+Keep: libatomic
+Keep: libgomp
+Keep: libitm
+
+Substitute: gettext gettext-tools
+
+%ifarch x86_64
+Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
+Substitute: libgcc_s1-32bit libgcc-32bit
+%else
+Substitute: glibc-devel-32bit
+%endif
+
+########## compilation flags ##########
+%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
+
+Optflags: armv7l %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -mthumb -Wp,-D__SOFTFP__ -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb
+Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
+Optflags: i686 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+Optflags: x86_64 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m64 -march=corei7 -msse4.2 -mtune=corei7-avx -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+### from Tizen:3.0:Wearable
+%define _repository target-circle
+
+Macros:
+
+%distribution Tizen:3.0:Wearable / target-circle
+%_project Tizen:3.0:Wearable
+
+### from Tizen:3.0:Wearable
+
+%_repository target-circle
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Wearable
+#
+# RE contacts:
+#
+# vim: set syntax=spec:
+################################################################################
+
+############################# conflicts resolution #############################
+
+FileProvides: /usr/sbin/groupadd shadow-utils
+Prefer: libtapi-devel
+Prefer: libpci-devel
+Prefer: bluetooth-tools-no-firmware
+
+############################# profile definition ###############################
+
+%define profile wearable
+%define _with_tizen 1
+
+# For classifying debug/release mode
+Macros:
+%tizen_build_devel_mode 1
+:Macros
+
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%profile wearable
+%release_name Tizen3/Wearable
+
+%tizen_version_major 3
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+:Macros
+
+############################# display system ###################################
+
+########## display system selection ##########
+
+# selection of the display system
+# this selection is done for each repository
+#
+# flags combinations:
+# |----------------------------------------------------
+# | wayland | x | meaning
+# |----------------------------------------------------
+# | | 1 | pure X11 platform(no wayland)
+# | 1 | | pure wayland platform (no X11)
+# | 1 | 1 | wayland but X compatibility
+# | | | no X and no wayland
+# |----------------------------------------------------
+#
+# Owner: Stephane <stephane.desneux@open.eurogiciel.org>
+
+########## RDP flag ##########
+
+# enable/disable RDP (remote desktop protocol) for wayland
+# flag: _with_rdp, used in repositories
+# Affects: weston, freerdp
+# Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
+
+########## mesa activation ##########
+
+%define _with_mesa 1
+Macros:
+%_with_mesa 1
+:Macros
+
+%ifarch %arm armv7l aarch64
+ Substitute: mesa-devel pkgconfig(glesv2)
+ #FIXME Substitute: pkgconfig(egl)
+%endif
+
+########## coregl ##########
+%ifarch %arm aarch64
+Prefer: coregl coregl-devel
+Prefer: libwayland-egl libwayland-egl-devel
+Substitute: mesa-libGLESv2 coregl
+Substitute: mesa-libEGL coregl
+%endif
+
+############################# wayland repositories #############################
+
+%if "%_repository" == "target-circle"
+
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+%define _with_wayland 1
+%define _with_rdp 1
+
+Macros:
+%_with_wayland 1
+%_with_rdp 1
+:Macros
+
+%endif
+
+############################# emulator repositories ############################
+
+%if "%_repository" == "emulator32-wayland" || "%_repository" == "emulator-circle"
+
+Substitute: mesa-devel pkgconfig(glesv2)
+
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+Prefer: libgbm
+Prefer: coregl coregl-devel
+Prefer: emulator-yagl emulator-yagl-devel
+
+%define _with_wayland 1
+%define _with_emulator 1
+
+Macros:
+%_with_wayland 1
+%_with_emulator 1
+:Macros
+
+%endif
+
+############################# misc config flags ################################
+
+# Activate introspection
+# This is needed on GuPNP to build Rygel correctly in IVI
+# Impacts potentially packages that use gobject-introspection
+# Owner: Mikko <mikko.ylinen@intel.com>
+Macros:
+%_with_introspection 1
+:Macros
+
+############################# build config #####################################
+# derived from Tizen:Base
+################################################################################
+
+########## compilation flags ##########
+# derived from Tizen:Base
+#######################################
\ No newline at end of file
+++ /dev/null
-%define _repository standard
-
-Patterntype: rpm-md comps
-Release: <CI_CNT>.<B_CNT>
-Support: build
-Support: build-compare build-mkbaselibs
-Support: rpmlint-mini rpmlint-tizen
-
-
-FileProvides: /usr/sbin/groupadd pwdutils
-Prefer: util-linux
-Prefer: nfc-manager
-Prefer: nfc-manager-devel
-Prefer: nfc-common-lib-devel
-Prefer: nfc-common-lib
-Prefer: nfc-manager-neard
-Prefer: nfc-manager-neard-devel
-Prefer: libtapi-devel
-
-%define gcc_version 48
-
-%define _with_ivi 1
-%define _with_wayland 1
-%define _with_tizen 1
-%define _with_mesa 1
-%define _with_desktop 1
-%define _wrt_option_bluetooth 1
-%define _wrt_option_msg_port 1
-%define _wrt_option_call_history 1
-
-# mesa
-Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2) pkgconfig(gl)
-Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1_cm) pkgconfig(gl)
-#Prefer: mesa-libEGL
-Prefer: nfc-manager-neard
-Prefer: nfc-common-lib-neard
-Prefer: calendar-service-devel
-
-%ifarch i586
-Target: i686-tizen-linux
-%endif
-
-%ifarch armv7hl
-Target: armv7hl-tizen-linux
-%endif
-
-%ifarch armv7l
-Target: armv7l-tizen-linux
-%endif
-
-%ifarch %arm armv7l
-Hostarch: x86_64
-# cross build support for the build hosts
-Preinstall: qemu-linux-user
-Keep: qemu-linux-user
-%endif
-
-%ifarch armv7hl
-Preinstall: qemu-accel-armv7hl
-Runscripts: qemu-accel-armv7hl
-Preinstall: util-linux libmount libblkid libuuid
-%endif
-%ifarch armv7l
-Preinstall: qemu-accel-armv7l
-Runscripts: qemu-accel-armv7l
-Preinstall: util-linux libmount libblkid libuuid
-%endif
-%ifarch armv7el
-Preinstall: qemu-accel-armv7el
-Runscripts: qemu-accel-armv7el
-Preinstall: util-linux libmount libblkid libuuid
-%endif
-
-ExportFilter: ^qemu-linux-user.*\.x86_64\.rpm$ . armv7el armv7l armv7hl
-
-ExportFilter: ^qemu-accel-armv7hl.*\.x86_64\.rpm$ . armv7hl
-ExportFilter: ^qemu-accel-armv7l.*\.x86_64\.rpm$ . armv7l
-ExportFilter: ^qemu-accel-armv7el.*\.x86_64\.rpm$ . armv7el
-ExportFilter: \.x86_64\.rpm$ x86_64
-
-
-Preinstall: setup filesystem
-RunScripts: setup
-
-Preinstall: bash bzip2 coreutils diffutils grep rpm
-Preinstall: glibc libacl libattr
-Preinstall: libcap
-Preinstall: libgcc_s1
-Preinstall: libpopt sed tar zlib
-Preinstall: libncurses libreadline
-Preinstall: libelf libbz2
-Preinstall: liblzma
-Preinstall: nss nspr libfreebl3 libsoftokn3
-Preinstall: libmagic
-Preinstall: liblua
-Preinstall: smack libsmack libxml2 libmagic libmagic-data
-Preinstall: libsqlite
-Preinstall: rpm-security-plugin
-
-VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux
-
-Required: binutils gcc glibc rpm-build libtool
-
-Support: glibc-locale
-Support: perl
-Support: hostname
-Support: cpio findutils
-Support: file findutils zlib bzip2
-Support: gzip hostname net-tools
-Support: make patch sed gawk tar grep coreutils pkg-config
-Support: m4 tzdata
-Support: util-linux
-Support: less
-Support: which elfutils
-Support: update-alternatives
-
-# TO REMOVE
-Support: gcc-c++
-
-Keep: cpp%{gcc_version} gcc%{gcc_version} gcc%{gcc_version}-ada libstdc++%{gcc_version}
-Keep: libstdc++%{gcc_version}-devel gcc%{gcc_version}-c++
-Keep: cpp gcc libstdc++
-Keep: pam
-Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
-Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
-Keep: make gmp libcap groff cpio
-Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
-Keep: kernel-headers perl-libs perl
-Keep: pkgconfig glib2 tizen-rpm-config
-Keep: libmpc libmpfr libppl libgmp libppl_c
-Keep: libcloog libppl libgmpxx
-Keep: nss-softokn-freebl libmagic libmagic-data
-Keep: setup
-Keep: update-alternatives
-Prefer: libstdc++%{gcc_version} libgcc%{gcc_version}
-Prefer: libstdc++%{gcc_version}-32bit libstdc++%{gcc_version}-64bit
-
-Substitute: gettext gettext-tools
-
-
-%ifarch x86_64
-Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
-%else
-Substitute: glibc-devel-32bit
-%endif
-
-
-#%__global_cflags -O2 -g2 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wformat -Wformat-security
-
-Optflags: x86_64 -O2 -g2 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wformat -Wformat-security -fmessage-length=0 -m64 -march=corei7 -msse4.2 -mtune=corei7-avx -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer -fipa-cp-clone
-
-Optflags: armv7l -O2 -g2 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wformat -Wformat-security -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=vfpv3 -mfloat-abi=softfp -D__SOFTFP__
-
-Macros:
-
-%profile ivi
-%_with_ivi 1
-%_with_wayland 1
-%_with_tizen 1
-%_with_mesa 1
-%_with_desktop 1
-%check exit 0
-%run_check_section 0
-%opensuse_bs 1
-%_default_patch_fuzz 2
-%_wrt_option_bluetooth 1
-%_wrt_option_msg_port 1
-%_wrt_option_call_history 1
-
-
-
-%tizen_version 3.0
-%tizen 3.0
-
-%vendor tizen
-%_vendor tizen
--- /dev/null
+%define _project Tizen:Unified
+
+### from Tizen:Base
+%define _repository x86_64
+
+Macros:
+%vendor obs://private/Tizen:Unified
+%_project Tizen:Unified
+
+### from Tizen:Base
+
+%_repository x86_64
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Base
+#
+# RE contacts:
+#
+#
+# vim: set syntax=spec:
+################################################################################
+
+Patterntype: rpm-md comps
+Release: <CI_CNT>.<B_CNT>
+Support: build
+Support: build-compare build-mkbaselibs
+# Support: rpmlint-mini rpmlint-tizen
+
+############################# conflicts resolution #############################
+
+Prefer: util-linux
+Prefer: mono-wcf
+Prefer: monodoc
+Prefer: mono-extras
+Prefer: mono-web
+Prefer: mono-data
+Prefer: mono-mvc
+Prefer: mono-winforms
+Prefer: mono-data-sqlite
+
+# Set a preference for ambiguous libs to use *-64bit libs
+# *-64bit libs on 32bit build environment are required for .Net build (e.g., coreclr, corefx)
+# But when building 64bit target, they could make 'have choice' error with original libs in 64bit repository.
+# e.g., libstdc++ and libstdc++-64bit provides same libs. It's ambiguous to choose appropriate one.
+# Owner : Jiyoung Yun (jy910.yun@samsung.com)
+Prefer: libgcc libstdc++ libunwind libuuid zlib libopenssl
+
+############################# base definition ###############################
+
+Macros:
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+
+%_binary_payload w5T.xzdio
+:Macros
+
+
+############################# build config #####################################
+
+%define gcc_version 62
+Macros:
+%gcc_version 62
+:Macros
+
+########## targets ##########
+
+%ifarch i586
+Target: i686-tizen-linux
+%endif
+
+%ifarch armv7hl
+Target: armv7hl-tizen-linux
+%endif
+
+%ifarch armv7l
+Target: armv7l-tizen-linux
+%endif
+
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+
+########## cross build ##########
+
+%define build_hostarch x86_64
+Macros:
+%build_hostarch x86_64
+:Macros
+
+%ifarch %arm armv7l aarch64
+Hostarch: x86_64
+# cross build support for the build hosts
+Preinstall: qemu-linux-user-%{build_hostarch}-cross
+Runscripts: qemu-linux-user-%{build_hostarch}-cross
+Keep: qemu-linux-user-%{build_hostarch}-cross
+%endif
+
+%ifarch armv7l
+Preinstall: qemu-accel-%{build_hostarch}-armv7l
+Runscripts: qemu-accel-%{build_hostarch}-armv7l
+Preinstall: libmount libblkid libuuid
+%endif
+
+%ifarch aarch64
+Preinstall: qemu-accel-%{build_hostarch}-aarch64
+Runscripts: qemu-accel-%{build_hostarch}-aarch64
+Preinstall: libmount libblkid libuuid
+%endif # aarch64
+
+Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
+Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
+
+########## exports for different architectures ##########
+
+ExportFilter: \.armv7l\.rpm$ armv7l
+ExportFilter: \.aarch64\.rpm$ aarch64
+ExportFilter: \.i586\.rpm$ i586
+ExportFilter: \.x86_64\.rpm$ x86_64
+
+########## buildroot config ##########
+
+Preinstall: setup filesystem
+RunScripts: setup
+
+Preinstall: bash bzip2 coreutils diffutils grep rpm
+Preinstall: glibc libacl libattr
+Preinstall: libcap
+Preinstall: libgcc
+Preinstall: libpopt sed tar zlib
+Preinstall: libncurses libreadline
+Preinstall: libelf libbz2
+Preinstall: liblzma
+Preinstall: nss nspr libfreebl3 libsoftokn3
+Preinstall: libmagic
+Preinstall: liblua
+Preinstall: smack libsmack libxml2 libmagic libmagic-data
+Preinstall: libsqlite
+#Preinstall: rpm-security-plugin
+Preinstall: util-linux util-linux-su
+
+VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols procps-ng
+
+Required: binutils gcc glibc rpm-build libtool
+Required: gcc-c++
+
+Support: glibc-locale
+Support: perl
+Support: hostname
+Support: cpio findutils
+Support: file findutils zlib bzip2
+Support: gzip hostname net-tools
+Support: make patch sed gawk tar grep coreutils pkg-config
+Support: m4 tzdata
+Support: util-linux
+Support: less
+Support: which elfutils
+Support: update-alternatives
+Support: libstdc++-devel
+Support: cpp
+Support: libatomic
+Support: libgomp
+Support: libitm
+
+Keep: libstdc++-devel
+Keep: cpp gcc libstdc++
+Keep: pam
+Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
+Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
+Keep: make gmp libcap groff cpio
+Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
+Keep: kernel-headers perl-libs perl
+Keep: pkgconfig glib2 tizen-rpm-config
+Keep: libmpc libmpfr libppl libgmp libppl_c
+Keep: libcloog libppl libgmpxx
+Keep: nss-softokn-freebl libmagic libmagic-data
+Keep: setup
+Keep: update-alternatives
+Keep: cpp
+Keep: gcc-c++
+Keep: libatomic
+Keep: libgomp
+Keep: libitm
+
+Substitute: gettext gettext-tools
+
+%ifarch x86_64
+Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
+Substitute: libgcc_s1-32bit libgcc-32bit
+%else
+Substitute: glibc-devel-32bit
+%endif
+
+########## compilation flags ##########
+%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
+
+Optflags: armv7l %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -mthumb -Wp,-D__SOFTFP__ -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb
+Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
+Optflags: i686 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+Optflags: x86_64 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m64 -march=nehalem -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+### from Tizen:Base
+%define _repository ia32
+
+Macros:
+
+### from Tizen:Base
+
+%_repository ia32
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Base
+#
+# RE contacts:
+#
+#
+# vim: set syntax=spec:
+################################################################################
+
+Patterntype: rpm-md comps
+Release: <CI_CNT>.<B_CNT>
+Support: build
+Support: build-compare build-mkbaselibs
+# Support: rpmlint-mini rpmlint-tizen
+
+############################# conflicts resolution #############################
+
+Prefer: util-linux
+Prefer: mono-wcf
+Prefer: monodoc
+Prefer: mono-extras
+Prefer: mono-web
+Prefer: mono-data
+Prefer: mono-mvc
+Prefer: mono-winforms
+Prefer: mono-data-sqlite
+
+# Set a preference for ambiguous libs to use *-64bit libs
+# *-64bit libs on 32bit build environment are required for .Net build (e.g., coreclr, corefx)
+# But when building 64bit target, they could make 'have choice' error with original libs in 64bit repository.
+# e.g., libstdc++ and libstdc++-64bit provides same libs. It's ambiguous to choose appropriate one.
+# Owner : Jiyoung Yun (jy910.yun@samsung.com)
+Prefer: libgcc libstdc++ libunwind libuuid zlib libopenssl
+
+############################# base definition ###############################
+
+Macros:
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+
+%_binary_payload w5T.xzdio
+:Macros
+
+
+############################# build config #####################################
+
+%define gcc_version 62
+Macros:
+%gcc_version 62
+:Macros
+
+########## targets ##########
+
+%ifarch i586
+Target: i686-tizen-linux
+%endif
+
+%ifarch armv7hl
+Target: armv7hl-tizen-linux
+%endif
+
+%ifarch armv7l
+Target: armv7l-tizen-linux
+%endif
+
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+
+########## cross build ##########
+
+%define build_hostarch x86_64
+Macros:
+%build_hostarch x86_64
+:Macros
+
+%ifarch %arm armv7l aarch64
+Hostarch: x86_64
+# cross build support for the build hosts
+Preinstall: qemu-linux-user-%{build_hostarch}-cross
+Runscripts: qemu-linux-user-%{build_hostarch}-cross
+Keep: qemu-linux-user-%{build_hostarch}-cross
+%endif
+
+%ifarch armv7l
+Preinstall: qemu-accel-%{build_hostarch}-armv7l
+Runscripts: qemu-accel-%{build_hostarch}-armv7l
+Preinstall: libmount libblkid libuuid
+%endif
+
+%ifarch aarch64
+Preinstall: qemu-accel-%{build_hostarch}-aarch64
+Runscripts: qemu-accel-%{build_hostarch}-aarch64
+Preinstall: libmount libblkid libuuid
+%endif # aarch64
+
+Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
+Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
+
+########## exports for different architectures ##########
+
+ExportFilter: \.armv7l\.rpm$ armv7l
+ExportFilter: \.aarch64\.rpm$ aarch64
+ExportFilter: \.i586\.rpm$ i586
+ExportFilter: \.x86_64\.rpm$ x86_64
+
+########## buildroot config ##########
+
+Preinstall: setup filesystem
+RunScripts: setup
+
+Preinstall: bash bzip2 coreutils diffutils grep rpm
+Preinstall: glibc libacl libattr
+Preinstall: libcap
+Preinstall: libgcc
+Preinstall: libpopt sed tar zlib
+Preinstall: libncurses libreadline
+Preinstall: libelf libbz2
+Preinstall: liblzma
+Preinstall: nss nspr libfreebl3 libsoftokn3
+Preinstall: libmagic
+Preinstall: liblua
+Preinstall: smack libsmack libxml2 libmagic libmagic-data
+Preinstall: libsqlite
+#Preinstall: rpm-security-plugin
+Preinstall: util-linux util-linux-su
+
+VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols procps-ng
+
+Required: binutils gcc glibc rpm-build libtool
+Required: gcc-c++
+
+Support: glibc-locale
+Support: perl
+Support: hostname
+Support: cpio findutils
+Support: file findutils zlib bzip2
+Support: gzip hostname net-tools
+Support: make patch sed gawk tar grep coreutils pkg-config
+Support: m4 tzdata
+Support: util-linux
+Support: less
+Support: which elfutils
+Support: update-alternatives
+Support: libstdc++-devel
+Support: cpp
+Support: libatomic
+Support: libgomp
+Support: libitm
+
+Keep: libstdc++-devel
+Keep: cpp gcc libstdc++
+Keep: pam
+Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
+Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
+Keep: make gmp libcap groff cpio
+Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
+Keep: kernel-headers perl-libs perl
+Keep: pkgconfig glib2 tizen-rpm-config
+Keep: libmpc libmpfr libppl libgmp libppl_c
+Keep: libcloog libppl libgmpxx
+Keep: nss-softokn-freebl libmagic libmagic-data
+Keep: setup
+Keep: update-alternatives
+Keep: cpp
+Keep: gcc-c++
+Keep: libatomic
+Keep: libgomp
+Keep: libitm
+
+Substitute: gettext gettext-tools
+
+%ifarch x86_64
+Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
+Substitute: libgcc_s1-32bit libgcc-32bit
+%else
+Substitute: glibc-devel-32bit
+%endif
+
+########## compilation flags ##########
+%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
+
+Optflags: armv7l %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -mthumb -Wp,-D__SOFTFP__ -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb
+Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
+Optflags: i686 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+Optflags: x86_64 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m64 -march=nehalem -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+### from Tizen:Unified
+%define _repository emulator
+
+Macros:
+
+%distribution Tizen:Unified / emulator
+%_project Tizen:Unified
+
+### from Tizen:Unified
+
+%_repository emulator
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Unified
+#
+# vim: set syntax=spec:
+################################################################################
+
+############################# conflicts resolution #############################
+
+FileProvides: /usr/sbin/groupadd shadow-utils
+Prefer: bluetooth-tools-no-firmware
+
+############################# profile definition ###############################
+
+%define _with_tizen 1
+
+# For classifying debug/release mode
+Macros:
+%tizen_build_devel_mode 1
+:Macros
+
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%release_name Tizen4/Unified
+
+%tizen_version_major 4
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+:Macros
+
+########## mesa activation / coregl ##########
+
+%define _with_mesa 1
+Macros:
+%_with_mesa 1
+:Macros
+
+Substitute: mesa-devel pkgconfig(glesv2)
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+Prefer: coregl coregl-devel
+Prefer: libwayland-egl libwayland-egl-devel
+
+########## WAYLAND #########
+
+%define _with_wayland 1
+Macros:
+%_with_wayland 1
+:Macros
+
+########## RDP flag ##########
+
+# enable/disable RDP (remote desktop protocol) for wayland
+# flag: _with_rdp, used in repositories
+# Affects: weston, freerdp
+# Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
+
+############################# target repositories #############################
+
+%if "%_repository" == "standard"
+
+Prefer: mesa libgbm
+Substitute: mesa-libGLESv2 coregl
+Substitute: mesa-libEGL coregl
+
+%define _with_rdp 1
+Macros:
+%_with_rdp 1
+:Macros
+
+%endif
+
+############################# emulator repositories ############################
+
+%if "%_repository" == "emulator"
+
+Prefer: libgbm
+Prefer: emulator-yagl emulator-yagl-devel
+
+%define _with_emulator 1
+Macros:
+%_with_emulator 1
+:Macros
+
+%endif
+
+############################# misc config flags ################################
+########## USAGE ##########
+#
+# IMPORTANT: please follow the following rules when playing with flags
+# ********************************************************************
+#
+# In spec file, call %bcond_with macro at the beginning and test with %with:
+# -------------------------
+# | %bcond_with myfeature
+# | [...]
+# | %if %{with myfeature}
+# | [...]
+# | %endif
+# | [...]
+# -------------------------
+#
+# To activate an option, use:
+# -------------------------
+# | %define _with_myfeature 1
+# | Macros:
+# | %_with_myfeature 1
+# | :Macros
+# -------------------------
+#
+# To disable an option, DON'T set the values to 0, as the option would still be defined
+# but simply comment the lines: this will undefine the option.
+# -------------------------
+# | #%define _with_myfeature 1
+# | #Macros:
+# | #%_with_myfeature 1
+# | #:Macros
+# -------------------------
+#
+# More information here:
+# https://en.opensuse.org/openSUSE:Build_Service_prjconf#.25bcond
+#
+
+########## flags ##########
+
+# Activate introspection
+# This is needed on GuPNP to build Rygel correctly in IVI
+# Impacts potentially packages that use gobject-introspection
+# Owner: Mikko <mikko.ylinen@intel.com>
+
+Macros:
+%_with_introspection 1
+:Macros
+
+############################# other config #####################################
+# derived from Tizen:Base
+################################################################################
\ No newline at end of file
--- /dev/null
+%define _project Tizen:Unified
+
+### from Tizen:Base
+%define _repository x86_64
+
+Macros:
+%vendor obs://private/Tizen:Unified
+%_project Tizen:Unified
+
+### from Tizen:Base
+
+%_repository x86_64
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Base
+#
+# RE contacts:
+#
+#
+# vim: set syntax=spec:
+################################################################################
+
+Patterntype: rpm-md comps
+Release: <CI_CNT>.<B_CNT>
+Support: build
+Support: build-compare build-mkbaselibs
+# Support: rpmlint-mini rpmlint-tizen
+
+############################# conflicts resolution #############################
+
+Prefer: util-linux
+Prefer: mono-wcf
+Prefer: monodoc
+Prefer: mono-extras
+Prefer: mono-web
+Prefer: mono-data
+Prefer: mono-mvc
+Prefer: mono-winforms
+Prefer: mono-data-sqlite
+
+# Set a preference for ambiguous libs to use *-64bit libs
+# *-64bit libs on 32bit build environment are required for .Net build (e.g., coreclr, corefx)
+# But when building 64bit target, they could make 'have choice' error with original libs in 64bit repository.
+# e.g., libstdc++ and libstdc++-64bit provides same libs. It's ambiguous to choose appropriate one.
+# Owner : Jiyoung Yun (jy910.yun@samsung.com)
+Prefer: libgcc libstdc++ libunwind libuuid zlib libopenssl
+
+############################# base definition ###############################
+
+Macros:
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+
+%_binary_payload w5T.xzdio
+:Macros
+
+
+############################# build config #####################################
+
+%define gcc_version 62
+Macros:
+%gcc_version 62
+:Macros
+
+########## targets ##########
+
+%ifarch i586
+Target: i686-tizen-linux
+%endif
+
+%ifarch armv7hl
+Target: armv7hl-tizen-linux
+%endif
+
+%ifarch armv7l
+Target: armv7l-tizen-linux
+%endif
+
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+
+########## cross build ##########
+
+%define build_hostarch x86_64
+Macros:
+%build_hostarch x86_64
+:Macros
+
+%ifarch %arm armv7l aarch64
+Hostarch: x86_64
+# cross build support for the build hosts
+Preinstall: qemu-linux-user-%{build_hostarch}-cross
+Runscripts: qemu-linux-user-%{build_hostarch}-cross
+Keep: qemu-linux-user-%{build_hostarch}-cross
+%endif
+
+%ifarch armv7l
+Preinstall: qemu-accel-%{build_hostarch}-armv7l
+Runscripts: qemu-accel-%{build_hostarch}-armv7l
+Preinstall: libmount libblkid libuuid
+%endif
+
+%ifarch aarch64
+Preinstall: qemu-accel-%{build_hostarch}-aarch64
+Runscripts: qemu-accel-%{build_hostarch}-aarch64
+Preinstall: libmount libblkid libuuid
+%endif # aarch64
+
+Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
+Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
+
+########## exports for different architectures ##########
+
+ExportFilter: \.armv7l\.rpm$ armv7l
+ExportFilter: \.aarch64\.rpm$ aarch64
+ExportFilter: \.i586\.rpm$ i586
+ExportFilter: \.x86_64\.rpm$ x86_64
+
+########## buildroot config ##########
+
+Preinstall: setup filesystem
+RunScripts: setup
+
+Preinstall: bash bzip2 coreutils diffutils grep rpm
+Preinstall: glibc libacl libattr
+Preinstall: libcap
+Preinstall: libgcc
+Preinstall: libpopt sed tar zlib
+Preinstall: libncurses libreadline
+Preinstall: libelf libbz2
+Preinstall: liblzma
+Preinstall: nss nspr libfreebl3 libsoftokn3
+Preinstall: libmagic
+Preinstall: liblua
+Preinstall: smack libsmack libxml2 libmagic libmagic-data
+Preinstall: libsqlite
+#Preinstall: rpm-security-plugin
+Preinstall: util-linux util-linux-su
+
+VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols procps-ng
+
+Required: binutils gcc glibc rpm-build libtool
+Required: gcc-c++
+
+Support: glibc-locale
+Support: perl
+Support: hostname
+Support: cpio findutils
+Support: file findutils zlib bzip2
+Support: gzip hostname net-tools
+Support: make patch sed gawk tar grep coreutils pkg-config
+Support: m4 tzdata
+Support: util-linux
+Support: less
+Support: which elfutils
+Support: update-alternatives
+Support: libstdc++-devel
+Support: cpp
+Support: libatomic
+Support: libgomp
+Support: libitm
+
+Keep: libstdc++-devel
+Keep: cpp gcc libstdc++
+Keep: pam
+Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
+Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
+Keep: make gmp libcap groff cpio
+Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
+Keep: kernel-headers perl-libs perl
+Keep: pkgconfig glib2 tizen-rpm-config
+Keep: libmpc libmpfr libppl libgmp libppl_c
+Keep: libcloog libppl libgmpxx
+Keep: nss-softokn-freebl libmagic libmagic-data
+Keep: setup
+Keep: update-alternatives
+Keep: cpp
+Keep: gcc-c++
+Keep: libatomic
+Keep: libgomp
+Keep: libitm
+
+Substitute: gettext gettext-tools
+
+%ifarch x86_64
+Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
+Substitute: libgcc_s1-32bit libgcc-32bit
+%else
+Substitute: glibc-devel-32bit
+%endif
+
+########## compilation flags ##########
+%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
+
+Optflags: armv7l %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -mthumb -Wp,-D__SOFTFP__ -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb
+Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
+Optflags: i686 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+Optflags: x86_64 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m64 -march=nehalem -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+### from Tizen:Base
+%define _repository ia32
+
+Macros:
+
+### from Tizen:Base
+
+%_repository ia32
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Base
+#
+# RE contacts:
+#
+#
+# vim: set syntax=spec:
+################################################################################
+
+Patterntype: rpm-md comps
+Release: <CI_CNT>.<B_CNT>
+Support: build
+Support: build-compare build-mkbaselibs
+# Support: rpmlint-mini rpmlint-tizen
+
+############################# conflicts resolution #############################
+
+Prefer: util-linux
+Prefer: mono-wcf
+Prefer: monodoc
+Prefer: mono-extras
+Prefer: mono-web
+Prefer: mono-data
+Prefer: mono-mvc
+Prefer: mono-winforms
+Prefer: mono-data-sqlite
+
+# Set a preference for ambiguous libs to use *-64bit libs
+# *-64bit libs on 32bit build environment are required for .Net build (e.g., coreclr, corefx)
+# But when building 64bit target, they could make 'have choice' error with original libs in 64bit repository.
+# e.g., libstdc++ and libstdc++-64bit provides same libs. It's ambiguous to choose appropriate one.
+# Owner : Jiyoung Yun (jy910.yun@samsung.com)
+Prefer: libgcc libstdc++ libunwind libuuid zlib libopenssl
+
+############################# base definition ###############################
+
+Macros:
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+
+%_binary_payload w5T.xzdio
+:Macros
+
+
+############################# build config #####################################
+
+%define gcc_version 62
+Macros:
+%gcc_version 62
+:Macros
+
+########## targets ##########
+
+%ifarch i586
+Target: i686-tizen-linux
+%endif
+
+%ifarch armv7hl
+Target: armv7hl-tizen-linux
+%endif
+
+%ifarch armv7l
+Target: armv7l-tizen-linux
+%endif
+
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+
+########## cross build ##########
+
+%define build_hostarch x86_64
+Macros:
+%build_hostarch x86_64
+:Macros
+
+%ifarch %arm armv7l aarch64
+Hostarch: x86_64
+# cross build support for the build hosts
+Preinstall: qemu-linux-user-%{build_hostarch}-cross
+Runscripts: qemu-linux-user-%{build_hostarch}-cross
+Keep: qemu-linux-user-%{build_hostarch}-cross
+%endif
+
+%ifarch armv7l
+Preinstall: qemu-accel-%{build_hostarch}-armv7l
+Runscripts: qemu-accel-%{build_hostarch}-armv7l
+Preinstall: libmount libblkid libuuid
+%endif
+
+%ifarch aarch64
+Preinstall: qemu-accel-%{build_hostarch}-aarch64
+Runscripts: qemu-accel-%{build_hostarch}-aarch64
+Preinstall: libmount libblkid libuuid
+%endif # aarch64
+
+Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
+Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
+
+########## exports for different architectures ##########
+
+ExportFilter: \.armv7l\.rpm$ armv7l
+ExportFilter: \.aarch64\.rpm$ aarch64
+ExportFilter: \.i586\.rpm$ i586
+ExportFilter: \.x86_64\.rpm$ x86_64
+
+########## buildroot config ##########
+
+Preinstall: setup filesystem
+RunScripts: setup
+
+Preinstall: bash bzip2 coreutils diffutils grep rpm
+Preinstall: glibc libacl libattr
+Preinstall: libcap
+Preinstall: libgcc
+Preinstall: libpopt sed tar zlib
+Preinstall: libncurses libreadline
+Preinstall: libelf libbz2
+Preinstall: liblzma
+Preinstall: nss nspr libfreebl3 libsoftokn3
+Preinstall: libmagic
+Preinstall: liblua
+Preinstall: smack libsmack libxml2 libmagic libmagic-data
+Preinstall: libsqlite
+#Preinstall: rpm-security-plugin
+Preinstall: util-linux util-linux-su
+
+VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols procps-ng
+
+Required: binutils gcc glibc rpm-build libtool
+Required: gcc-c++
+
+Support: glibc-locale
+Support: perl
+Support: hostname
+Support: cpio findutils
+Support: file findutils zlib bzip2
+Support: gzip hostname net-tools
+Support: make patch sed gawk tar grep coreutils pkg-config
+Support: m4 tzdata
+Support: util-linux
+Support: less
+Support: which elfutils
+Support: update-alternatives
+Support: libstdc++-devel
+Support: cpp
+Support: libatomic
+Support: libgomp
+Support: libitm
+
+Keep: libstdc++-devel
+Keep: cpp gcc libstdc++
+Keep: pam
+Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
+Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
+Keep: make gmp libcap groff cpio
+Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
+Keep: kernel-headers perl-libs perl
+Keep: pkgconfig glib2 tizen-rpm-config
+Keep: libmpc libmpfr libppl libgmp libppl_c
+Keep: libcloog libppl libgmpxx
+Keep: nss-softokn-freebl libmagic libmagic-data
+Keep: setup
+Keep: update-alternatives
+Keep: cpp
+Keep: gcc-c++
+Keep: libatomic
+Keep: libgomp
+Keep: libitm
+
+Substitute: gettext gettext-tools
+
+%ifarch x86_64
+Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
+Substitute: libgcc_s1-32bit libgcc-32bit
+%else
+Substitute: glibc-devel-32bit
+%endif
+
+########## compilation flags ##########
+%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
+
+Optflags: armv7l %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -mthumb -Wp,-D__SOFTFP__ -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb
+Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
+Optflags: i686 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+Optflags: x86_64 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m64 -march=nehalem -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+### from Tizen:Base
+%define _repository arm64
+
+Macros:
+
+### from Tizen:Base
+
+%_repository arm64
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Base
+#
+# RE contacts:
+#
+#
+# vim: set syntax=spec:
+################################################################################
+
+Patterntype: rpm-md comps
+Release: <CI_CNT>.<B_CNT>
+Support: build
+Support: build-compare build-mkbaselibs
+# Support: rpmlint-mini rpmlint-tizen
+
+############################# conflicts resolution #############################
+
+Prefer: util-linux
+Prefer: mono-wcf
+Prefer: monodoc
+Prefer: mono-extras
+Prefer: mono-web
+Prefer: mono-data
+Prefer: mono-mvc
+Prefer: mono-winforms
+Prefer: mono-data-sqlite
+
+# Set a preference for ambiguous libs to use *-64bit libs
+# *-64bit libs on 32bit build environment are required for .Net build (e.g., coreclr, corefx)
+# But when building 64bit target, they could make 'have choice' error with original libs in 64bit repository.
+# e.g., libstdc++ and libstdc++-64bit provides same libs. It's ambiguous to choose appropriate one.
+# Owner : Jiyoung Yun (jy910.yun@samsung.com)
+Prefer: libgcc libstdc++ libunwind libuuid zlib libopenssl
+
+############################# base definition ###############################
+
+Macros:
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+
+%_binary_payload w5T.xzdio
+:Macros
+
+
+############################# build config #####################################
+
+%define gcc_version 62
+Macros:
+%gcc_version 62
+:Macros
+
+########## targets ##########
+
+%ifarch i586
+Target: i686-tizen-linux
+%endif
+
+%ifarch armv7hl
+Target: armv7hl-tizen-linux
+%endif
+
+%ifarch armv7l
+Target: armv7l-tizen-linux
+%endif
+
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+
+########## cross build ##########
+
+%define build_hostarch x86_64
+Macros:
+%build_hostarch x86_64
+:Macros
+
+%ifarch %arm armv7l aarch64
+Hostarch: x86_64
+# cross build support for the build hosts
+Preinstall: qemu-linux-user-%{build_hostarch}-cross
+Runscripts: qemu-linux-user-%{build_hostarch}-cross
+Keep: qemu-linux-user-%{build_hostarch}-cross
+%endif
+
+%ifarch armv7l
+Preinstall: qemu-accel-%{build_hostarch}-armv7l
+Runscripts: qemu-accel-%{build_hostarch}-armv7l
+Preinstall: libmount libblkid libuuid
+%endif
+
+%ifarch aarch64
+Preinstall: qemu-accel-%{build_hostarch}-aarch64
+Runscripts: qemu-accel-%{build_hostarch}-aarch64
+Preinstall: libmount libblkid libuuid
+%endif # aarch64
+
+Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
+Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
+
+########## exports for different architectures ##########
+
+ExportFilter: \.armv7l\.rpm$ armv7l
+ExportFilter: \.aarch64\.rpm$ aarch64
+ExportFilter: \.i586\.rpm$ i586
+ExportFilter: \.x86_64\.rpm$ x86_64
+
+########## buildroot config ##########
+
+Preinstall: setup filesystem
+RunScripts: setup
+
+Preinstall: bash bzip2 coreutils diffutils grep rpm
+Preinstall: glibc libacl libattr
+Preinstall: libcap
+Preinstall: libgcc
+Preinstall: libpopt sed tar zlib
+Preinstall: libncurses libreadline
+Preinstall: libelf libbz2
+Preinstall: liblzma
+Preinstall: nss nspr libfreebl3 libsoftokn3
+Preinstall: libmagic
+Preinstall: liblua
+Preinstall: smack libsmack libxml2 libmagic libmagic-data
+Preinstall: libsqlite
+#Preinstall: rpm-security-plugin
+Preinstall: util-linux util-linux-su
+
+VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols procps-ng
+
+Required: binutils gcc glibc rpm-build libtool
+Required: gcc-c++
+
+Support: glibc-locale
+Support: perl
+Support: hostname
+Support: cpio findutils
+Support: file findutils zlib bzip2
+Support: gzip hostname net-tools
+Support: make patch sed gawk tar grep coreutils pkg-config
+Support: m4 tzdata
+Support: util-linux
+Support: less
+Support: which elfutils
+Support: update-alternatives
+Support: libstdc++-devel
+Support: cpp
+Support: libatomic
+Support: libgomp
+Support: libitm
+
+Keep: libstdc++-devel
+Keep: cpp gcc libstdc++
+Keep: pam
+Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
+Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
+Keep: make gmp libcap groff cpio
+Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
+Keep: kernel-headers perl-libs perl
+Keep: pkgconfig glib2 tizen-rpm-config
+Keep: libmpc libmpfr libppl libgmp libppl_c
+Keep: libcloog libppl libgmpxx
+Keep: nss-softokn-freebl libmagic libmagic-data
+Keep: setup
+Keep: update-alternatives
+Keep: cpp
+Keep: gcc-c++
+Keep: libatomic
+Keep: libgomp
+Keep: libitm
+
+Substitute: gettext gettext-tools
+
+%ifarch x86_64
+Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
+Substitute: libgcc_s1-32bit libgcc-32bit
+%else
+Substitute: glibc-devel-32bit
+%endif
+
+########## compilation flags ##########
+%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
+
+Optflags: armv7l %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -mthumb -Wp,-D__SOFTFP__ -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb
+Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
+Optflags: i686 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+Optflags: x86_64 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m64 -march=nehalem -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+### from Tizen:Base
+%define _repository arm
+
+Macros:
+
+### from Tizen:Base
+
+%_repository arm
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Base
+#
+# RE contacts:
+#
+#
+# vim: set syntax=spec:
+################################################################################
+
+Patterntype: rpm-md comps
+Release: <CI_CNT>.<B_CNT>
+Support: build
+Support: build-compare build-mkbaselibs
+# Support: rpmlint-mini rpmlint-tizen
+
+############################# conflicts resolution #############################
+
+Prefer: util-linux
+Prefer: mono-wcf
+Prefer: monodoc
+Prefer: mono-extras
+Prefer: mono-web
+Prefer: mono-data
+Prefer: mono-mvc
+Prefer: mono-winforms
+Prefer: mono-data-sqlite
+
+# Set a preference for ambiguous libs to use *-64bit libs
+# *-64bit libs on 32bit build environment are required for .Net build (e.g., coreclr, corefx)
+# But when building 64bit target, they could make 'have choice' error with original libs in 64bit repository.
+# e.g., libstdc++ and libstdc++-64bit provides same libs. It's ambiguous to choose appropriate one.
+# Owner : Jiyoung Yun (jy910.yun@samsung.com)
+Prefer: libgcc libstdc++ libunwind libuuid zlib libopenssl
+
+############################# base definition ###############################
+
+Macros:
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+
+%_binary_payload w5T.xzdio
+:Macros
+
+
+############################# build config #####################################
+
+%define gcc_version 62
+Macros:
+%gcc_version 62
+:Macros
+
+########## targets ##########
+
+%ifarch i586
+Target: i686-tizen-linux
+%endif
+
+%ifarch armv7hl
+Target: armv7hl-tizen-linux
+%endif
+
+%ifarch armv7l
+Target: armv7l-tizen-linux
+%endif
+
+%ifarch aarch64
+Target: aarch64-tizen-linux
+%endif
+
+########## cross build ##########
+
+%define build_hostarch x86_64
+Macros:
+%build_hostarch x86_64
+:Macros
+
+%ifarch %arm armv7l aarch64
+Hostarch: x86_64
+# cross build support for the build hosts
+Preinstall: qemu-linux-user-%{build_hostarch}-cross
+Runscripts: qemu-linux-user-%{build_hostarch}-cross
+Keep: qemu-linux-user-%{build_hostarch}-cross
+%endif
+
+%ifarch armv7l
+Preinstall: qemu-accel-%{build_hostarch}-armv7l
+Runscripts: qemu-accel-%{build_hostarch}-armv7l
+Preinstall: libmount libblkid libuuid
+%endif
+
+%ifarch aarch64
+Preinstall: qemu-accel-%{build_hostarch}-aarch64
+Runscripts: qemu-accel-%{build_hostarch}-aarch64
+Preinstall: libmount libblkid libuuid
+%endif # aarch64
+
+Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
+Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
+
+########## exports for different architectures ##########
+
+ExportFilter: \.armv7l\.rpm$ armv7l
+ExportFilter: \.aarch64\.rpm$ aarch64
+ExportFilter: \.i586\.rpm$ i586
+ExportFilter: \.x86_64\.rpm$ x86_64
+
+########## buildroot config ##########
+
+Preinstall: setup filesystem
+RunScripts: setup
+
+Preinstall: bash bzip2 coreutils diffutils grep rpm
+Preinstall: glibc libacl libattr
+Preinstall: libcap
+Preinstall: libgcc
+Preinstall: libpopt sed tar zlib
+Preinstall: libncurses libreadline
+Preinstall: libelf libbz2
+Preinstall: liblzma
+Preinstall: nss nspr libfreebl3 libsoftokn3
+Preinstall: libmagic
+Preinstall: liblua
+Preinstall: smack libsmack libxml2 libmagic libmagic-data
+Preinstall: libsqlite
+#Preinstall: rpm-security-plugin
+Preinstall: util-linux util-linux-su
+
+VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols procps-ng
+
+Required: binutils gcc glibc rpm-build libtool
+Required: gcc-c++
+
+Support: glibc-locale
+Support: perl
+Support: hostname
+Support: cpio findutils
+Support: file findutils zlib bzip2
+Support: gzip hostname net-tools
+Support: make patch sed gawk tar grep coreutils pkg-config
+Support: m4 tzdata
+Support: util-linux
+Support: less
+Support: which elfutils
+Support: update-alternatives
+Support: libstdc++-devel
+Support: cpp
+Support: libatomic
+Support: libgomp
+Support: libitm
+
+Keep: libstdc++-devel
+Keep: cpp gcc libstdc++
+Keep: pam
+Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
+Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
+Keep: make gmp libcap groff cpio
+Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
+Keep: kernel-headers perl-libs perl
+Keep: pkgconfig glib2 tizen-rpm-config
+Keep: libmpc libmpfr libppl libgmp libppl_c
+Keep: libcloog libppl libgmpxx
+Keep: nss-softokn-freebl libmagic libmagic-data
+Keep: setup
+Keep: update-alternatives
+Keep: cpp
+Keep: gcc-c++
+Keep: libatomic
+Keep: libgomp
+Keep: libitm
+
+Substitute: gettext gettext-tools
+
+%ifarch x86_64
+Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
+Substitute: libgcc_s1-32bit libgcc-32bit
+%else
+Substitute: glibc-devel-32bit
+%endif
+
+########## compilation flags ##########
+%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
+
+Optflags: armv7l %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -mthumb -Wp,-D__SOFTFP__ -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb
+Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
+Optflags: i686 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+Optflags: x86_64 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m64 -march=nehalem -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
+### from Tizen:Unified
+%define _repository standard
+
+Macros:
+
+%distribution Tizen:Unified
+%_project Tizen:Unified
+
+### from Tizen:Unified
+
+%_repository standard
+:Macros
+
+################################################################################
+# OBS Project config for Tizen:Unified
+#
+# vim: set syntax=spec:
+################################################################################
+
+############################# conflicts resolution #############################
+
+FileProvides: /usr/sbin/groupadd shadow-utils
+Prefer: bluetooth-tools-no-firmware
+
+############################# profile definition ###############################
+
+%define _with_tizen 1
+
+# For classifying debug/release mode
+Macros:
+%tizen_build_devel_mode 1
+:Macros
+
+# %release_name and %tizen_full_version are used in platform/upstream/tizen-release
+
+Macros:
+%release_name Tizen4/Unified
+
+%tizen_version_major 4
+%tizen_version_minor 0
+%tizen_version_patch 0
+
+%tizen_version %{tizen_version_major}.%{tizen_version_minor}
+%tizen_full_version %{tizen_version}.%{tizen_version_patch}
+%tizen %tizen_version
+%vendor tizen
+%_vendor tizen
+%_with_tizen 1
+
+%check exit 0
+%run_check_section 0
+%opensuse_bs 1
+%_default_patch_fuzz 2
+:Macros
+
+########## mesa activation / coregl ##########
+
+%define _with_mesa 1
+Macros:
+%_with_mesa 1
+:Macros
+
+Substitute: mesa-devel pkgconfig(glesv2)
+Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
+Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
+
+Prefer: coregl coregl-devel
+Prefer: libwayland-egl libwayland-egl-devel
+
+########## WAYLAND #########
+
+%define _with_wayland 1
+Macros:
+%_with_wayland 1
+:Macros
+
+########## RDP flag ##########
+
+# enable/disable RDP (remote desktop protocol) for wayland
+# flag: _with_rdp, used in repositories
+# Affects: weston, freerdp
+# Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
+
+############################# target repositories #############################
+
+%if "%_repository" == "standard"
+
+Prefer: mesa libgbm
+Substitute: mesa-libGLESv2 coregl
+Substitute: mesa-libEGL coregl
+
+%define _with_rdp 1
+Macros:
+%_with_rdp 1
+:Macros
+
+%endif
+
+############################# emulator repositories ############################
+
+%if "%_repository" == "emulator"
+
+Prefer: libgbm
+Prefer: emulator-yagl emulator-yagl-devel
+
+%define _with_emulator 1
+Macros:
+%_with_emulator 1
+:Macros
+
+%endif
+
+############################# misc config flags ################################
+########## USAGE ##########
+#
+# IMPORTANT: please follow the following rules when playing with flags
+# ********************************************************************
+#
+# In spec file, call %bcond_with macro at the beginning and test with %with:
+# -------------------------
+# | %bcond_with myfeature
+# | [...]
+# | %if %{with myfeature}
+# | [...]
+# | %endif
+# | [...]
+# -------------------------
+#
+# To activate an option, use:
+# -------------------------
+# | %define _with_myfeature 1
+# | Macros:
+# | %_with_myfeature 1
+# | :Macros
+# -------------------------
+#
+# To disable an option, DON'T set the values to 0, as the option would still be defined
+# but simply comment the lines: this will undefine the option.
+# -------------------------
+# | #%define _with_myfeature 1
+# | #Macros:
+# | #%_with_myfeature 1
+# | #:Macros
+# -------------------------
+#
+# More information here:
+# https://en.opensuse.org/openSUSE:Build_Service_prjconf#.25bcond
+#
+
+########## flags ##########
+
+# Activate introspection
+# This is needed on GuPNP to build Rygel correctly in IVI
+# Impacts potentially packages that use gobject-introspection
+# Owner: Mikko <mikko.ylinen@intel.com>
+
+Macros:
+%_with_introspection 1
+:Macros
+
+############################# other config #####################################
+# derived from Tizen:Base
+################################################################################
\ No newline at end of file