From 9b46bc66d52f1a0451010252f208b6f77f5bf0f3 Mon Sep 17 00:00:00 2001 From: Mu-Woong Lee Date: Thu, 23 Mar 2017 20:01:17 +0900 Subject: [PATCH] Rename the packages to clearly denote their roles Change-Id: I585585d93edd3fa4581febd72fbbbe5b0c79d1f1 Signed-off-by: Mu-Woong Lee --- packaging/context-store.spec | 67 ++++++++++++++++++++++---------------------- 1 file changed, 34 insertions(+), 33 deletions(-) diff --git a/packaging/context-store.spec b/packaging/context-store.spec index bc513fe..87f390d 100644 --- a/packaging/context-store.spec +++ b/packaging/context-store.spec @@ -1,5 +1,5 @@ Name: context-store -Summary: Tizen Context Store +Summary: Context store service server and client libraries Version: 0.0.1 Release: 1 Group: Service Framework/Context @@ -15,34 +15,33 @@ BuildRequires: pkgconfig(capi-base-common) BuildRequires: pkgconfig(context-common-server) BuildRequires: pkgconfig(context-common-client) +Requires: %{name}-dummy = %{version}-%{release} +Requires: context-service +%global __provides_exclude ^.*-genuine\\.so.*$ + %description -Tizen Context Store Service +This package provides fully functional libraries of the context store service, +which is a part of the Tizen Contextual service framework. +The libraries replace the dummy libraries installed by %{name}-dummy. -%package genuine -Summary: Genuine Context Store service server and client libraries -Requires: %{name} = %{version}-%{release} -Requires: context-service -#Provides: %{name}-profile_common = %{version}-%{release} -#Provides: %{name}-profile_mobile = %{version}-%{release} -#Provides: %{name}-profile_wearable = %{version}-%{release} -#Provides: %{name}-profile_tv = %{version}-%{release} -#Provides: %{name}-profile_ivi = %{version}-%{release} -%global __provides_exclude ^.*-genuine\\.so.*$ +%package dummy +Summary: Context store service 'dummy' libraries -%description genuine -Binary replacement for context-store. -This genuine context-store package contains actually working shared objects -of the both server and client sides of the context-store service. +%description dummy +This package provides dummy libraries of the context store service, +which is a part of the Tizen Contextual service framework. +Installing %{name} replaces these dummy libraries with the actually functional libraries. %package devel -Summary: Tizen Context Store Service API +Summary: Headers of the context store service server and client libraries Group: Service Framework/Context -Requires: %{name} = %{version}-%{release} +Requires: %{name}-dummy = %{version}-%{release} %description devel -Tizen Context Store Service API +This package provides headers of the context store service libraries, +which is a part of the Tizen Contextual service framework. %prep @@ -64,20 +63,8 @@ make %{?_smp_mflags} mkdir -p %{buildroot}%{TZ_SYS_DATA}/%{name} install -m 0644 script/init.sql %{buildroot}%{TZ_SYS_DATA}/%{name}/ -%post -/sbin/ldconfig - -%files -%manifest packaging/%{name}.manifest -%{_libdir}/lib%{name}-client.so* -%{_libdir}/lib%{name}-server.so* -%license LICENSE - -%preun genuine -echo "You need to reinstall %{name} to keep using the APIs after uninstalling this." - -%post genuine +%post pushd %{_libdir} ln -sf lib%{name}-client-genuine.so.%{version} lib%{name}-client.so.%{version} ln -sf lib%{name}-server-genuine.so.%{version} lib%{name}-server.so.%{version} @@ -86,11 +73,25 @@ chsmack -a "_" lib%{name}-server.so.%{version} popd /sbin/ldconfig -%files genuine +%preun +echo "You need to reinstall %{name}-dummy to keep using the APIs after uninstalling this." + +%files %manifest packaging/%{name}.manifest %{_libdir}/lib%{name}-client-genuine.so* %{_libdir}/lib%{name}-server-genuine.so* %{TZ_SYS_DATA}/%{name}/*.sql +%license LICENSE + + +%post dummy +/sbin/ldconfig + +%files dummy +%manifest packaging/%{name}.manifest +%{_libdir}/lib%{name}-client.so* +%{_libdir}/lib%{name}-server.so* +%license LICENSE %files devel -- 2.7.4