1 Name: system-configuration
2 Summary: Configuration for system packages
5 Group: System/Configuration
7 Source0: %{name}-%{version}.tar.gz
8 Source1: %{name}.manifest
12 BuildRequires: pkgconfig(libtzplatform-config)
15 Configuration files for system packages
16 By modifying this package, each profile can use their own configuration
18 %package -n system-configuration-debug
19 Summary: System-configuration for developer binary
20 Group: System/Configuration
21 Conflicts: system-configuration
23 %description -n system-configuration-debug
24 System-configuration for developer debug binary
31 mkdir -p %{buildroot}%{TZ_SYS_ETC}
33 %if %{?dlog_conf} == ON
34 install -m 0644 configs/dlog.sysconf %{buildroot}%{TZ_SYS_ETC}/dlog.sysconf
37 %posttrans -n system-configuration
38 %if %{?dlog_conf} == ON
39 mv %{TZ_SYS_ETC}/dlog.conf %{TZ_SYS_ETC}/dlog.conf.bak
40 ln -s %{TZ_SYS_ETC}/dlog.sysconf %{TZ_SYS_ETC}/dlog.conf
43 %postun -n system-configuration
44 %if %{?dlog_conf} == ON
45 mv %{TZ_SYS_ETC}/dlog.conf.bak %{TZ_SYS_ETC}/dlog.conf
48 %files -n system-configuration
50 %manifest system-configuration.manifest
51 %if %{?dlog_conf} == ON
52 %attr(664,log,log) %{TZ_SYS_ETC}/dlog.sysconf
55 %posttrans -n system-configuration-debug
56 touch %{TZ_SYS_ETC}/.debugmode
57 %if %{?dlog_conf} == ON
58 mv %{TZ_SYS_ETC}/dlog.conf %{TZ_SYS_ETC}/dlog.conf.bak
59 ln -s %{TZ_SYS_ETC}/dlog.sysconf %{TZ_SYS_ETC}/dlog.conf
62 %postun -n system-configuration-debug
63 rm %{TZ_SYS_ETC}/.debugmode
64 %if %{?dlog_conf} == ON
65 mv %{TZ_SYS_ETC}/dlog.conf.bak %{TZ_SYS_ETC}/dlog.conf
68 %files -n system-configuration-debug
70 %manifest system-configuration.manifest
71 %if %{?dlog_conf} == ON
72 %attr(664,log,log) %{TZ_SYS_ETC}/dlog.sysconf