###############################################
-##
-## Tizen v2.4 for mobile
-##
+#
+# Tizen v2.4 for mobile
+#
[profile.tizenmb_v2.4]
obs = obs.tizenmb
# The order is IMPORTANT!
repos = repo.tizenmb_base_v2.4_obs
-buildroot=~/GBS-ROOT-2.4-DEV
+buildroot = ~/GBS-ROOT-2.4-DEV
[repo.tizenmb_base_v2.4_obs]
url = http://168.219.209.55/download/snapshots/2.4-mobile/common/latest/repos/target/packages
obs = obs.tizenmb
# The order is IMPORTANT!
repos = repo.tizen_emulator_base_v2.4_obs
-buildroot=~/GBS-ROOT-2.4-DEV
+buildroot = ~/GBS-ROOT-2.4-DEV
[repo.tizen_emulator_base_v2.4_obs]
url = http://168.219.209.55/download/snapshots/2.4-mobile/common/latest/repos/emulator/packages
obs = obs.tizenmb
# The order is IMPORTANT!
repos = repo.tizenmb_supplement_v2.3, repo.tizenmb_supplement_chromium_v2.3, repo.tizenmb_base_v2.3
-buildroot=~/GBS-ROOT-2.3-DEV
+buildroot = ~/GBS-ROOT-2.3-DEV
[repo.tizenmb_supplement_v2.3]
url = http://10.251.52.177/tizenrepo/eur-open/supplement_v2.3
url = http://10.251.52.177/tizenrepo/tv_repo/supplement_tv
###############################################
-##
-## Tizen v2.2.1 for tv (Prehawk Platform Binary)
-##
-
+#
+# Tizen v2.2.1 for tv (Prehawk Platform Binary)
+#
[profile.tztv_v2.2.1_prehawk]
repos = repo.tztv_2.2.1_prehawk_supplement, repo.tztv_2.2.1_prehawk_product, repo.tztv_2.2.1_prehawk_profile, repo.tztv_2.2.1_prehawk_base
buildroot = ~/GBS-TV-2.2.1-PREHAWK
url = http://10.251.52.177/tizenrepo/tv_repo/supplement_tv_prehawk_player
###############################################
-##
-## Tizen v3.0 for TV
-##
-
+#
+# Tizen v3.0 for TV
+#
[obs.tizen]
url = https://api.tizen.org
[profile.tztv_v3.0]
obs = obs.tizen
-repos = repo.supplement, repo.tv_arm-x11
-buildroot=~/GBS-ROOT-3.0-TV
+repos = repo.tv_arm-x11
+buildroot = ~/GBS-ROOT-3.0-TV
-# mirrored from http://download.tizen.org/snapshots/tizen/tv
[repo.tv_arm-x11]
-url = http://10.251.52.177/tizenrepo/tv_repo/tizen-tv_v3.0/repos/arm-x11/packages
-
-[repo.supplement]
-url = http://10.251.52.177/tizenrepo/tv_repo/supplement_odroid_chromium_tizen_v3.0
+url = http://download.tizen.org/snapshots/tizen/tv/latest/repos/arm-x11/packages
###############################################
-## Tizen v3.0 for tv (Emulator)
-##
+#
+# Tizen v3.0 for tv (Emulator)
+#
[obs.tizentv]
url = https://api.tizen.org
+Name: chromium-efl
+Summary: Chromium EFL
+# Set by by scripts/update-chromium-version.sh
+%define ChromiumVersion 40.2214.38
+%define Week 51
+Version: %{ChromiumVersion}.%{Week}
+Release: 1
+# The 'Group' should be specified as one of the following valid group list.
+# https://wiki.tizen.org/wiki/Packaging/Guidelines#Group_Tag
+Group: Web Framework/Web Engine
+# The 'License' should be specified as some of the following known license list.
+# http://spdx.org/licenses/
+License: LGPL-2.1 or BSD-2-Clause
+
+Source0: %{name}-%{version}.tar.gz
+Source1: content_shell.in
+
%if 0%{?nodebug}
%global __debug_install_post %{nil}
%global debug_package %{nil}
%define _debug_mode 1
%endif
-%if "%{_repository}"=="arm-x11"
-Name: org.tizen.chromium-efl
-%else
-Name: chromium-efl
+# Conditions for OBS build
+# The OBS build does not support running script 'build_{target}.sh'.
+# TODO: There is a bug regarding mismatched versions from repository.
+# So, the versions need to be considered as originally intended versions,
+# until those versions are fixed by platform team.
+# 1) The value '2.3' of '%{tizen}' should be '2.4'.
+# 2) The value '2.0' of '%{tizen}' should be '2.3'.
+%if "%{tizen}" == "3.0"
+%define chromium_efl_tizen_version 3.0
+%endif
+%if "%{tizen}" == "2.3"
+%define chromium_efl_tizen_version 2.4
+%endif
+%if "%{tizen}" == "2.0"
+%define chromium_efl_tizen_version 2.3
+%endif
+%if "%{tizen}" == "2.2.1"
+%define chromium_efl_tizen_version 2.2.1
%endif
-Summary: Chromium EFL
-# Set by by scripts/update-chromium-version.sh
-%define ChromiumVersion 40.2214.38
-%define Week 51
-Version: %{ChromiumVersion}.%{Week}
-Release: 1
-Group: Applications/Internet
-License: LGPLv2.1 or BSD
-Source0: %{name}-%{version}.tar.gz
-Source1: content_shell.in
+%if %{!?TIZEN_PROFILE_TV:0}%{?TIZEN_PROFILE_TV:1} || "%{!?profile:0}%{?profile}" == "tv"
+%define chromium_efl_tizen_profile tv
+%else
+%define chromium_efl_tizen_profile mobile
+%endif
# Excluded wearable profile build
# Chromium-efl doesn't support the wearable profile
BuildRequires: pkgconfig(libexif)
BuildRequires: pkgconfig(nspr)
BuildRequires: pkgconfig(zlib)
-%if %{!?TIZEN_PROFILE_TV:1}%{?TIZEN_PROFILE_TV:0}
+BuildRequires: pkgconfig(capi-media-camera)
+BuildRequires: pkgconfig(capi-media-audio-io)
+BuildRequires: pkgconfig(capi-media-player)
+BuildRequires: pkgconfig(vconf)
+BuildRequires: pkgconfig(libdri2)
+BuildRequires: pkgconfig(libtbm)
+BuildRequires: pkgconfig(x11)
+BuildRequires: pkgconfig(feedback)
+BuildRequires: pkgconfig(appcore-efl)
+BuildRequires: pkgconfig(dlog)
+BuildRequires: pkgconfig(ecore-imf)
+BuildRequires: pkgconfig(scim)
+# for Mobile
+%if %{!?chromium_efl_tizen_profile:0}%{?chromium_efl_tizen_profile} == "mobile"
BuildRequires: bzip2-devel
BuildRequires: pkgconfig(efl-assist)
BuildRequires: pkgconfig(ttrace)
BuildRequires: pkgconfig(capi-network-connection)
BuildRequires: pkgconfig(capi-system-sensor)
-%else # TIZEN_PROFILE_TV
+%else # for TV
BuildRequires: pkgconfig(audio-session-mgr)
BuildRequires: pkgconfig(mm-session)
%endif
-%if "%{?chromium_efl_tizen_version:%{chromium_efl_tizen_version}}%{!?chromium_efl_tizen_version:0}" >= "2.4"
+# for Tizen v3.0 and Tizen v2.4
+%if "%{?chromium_efl_tizen_version}%{!?chromium_efl_tizen_version:0}" >= "2.4"
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires: pkgconfig(gstreamer-app-1.0)
-%else # for Tizen v2.X
+%else # <= Tizen v2.3
BuildRequires: pkgconfig(gstreamer-0.10)
BuildRequires: pkgconfig(gstreamer-plugins-base-0.10)
BuildRequires: pkgconfig(gstreamer-app-0.10)
%endif
-BuildRequires: pkgconfig(capi-media-camera)
-BuildRequires: pkgconfig(capi-media-audio-io)
-BuildRequires: pkgconfig(capi-media-player)
-BuildRequires: pkgconfig(vconf)
-BuildRequires: pkgconfig(libdri2)
-BuildRequires: pkgconfig(libtbm)
-BuildRequires: pkgconfig(x11)
-BuildRequires: pkgconfig(feedback)
-BuildRequires: pkgconfig(appcore-efl)
-BuildRequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(ecore-imf)
-BuildRequires: pkgconfig(scim)
%description
Browser Engine based on Chromium EFL (Shared Library)
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
-Browser Engine dev library based on Chromium EFL (developement files)
+Browser Engine dev library based on Chromium EFL (development files)
%if 0%{?_enable_content_shell}
%package shell
# TODO : This execution will be removed by multimedia team
# Bug : http://107.108.218.239/bugzilla/show_bug.cgi?id=10516
-%if %{!?chromium_efl_tizen_version:1}%{?chromium_efl_tizen_version:0}
+trap 'build/apply_patches.sh -r build/patches;\
+ error_report $0 $LINENO' ERR SIGINT SIGTERM SIGQUIT
+
build/apply_patches.sh build/patches
-%endif
# workaround for new nss library : search it in /usr/lib first, rather than /lib (system nss)
export LD_RUN_PATH=%{_libdir}
CXXFLAGS=$(echo $CXXFLAGS | sed 's/ -g / /')
%endif
-%if %{!?TIZEN_PROFILE_TV:1}%{?TIZEN_PROFILE_TV:0}
+%if %{!?chromium_efl_tizen_profile:0}%{?chromium_efl_tizen_profile} == "mobile"
%define OUTPUT_BUILD_PROFILE_TARGET mobile
%else
%define OUTPUT_BUILD_PROFILE_TARGET tv
# TODO : This execution will be removed by multimedia team
# Bug : http://107.108.218.239/bugzilla/show_bug.cgi?id=10516
-%if %{!?chromium_efl_tizen_version:1}%{?chromium_efl_tizen_version:0}
build/apply_patches.sh -r build/patches
-%endif
# XXX Workaround for using rpmlint with emulator build on Tizen_TV 3.0
#
install -m 0755 "%{OUTPUT_FOLDER}"/content_shell.pak "%{buildroot}%{CHROMIUM_EXE_DIR}"
install -m 0644 "%{OUTPUT_FOLDER}"/resources/*.edj "%{buildroot}%{CHROMIUM_DATA_DIR}"/themes
-%if "%{?chromium_efl_tizen_version:%{chromium_efl_tizen_version}}%{!?chromium_efl_tizen_version:0}" == "3.0"
-mkdir -p "%{buildroot}"/usr/apps/%{name}/bin
-install -m 0755 "%{OUTPUT_FOLDER}"/efl_webview_app "%{buildroot}"/usr/apps/%{name}/bin/
-install -m 0755 "%{OUTPUT_FOLDER}"/mini_browser "%{buildroot}"/usr/apps/%{name}/bin/
-install -m 0755 "%{OUTPUT_FOLDER}"/ubrowser "%{buildroot}"/usr/apps/%{name}/bin/
+# for Tizen v3.0
+%if "%{?chromium_efl_tizen_version}%{!?chromium_efl_tizen_version:0}" == "3.0"
+mkdir -p "%{buildroot}"/usr/apps/org.tizen.%{name}/bin
+install -m 0755 "%{OUTPUT_FOLDER}"/efl_webview_app "%{buildroot}"/usr/apps/org.tizen.%{name}/bin/
+install -m 0755 "%{OUTPUT_FOLDER}"/mini_browser "%{buildroot}"/usr/apps/org.tizen.%{name}/bin/
+install -m 0755 "%{OUTPUT_FOLDER}"/ubrowser "%{buildroot}"/usr/apps/org.tizen.%{name}/bin/
install -d "%{buildroot}"/usr/share/packages
install -m 0644 ewk/efl_webview_app/chromium-efl_v3.0.xml "%{buildroot}"/usr/share/packages
-mkdir -p "%{buildroot}"/usr/apps/%{name}/res/icons
+mkdir -p "%{buildroot}"/usr/apps/org.tizen.%{name}/res/icons
install -d "%{buildroot}"/usr/share/icons
-install -m 0644 ewk/efl_webview_app/mini-browser.png "%{buildroot}"/usr/apps/%{name}/res/icons
-%else
+install -m 0644 ewk/efl_webview_app/mini-browser.png "%{buildroot}"/usr/apps/org.tizen.%{name}/res/icons
+%else # for Tizen v2.X
install -m 0755 "%{OUTPUT_FOLDER}"/efl_webview_app "%{buildroot}"%{_bindir}
install -m 0755 "%{OUTPUT_FOLDER}"/mini_browser "%{buildroot}"%{_bindir}
install -m 0755 "%{OUTPUT_FOLDER}"/ubrowser "%{buildroot}"%{_bindir}
%postun
%files
-%if "%{?chromium_efl_tizen_version:%{chromium_efl_tizen_version}}%{!?chromium_efl_tizen_version:0}" == "3.0"
+# for Tizen v3.0
+%if "%{?chromium_efl_tizen_version}%{!?chromium_efl_tizen_version:0}" == "3.0"
%manifest packaging/chromium-efl_v3.0.manifest
-/usr/apps/%{name}/bin/efl_webview_app
-/usr/apps/%{name}/bin/mini_browser
-/usr/apps/%{name}/bin/ubrowser
+/usr/apps/org.tizen.%{name}/bin/efl_webview_app
+/usr/apps/org.tizen.%{name}/bin/mini_browser
+/usr/apps/org.tizen.%{name}/bin/ubrowser
/usr/share/packages/chromium-efl_v3.0.xml
-/usr/apps/%{name}/res/icons/mini-browser.png
-%else
+/usr/apps/org.tizen.%{name}/res/icons/mini-browser.png
+%else # for Tizen v2.X
%manifest packaging/%{name}.manifest
%{_bindir}/efl_webview_app
%{_bindir}/mini_browser