From 9f8b072efb9abd0cdebfe77843a3dfea4e62abfd Mon Sep 17 00:00:00 2001 From: Youngjae Shin Date: Wed, 12 Apr 2017 10:26:11 +0900 Subject: revise packaging for unified build Change-Id: I19f5dc4fc45a6c9fad4df6dd97ab27587510b2a7 --- packaging/model-config-xu3.spec | 41 +++++++++++++++++++---------------------- 1 file changed, 19 insertions(+), 22 deletions(-) diff --git a/packaging/model-config-xu3.spec b/packaging/model-config-xu3.spec index 5424570..7223f45 100644 --- a/packaging/model-config-xu3.spec +++ b/packaging/model-config-xu3.spec @@ -2,36 +2,30 @@ Name: model-config-xu3 Summary: A Model configuration -Version: 0.0.2 +Version: 0.0.4 Release: 0 Group: System/Configuration License: Apache-2.0 BuildArch: noarch Source0: %{name}-%{version}.tar.gz -Requires: %{name}-compat = %{version}-%{release} -Recommends: %{name}-profile_common = %{version}-%{release} %description Model configuration data package %package profile_common -Summary: Model configuration of XU3 for common/mobile/wearable/tv profiles -Provides: %{name}-profile_mobile = %{version}-%{release} -Provides: %{name}-profile_wearable = %{version}-%{release} -Provides: %{name}-profile_tv = %{version}-%{release} -Provides: %{name}-compat = %{version}-%{release} -Conflicts: %{name}-profile_ivi +Summary: Model configuration of XU3 for common/mobile/wearable/tv profiles +Provides: model-config %description profile_common Model configuration data package main body supporting common/mobile/wearable/tv profiles %package profile_ivi -Summary: Model configuration of XU3 for IVI profile -Provides: %{name}-compat = %{version}-%{release} -Conflicts: %{name}-profile_common +Summary: Model configuration of XU3 for IVI profile +Provides: model-config %description profile_ivi Model configuration data package main body supporting IVI profile + %prep %setup -q -n %{name}-%{version} @@ -40,18 +34,21 @@ Model configuration data package main body supporting IVI profile %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_sysconfdir}/config -cp -f model-config.xml %{buildroot}%{_sysconfdir}/config/model-config.xml -cp -f model-config_ivi.xml %{buildroot}%{_sysconfdir}/config/model-config.ivi.xml +cp -f model-config.xml %{buildroot}%{_sysconfdir}/config/%{name}.xml +cp -f model-config_ivi.xml %{buildroot}%{_sysconfdir}/config/%{name}_ivi.xml + +%post profile_common +ln -sf %{name}.xml %{_sysconfdir}/config/model-config.xml + +%post profile_ivi +ln -sf %{name}_ivi.xml %{_sysconfdir}/config/model-config.xml -%files -%manifest model-config.manifest %files profile_common -%{_sysconfdir}/config/model-config.xml +%manifest model-config.manifest +%{_sysconfdir}/config/%{name}.xml + -%post profile_ivi -ln -sf model-config.ivi.xml %{_sysconfdir}/config/model-config.xml -%preun profile_ivi -rm %{_sysconfdir}/config/model-config.xml %files profile_ivi -%{_sysconfdir}/config/model-config.ivi.xml +%manifest model-config.manifest +%{_sysconfdir}/config/%{name}_ivi.xml -- cgit v1.2.3