[FIX] fix issue of overwrite sub package's files. 91/125191/1
authorhk57.kim <hk57.kim@samsung.com>
Fri, 14 Apr 2017 05:54:26 +0000 (14:54 +0900)
committerhk57.kim <hk57.kim@samsung.com>
Fri, 14 Apr 2017 05:54:26 +0000 (14:54 +0900)
- This is for Tizen 4.0.
- If packages are connected with compat style and
  main/super package that contains same items with sub package, will overwrite it.
- Change the installation sequence to main/super package first and sub package later.

Change-Id: Ie66ee55f5d1ed4b226c0dc63a4dba42148fe2050
Signed-off-by: hk57.kim <hk57.kim@samsung.com>
packaging/isf.spec

index 01a699d..b83b572 100644 (file)
@@ -44,8 +44,6 @@ BuildRequires:  pkgconfig(cynara-creds-socket)
 BuildRequires:  pkgconfig(cynara-session)
 BuildRequires:  pkgconfig(capi-appfw-package-manager)
 Requires(postun): /sbin/ldconfig
-Requires:      %{name}-compat = %{version}-%{release}
-Recommends:    %{name}-profile_common = %{version}-%{release}
 Requires:      org.tizen.isf-kbd-mode-changer
 
 # Mobile/Common ONLY
@@ -61,10 +59,7 @@ Input Service Framewok (ISF) is an input method (IM) platform, and it has been d
 %if "%{?profile}" != "tv" && "%{?profile}" != "mobile" && "%{?profile}" != "common"
 %package profile_wearable
 Summary:       ISF bin for wearable/ivi
-Provides:      %{name}-compat = %{version}-%{release}
-Provides:      %{name}-profile_ivi = %{version}-%{release}
-Conflicts:     %{name}-profile_common
-Conflicts:     %{name}-profile_tv
+Requires:      %{name} = %{version}-%{release}
 %description profile_wearable
 Compile isf with --disable-include-notification and --disable-include-libwebsocket
 %endif
@@ -74,10 +69,7 @@ Compile isf with --disable-include-notification and --disable-include-libwebsock
 %if "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
 %package profile_common
 Summary:       ISF bin for mobile/common
-Provides:      %{name}-compat = %{version}-%{release}
-Provides:      %{name}-profile_mobile = %{version}-%{release}
-Conflicts:     %{name}-profile_wearable
-Conflicts:     %{name}-profile_tv
+Requires:      %{name} = %{version}-%{release}
 %description profile_common
 Compile isf with --disable-include-libwebsocket
 %endif
@@ -87,9 +79,7 @@ Compile isf with --disable-include-libwebsocket
 %if "%{?profile}" != "common" && "%{?profile}" != "wearable" && "%{?profile}" != "mobile" && "%{?profile}" != "ivi"
 %package profile_tv
 Summary:       ISF bin for TV
-Provides:      %{name}-compat = %{version}-%{release}
-Conflicts:     %{name}-profile_common
-Conflicts:     %{name}-profile_wearable
+Requires:      %{name} = %{version}-%{release}
 %description profile_tv
 Compile isf with --disable-include-notification
 %endif