Powerkey: fix a rpm bug that is not installed properly 79/160579/1
authorlokilee73 <changjoo.lee@samsung.com>
Fri, 17 Nov 2017 03:24:58 +0000 (12:24 +0900)
committerlokilee73 <changjoo.lee@samsung.com>
Fri, 17 Nov 2017 03:25:05 +0000 (12:25 +0900)
Change-Id: I5798ade06b95c1791970aafff336f24e5622b8eb
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
packaging/system-servant.spec

index 04ad984..1cb5f45 100755 (executable)
@@ -425,7 +425,6 @@ rm %{buildroot}/%{TZ_SYS_RO_APP}/org.tizen.system-syspopup/bin/system-syspopup
 # correct system-servant kept, you need to reinstall system-servant after
 # uninstalling profile_mobile
 mv /%{_bindir}/sysapp-launcher.mobile /%{_bindir}/sysapp-launcher
-mv /%{TZ_SYS_RO_APP}/org.tizen.powerkey-syspopup/bin/powerkey-popup.mobile /%{TZ_SYS_RO_APP}/org.tizen.powerkey-syspopup/bin/powerkey-popup
 mv /%{TZ_SYS_RO_APP}/org.tizen.system-syspopup/bin/system-syspopup.mobile /%{TZ_SYS_RO_APP}/org.tizen.system-syspopup/bin/system-syspopup
 
 # Because of CAPI incompatibility from EFL-EXT, circle is buildable only for wearable and "unified (undefined)"
@@ -435,7 +434,6 @@ mv /%{TZ_SYS_RO_APP}/org.tizen.system-syspopup/bin/system-syspopup.mobile /%{TZ_
 # correct system-servant kept, you need to reinstall system-servant after
 # uninstalling profile_wearable-circle
 mv /%{_bindir}/sysapp-launcher.wearable /%{_bindir}/sysapp-launcher
-mv /%{TZ_SYS_RO_APP}/org.tizen.powerkey-syspopup/bin/powerkey-popup.wearable /%{TZ_SYS_RO_APP}/org.tizen.powerkey-syspopup/bin/powerkey-popup
 mv /%{TZ_SYS_RO_APP}/org.tizen.system-syspopup/bin/system-syspopup.wearable /%{TZ_SYS_RO_APP}/org.tizen.system-syspopup/bin/system-syspopup
 
 %post extension-rectangle-profile_wearable
@@ -443,7 +441,6 @@ mv /%{TZ_SYS_RO_APP}/org.tizen.system-syspopup/bin/system-syspopup.wearable /%{T
 # correct system-servant kept, you need to reinstall system-servant after
 # uninstalling profile_wearable-rectangle
 mv /%{_bindir}/sysapp-launcher.wearable /%{_bindir}/sysapp-launcher
-mv /%{TZ_SYS_RO_APP}/org.tizen.powerkey-syspopup/bin/powerkey-popup.wearable /%{TZ_SYS_RO_APP}/org.tizen.powerkey-syspopup/bin/powerkey-popup
 mv /%{TZ_SYS_RO_APP}/org.tizen.system-syspopup/bin/system-syspopup.wearable /%{TZ_SYS_RO_APP}/org.tizen.system-syspopup/bin/system-syspopup
 %endif
 
@@ -453,6 +450,12 @@ mv /%{TZ_SYS_RO_APP}/org.tizen.system-syspopup/bin/system-syspopup.wearable /%{T
 # uninstalling profile_common
 mv /%{_bindir}/sysapp-launcher.common /%{_bindir}/sysapp-launcher
 
+%post -n org.tizen.powerkey-syspopup.mobile
+mv /%{TZ_SYS_RO_APP}/org.tizen.powerkey-syspopup/bin/powerkey-popup.mobile /%{TZ_SYS_RO_APP}/org.tizen.powerkey-syspopup/bin/powerkey-popup
+
+%post -n org.tizen.powerkey-syspopup.wearable
+mv /%{TZ_SYS_RO_APP}/org.tizen.powerkey-syspopup/bin/powerkey-popup.wearable /%{TZ_SYS_RO_APP}/org.tizen.powerkey-syspopup/bin/powerkey-popup
+
 %files
 %manifest %{name}.manifest
 %license LICENSE.Apache-2.0