revise packaging for unified build 83/124583/1
authorYoungjae Shin <yj99.shin@samsung.com>
Wed, 12 Apr 2017 01:24:43 +0000 (10:24 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Wed, 12 Apr 2017 01:24:43 +0000 (10:24 +0900)
Change-Id: Icae6428519664b73253ac3a094fda4af390d9eec

packaging/model-config-n4.spec

index 94cc507f9371a6c54deaab39b468e9e5694244bd..4125a9dcab9361c2b5055ed8d74c859ce2c606e9 100644 (file)
@@ -2,12 +2,13 @@
 
 Name:          model-config-n4
 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,8 +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