%define _usrdir /usr %define _appdir %{_usrdir}/apps %bcond_with wayland Name: org.tizen.bt-syspopup Summary: bluetooth system-popup application (bluetooth system popup) Version: 0.9.0 Release: 1 Group: main License: Flora-1.1 Source0: %{name}-%{version}.tar.gz BuildRequires: pkgconfig(evas) # For backward-compatibility and GBM build optimization # if wearable, "unified". common may be added after efl-ext is unified/refactored. %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common" BuildRequires: pkgconfig(syspopup-caller) %endif # For backward-compatibility and GBM build optimization # if mobile, tv, ivi, common, or "unified" %if "%{?profile}" != "wearable" BuildRequires: pkgconfig(notification) %endif BuildRequires: pkgconfig(efl-extension) BuildRequires: pkgconfig(ecore-input) BuildRequires: pkgconfig(ethumb) BuildRequires: pkgconfig(elementary) BuildRequires: pkgconfig(efreet) BuildRequires: pkgconfig(sensor) BuildRequires: pkgconfig(syspopup) BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(aul) BuildRequires: pkgconfig(edbus) BuildRequires: pkgconfig(feedback) BuildRequires: edje-tools BuildRequires: pkgconfig(libtzplatform-config) BuildRequires: pkgconfig(capi-appfw-application) BuildRequires: pkgconfig(capi-system-device) BuildRequires: pkgconfig(capi-media-player) BuildRequires: pkgconfig(deviced) BuildRequires: pkgconfig(capi-network-bluetooth) BuildRequires: pkgconfig(vconf) BuildRequires: pkgconfig(ecore-wl2) BuildRequires: pkgconfig(capi-ui-efl-util) BuildRequires: cmake BuildRequires: gettext-devel Requires: %{name}-compat = %{version}-%{release} %if "%{?profile}" != "wearable" Recommends: %{name}-profile_common = %{version}-%{release} %endif %description bluetooth system-popup application (bluetooth system popup). %package profile_wearable Summary: bt-syspopup binary for wearable Provides: %{name}-compat = %{version}-%{release} Conflicts: %{name}-profile_common %description profile_wearable bluetooth system-popup application binary for Tizen wearable profile. %package profile_common Summary: bt-syspopup binary for common Provides: %{name}-compat = %{version}-%{release} Provides: %{name}-profile_mobile = %{version}-%{release} Provides: %{name}-profile_tv = %{version}-%{release} Provides: %{name}-profile_ivi = %{version}-%{release} Conflicts: %{name}-profile_wearable %description profile_common bluetooth system-popup application binary for Tizen common profile. %prep %setup -q %build export CFLAGS+=" -fpie -fvisibility=hidden" export LDFLAGS+=" -Wl,--rpath=/usr/lib -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie" export CFLAGS_BASE="$CFLAGS" export CXXFLAGS_BASE="$CXXFLAGS" export FFLAGS_BASE="$FFLAGS" # For backward-compatibility and GBM build optimization # if wearable, "unified". common may be added after efl-ext is unified/refactored. %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common" mkdir -p build_wearable pushd build_wearable export CFLAGS="$CFLAGS_BASE -DTIZEN_ENGINEER_MODE -DTIZEN_PROFILE_WEARABLE" export CXXFLAGS="$CXXFLAGS_BASE -DTIZEN_ENGINEER_MODE" export FFLAGS="$FFLAGS_BASE -DTIZEN_ENGINEER_MODE" export CFLAGS+=" -DEFL_BETA_API_SUPPORT " cmake .. \ -DCMAKE_INSTALL_PREFIX=%{TZ_SYS_RO_APP}/org.tizen.bt-syspopup \ %if %{with wayland} -DWAYLAND_SUPPORT=On \ %else -DWAYLAND_SUPPORT=Off \ %endif #eol make %{?jobs:-j%jobs} %cmake .. \ -DTZ_SYS_RO_APP=%{TZ_SYS_RO_APP} \ -DTZ_SYS_SHARE=%{TZ_SYS_SHARE} make popd %endif # For backward-compatibility and GBM build optimization # if mobile, tv, ivi, common, or "unified" %if "%{?profile}" != "wearable" export CFLAGS="$CFLAGS_BASE -DTIZEN_DEBUG_ENABLE -DTIZEN_PROFILE_MOBILE" export CXXFLAGS="$CXXFLAGS_BASE -DTIZEN_DEBUG_ENABLE" export FFLAGS="$FFLAGS_BASE -DTIZEN_DEBUG_ENABLE" export CFLAGS+=" -DEFL_BETA_API_SUPPORT " cmake . \ -DCMAKE_INSTALL_PREFIX=%{TZ_SYS_RO_APP}/org.tizen.bt-syspopup \ %if %{with wayland} -DWAYLAND_SUPPORT=On \ %else -DWAYLAND_SUPPORT=Off \ %endif #eol make %{?jobs:-j%jobs} %cmake . \ -DTZ_SYS_RO_APP=%{TZ_SYS_RO_APP} \ -DTZ_SYS_SHARE=%{TZ_SYS_SHARE} make %endif %install rm -rf %{buildroot} # For backward-compatibility and GBM build optimization # if wearable, "unified". common may be added after efl-ext is unified/refactored. %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common" pushd build_wearable %make_install popd pushd %{buildroot}%{TZ_SYS_RO_APP}/org.tizen.bt-syspopup/bin mv bt-syspopup bt-syspopup.wearable popd pushd %{buildroot}%{TZ_SYS_RO_APP}/org.tizen.bt-syspopup/res/edje mv custom_popup.edj custom_popup.edj.wearable popd %endif # For backward-compatibility and GBM build optimization # if mobile, tv, ivi, common, or "unified" %if "%{?profile}" != "wearable" %make_install %endif %files %manifest org.tizen.bt-syspopup.manifest %license LICENSE %defattr(-,root,root,-) %{TZ_SYS_SHARE}/icons/default/small/org.tizen.bt-syspopup.png # For backward-compatibility and GBM build optimization # if mobile, tv, ivi, common, or "unified" %if "%{?profile}" != "wearable" %files profile_common %license LICENSE %{TZ_SYS_RO_APP}/org.tizen.bt-syspopup/bin/bt-syspopup %{TZ_SYS_RO_APP}/org.tizen.bt-syspopup/res/edje/custom_popup.edj %{TZ_SYS_RO_PACKAGES}/org.tizen.bt-syspopup.xml %endif # For backward-compatibility and GBM build optimization # if wearable, "unified". common may be added after efl-ext is unified/refactored. %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common" %post profile_wearable mv %{TZ_SYS_RO_PACKAGES}/org.tizen.bt-syspopup_w.xml %{TZ_SYS_RO_PACKAGES}/org.tizen.bt-syspopup.xml pushd %{TZ_SYS_RO_APP}/org.tizen.bt-syspopup/bin mv bt-syspopup.wearable bt-syspopup popd pushd %{TZ_SYS_RO_APP}/org.tizen.bt-syspopup/res/edje mv custom_popup.edj.wearable custom_popup.edj popd %preun profile_wearable pushd %{TZ_SYS_RO_APP}/org.tizen.bt-syspopup/bin mv bt-syspopup bt-syspopup.wearable popd pushd %{TZ_SYS_RO_APP}/org.tizen.bt-syspopup/res/edje mv custom_popup.edj custom_popup.edj.wearable popd %files profile_wearable %license LICENSE %{TZ_SYS_RO_APP}/org.tizen.bt-syspopup/bin/bt-syspopup.wearable %{TZ_SYS_RO_APP}/org.tizen.bt-syspopup/res/edje/custom_popup.edj.wearable %{TZ_SYS_RO_APP}/org.tizen.bt-syspopup/shared/res/tables/org.tizen.bt-syspopup_ChangeableColorTable.xml %{TZ_SYS_RO_APP}/org.tizen.bt-syspopup/shared/res/tables/org.tizen.bt-syspopup_FontInfoTable.xml %{TZ_SYS_RO_APP}/org.tizen.bt-syspopup/res/images/* %{TZ_SYS_RO_PACKAGES}/org.tizen.bt-syspopup_w.xml %endif