From 831e5f8d3eda054bcd3ac2f6689513a1dfca6c08 Mon Sep 17 00:00:00 2001 From: "hk57.kim" Date: Thu, 9 Feb 2017 10:25:34 +0900 Subject: [PATCH] [4.0] Fix : make build extension-TM1 only for arm - This is for Tizen 4.0 - Provide extension-TM1 only for arm. Change-Id: Iec71b5e0d9c9269314a47cdec82b773203b61c93 Signed-off-by: hk57.kim --- packaging/wifi-direct-manager.spec | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packaging/wifi-direct-manager.spec b/packaging/wifi-direct-manager.spec index 06bf6db..441ed83 100644 --- a/packaging/wifi-direct-manager.spec +++ b/packaging/wifi-direct-manager.spec @@ -70,12 +70,14 @@ Conflicts: %{name}-profile_tv %description profile_mobile Manager for handling wifi-direct functionalities for mobile +%ifarch %{arm} %package extension-TM1 Summary: Extension for mobile TM1 Requires: %{name}-profile_mobile = %{version}-%{release} %description extension-TM1 Manager for handling wifi-direct functionalities for mobile TM1 %endif +%endif # This is for backward-compatibility. This does not deteriorate 4.0 Configurability # if wearable || "undefined" @@ -140,6 +142,7 @@ Conflicts: wifi-direct-plugin-wpasupplicant-profile_tv %description -n wifi-direct-plugin-wpasupplicant-profile_mobile Wi-Fi direct manager plugin to abstract wpa_supplicant for mobile +%ifarch %{arm} %package -n wifi-direct-plugin-wpasupplicant-extension-TM1 Summary: Wifi direct plugin for wpa supplicant for mobile TM1 Group: Network & Connectivity/Wireless @@ -147,6 +150,7 @@ Requires: wifi-direct-plugin-wpasupplicant-profile_mobile = %{version}-%{release %description -n wifi-direct-plugin-wpasupplicant-extension-TM1 Wi-Fi direct manager plugin to abstract wpa_supplicant for mobile TM1 %endif +%endif # This is for backward-compatibility. This does not deteriorate 4.0 Configurability # if wearable || "undefined" @@ -250,6 +254,7 @@ cmake .. -DCMAKE_INSTALL_PREFIX=%{_prefix} -DARCHITECTURE=$ARCH \ make %{?_smp_mflags} popd +%ifarch %{arm} mkdir -p build_tm1 pushd build_tm1 cmake .. -DCMAKE_INSTALL_PREFIX=%{_prefix} -DARCHITECTURE=$ARCH \ @@ -285,6 +290,7 @@ cmake .. -DCMAKE_INSTALL_PREFIX=%{_prefix} -DARCHITECTURE=$ARCH \ make %{?_smp_mflags} popd %endif +%endif # This is for backward-compatibility. This does not deteriorate 4.0 Configurability # if wearable || "undefined" @@ -399,12 +405,15 @@ pushd build_mobile mv %{buildroot}%{_bindir}/wfd-manager %{buildroot}%{_bindir}/wfd-manager.mobile mv %{buildroot}%{_libdir}/wifi-direct-plugin-wpasupplicant.so %{buildroot}%{_libdir}/wifi-direct-plugin-wpasupplicant.so.mobile popd + +%ifarch %{arm} pushd build_tm1 %make_install mv %{buildroot}%{_bindir}/wfd-manager %{buildroot}%{_bindir}/wfd-manager.tm1 mv %{buildroot}%{_libdir}/wifi-direct-plugin-wpasupplicant.so %{buildroot}%{_libdir}/wifi-direct-plugin-wpasupplicant.so.tm1 popd %endif +%endif # This is for backward-compatibility. This does not deteriorate 4.0 Configurability # if wearable || "undefined" @@ -500,6 +509,7 @@ case "$1" in ;; esac +%ifarch %{arm} %post extension-TM1 pushd %{_bindir} ln -sf wfd-manager.tm1 wfd-manager.mobile @@ -538,6 +548,7 @@ case "$1" in ;; esac +%endif %endif //mobile # This is for backward-compatibility. This does not deteriorate 4.0 Configurability @@ -676,6 +687,7 @@ esac %defattr(-,root,root,-) %{_libdir}/wifi-direct-plugin-wpasupplicant.so.mobile +%ifarch %{arm} %files extension-TM1 %defattr(-,root,root,-) %{_bindir}/wfd-manager.tm1 @@ -685,6 +697,7 @@ esac %defattr(-,root,root,-) %{_libdir}/wifi-direct-plugin-wpasupplicant.so.tm1 %endif +%endif # This is for backward-compatibility. This does not deteriorate 4.0 Configurability # if wearable || "undefined" -- 2.7.4