################################################################################ # OBS Project config for Tizen:Common # # RE contacts: # Maciej Wereski # Pawel Wieczorek # # 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 ########## 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 Macros: %_with_dlog_to_systemd_journal 1 :Macros # Macro used for testing gstreamer 1.X API # Used: qt* # Owner: Philippe Coval %define _with_gstreamer1 1 Macros: %_with_gstreamer1 1 :Macros # Macro used for testing libva availability # Used: weston # Owner: Philippe Coval %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 #%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 Macros: %_with_introspection 1 :Macros # Activate KDBUS # This configuration flag enables the support of KDBUS # Used: platform/upstream/setup # Owner: Stephane Desneux #%define _with_kdbus 1 #Macros: #%_with_kdbus 1 #:Macros ############################# build config ##################################### # derived from Tizen:Base ################################################################################ ########## compilation flags ########## # derived from Tizen:Base #######################################