revise packaging for unified build 82/124582/1 accepted/tizen/unified/20170412.153431 submit/tizen/20170412.014838 submit/tizen/20170412.074047
authorYoungjae Shin <yj99.shin@samsung.com>
Wed, 12 Apr 2017 01:24:16 +0000 (10:24 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Wed, 12 Apr 2017 01:24:16 +0000 (10:24 +0900)
Change-Id: I36e1f3570d85b7dddbed18ecc829468abcd707c1

packaging/model-config-tm1.spec

index 10312f68ea76419af407e08449b1c16ca330df1e..c6fb2f2f6a5618cdf4484bc7527e20e1c0fc41b0 100644 (file)
@@ -2,12 +2,13 @@
 
 Name:          model-config-tm1
 Summary:       A Model configuration
-Version:       0.0.1
+Version:       0.0.4
 Release:       0
 Group:         System/Configuration
 License:       Apache-2.0
 BuildArch:     noarch
 Source0:       %{name}-%{version}.tar.gz
+Provides:      model-config
 
 %description
 Model configuration data package
@@ -20,9 +21,12 @@ Model configuration data package
 %install
 rm -rf %{buildroot}
 mkdir -p %{buildroot}%{_sysconfdir}/config
-cp -f model-config.xml %{buildroot}%{_sysconfdir}/config/model-config.xml
+cp -f model-config.xml %{buildroot}%{_sysconfdir}/config/%{name}.xml
+
+%post
+ln -sf %{name}.xml %{_sysconfdir}/config/model-config.xml
 
 %files
-%{_sysconfdir}/config/model-config.xml
 %manifest model-config.manifest
+%config %{_sysconfdir}/config/%{name}.xml
 %license LICENSE.Apache-2.0