Make system-configuration-debug 86/103986/4 accepted/tizen_4.0_unified accepted/tizen_5.0_unified accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_unified accepted/tizen_wearable tizen tizen_4.0 tizen_5.0 tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix tizen_6.0 tizen_6.0_hotfix tizen_6.5 accepted/tizen/4.0/unified/20170816.013922 accepted/tizen/4.0/unified/20170829.020306 accepted/tizen/5.0/unified/20181102.021445 accepted/tizen/5.5/unified/20191031.020233 accepted/tizen/5.5/unified/mobile/hotfix/20201027.080039 accepted/tizen/5.5/unified/wearable/hotfix/20201027.111108 accepted/tizen/6.0/unified/20201030.113913 accepted/tizen/6.0/unified/hotfix/20201103.002017 accepted/tizen/6.5/unified/20211028.115928 accepted/tizen/common/20161219.152054 accepted/tizen/ivi/20161219.224352 accepted/tizen/mobile/20161219.224253 accepted/tizen/tv/20161219.224313 accepted/tizen/unified/20170309.033856 accepted/tizen/wearable/20161219.224331 submit/tizen/20161219.023726 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100004 submit/tizen_5.0/20181101.000004 submit/tizen_5.5/20191031.000005 submit/tizen_5.5_mobile_hotfix/20201026.185105 submit/tizen_5.5_wearable_hotfix/20201026.184305 submit/tizen_6.0/20201029.205105 submit/tizen_6.0_hotfix/20201102.192505 submit/tizen_6.0_hotfix/20201103.114805 submit/tizen_6.5/20211028.162501 submit/tizen_unified/20170308.100409 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m1_release tizen_4.0.m2_release tizen_5.5.m2_release tizen_6.0.m2_release tizen_6.5.m2_release
authorKichan Kwon <k_c.kwon@samsung.com>
Mon, 12 Dec 2016 04:28:00 +0000 (13:28 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Mon, 12 Dec 2016 04:57:31 +0000 (13:57 +0900)
- This package will make .debugmode file
- In addition, switch for each conf file is added

Change-Id: Ibe8297f70875700af248fa3f04cb2cfb1257d0b2
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
README
packaging/system-configuration.spec

diff --git a/README b/README
index 8400aae..4cc3598 100644 (file)
--- a/README
+++ b/README
@@ -3,8 +3,8 @@
 1. Introduction
 =====
 
-System configuration is the set of config files.
-
+System-configuration is the set of config files.
+System-configuration-debug is package for developer debug binary.
 
 2. Background
 =====
index 44d18cd..1763f60 100644 (file)
@@ -1,18 +1,28 @@
 Name:       system-configuration
 Summary:    Configuration for system packages
-Version:    0.1
+Version:    0.1.1
 Release:    1
 Group:      System/Configuration
 License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
 Source1:    %{name}.manifest
 
+%define dlog_conf  OFF
+
 BuildRequires: pkgconfig(libtzplatform-config)
 
 %description
 Configuration files for system packages
 By modifying this package, each profile can use their own configuration
 
+%package -n system-configuration-debug
+Summary:    System-configuration for developer binary
+Group:      System/Configuration
+Conflicts:  system-configuration
+
+%description -n system-configuration-debug
+System-configuration for developer debug binary
+
 %prep
 %setup -q
 cp %{SOURCE1} .
@@ -20,16 +30,44 @@ cp %{SOURCE1} .
 %install
 mkdir -p %{buildroot}%{TZ_SYS_ETC}
 
-install -m 0644 configs/dlog.sysconf %{buildroot}%{TZ_SYS_ETC}/dlog.sysconf
+%if %{?dlog_conf} == ON
+       install -m 0644 configs/dlog.sysconf %{buildroot}%{TZ_SYS_ETC}/dlog.sysconf
+%endif
+
+%posttrans -n system-configuration
+%if %{?dlog_conf} == ON
+       mv %{TZ_SYS_ETC}/dlog.conf %{TZ_SYS_ETC}/dlog.conf.bak
+       ln -s %{TZ_SYS_ETC}/dlog.sysconf %{TZ_SYS_ETC}/dlog.conf
+%endif
+
+%postun -n system-configuration
+%if %{?dlog_conf} == ON
+       mv %{TZ_SYS_ETC}/dlog.conf.bak %{TZ_SYS_ETC}/dlog.conf
+%endif
+
+%files -n system-configuration
+%license LICENSE
+%manifest system-configuration.manifest
+%if %{?dlog_conf} == ON
+       %attr(664,log,log) %{TZ_SYS_ETC}/dlog.sysconf
+%endif
 
-%posttrans
-mv %{TZ_SYS_ETC}/dlog.conf %{TZ_SYS_ETC}/dlog.conf.bak
-ln -s %{TZ_SYS_ETC}/dlog.sysconf %{TZ_SYS_ETC}/dlog.conf
+%posttrans -n system-configuration-debug
+touch %{TZ_SYS_ETC}/.debugmode
+%if %{?dlog_conf} == ON
+       mv %{TZ_SYS_ETC}/dlog.conf %{TZ_SYS_ETC}/dlog.conf.bak
+       ln -s %{TZ_SYS_ETC}/dlog.sysconf %{TZ_SYS_ETC}/dlog.conf
+%endif
 
-%postun
-mv %{TZ_SYS_ETC}/dlog.conf.bak %{TZ_SYS_ETC}/dlog.conf
+%postun -n system-configuration-debug
+rm %{TZ_SYS_ETC}/.debugmode
+%if %{?dlog_conf} == ON
+       mv %{TZ_SYS_ETC}/dlog.conf.bak %{TZ_SYS_ETC}/dlog.conf
+%endif
 
-%files
+%files -n system-configuration-debug
 %license LICENSE
 %manifest system-configuration.manifest
-%attr(664,log,log) %{TZ_SYS_ETC}/dlog.sysconf
+%if %{?dlog_conf} == ON
+       %attr(664,log,log) %{TZ_SYS_ETC}/dlog.sysconf
+%endif