From bdbe85e7f92045321686748383ee9e0afde62edd Mon Sep 17 00:00:00 2001 From: MyungJoo Ham Date: Mon, 5 Dec 2016 21:15:37 +0900 Subject: [PATCH] Remove Profile Build Dependency: mobile extension - This is for Tizen 4.0. (4.0 Configurability & Building Block prohibits the usage of profile macro; the value of "profile" will become "undefined" unconditionally.) - Please create JIRA-TRE issue when SR-ing this: : Add contacts-service-profile_mobile for mobile profile. Change-Id: Idfbbc2775089b3f44901f437de5e1f9e96f60443 Signed-off-by: MyungJoo Ham --- packaging/contacts-service.spec | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/packaging/contacts-service.spec b/packaging/contacts-service.spec index ee095be..23f859c 100644 --- a/packaging/contacts-service.spec +++ b/packaging/contacts-service.spec @@ -33,12 +33,23 @@ BuildRequires: pkgconfig(libsystemd) Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig +Provides: %{name}-profile_common = %{version}-%{release} +Provides: %{name}-profile_wearable = %{version}-%{release} +Provides: %{name}-profile_tv = %{version}-%{release} +Provides: %{name}-profile_ivi = %{version}-%{release} %define upgrade_script_path /usr/share/upgrade/scripts %description Contacts Service Library +%package profile_mobile +Summary: Contacts-service extension for mobile profile +Requires: %{name} = %{version}-%{release} +%description profile_mobile +Service file of Tizen mobile profile is different from other profiles. +This package supplies the service file for Tizen mobile profile. + %package -n contacts-service2 Summary: New Contacts service library @@ -88,11 +99,8 @@ cp -f 500.%{name}.sh %{buildroot}%{upgrade_script_path} %make_install mkdir -p %{buildroot}%{_unitdir_user}/default.target.wants -%if "%{profile}" == "mobile" -install -m 0644 %SOURCE3 %{buildroot}%{_unitdir_user}/contacts-service.service -%else +install -m 0644 %SOURCE3 %{buildroot}%{_unitdir_user}/contacts-service.service.mobile install -m 0644 %SOURCE1 %{buildroot}%{_unitdir_user}/contacts-service.service -%endif ln -s ../contacts-service.service %{buildroot}%{_unitdir_user}/default.target.wants/contacts-service.service mkdir -p %{buildroot}%{_unitdir_user}/sockets.target.wants @@ -133,3 +141,7 @@ chsmack -e "User" /usr/bin/contacts-service-test %{_bindir}/contacts-service-test %license LICENSE.APLv2 +%post profile_mobile +mv %{_unitdir_user}/contacts-service.service.mobile %{_unitdir_user}/contacts-service.service +%files profile_mobile +%{_unitdir_user}/contacts-service.service.mobile -- 2.7.4