44d18cdec54137bd71d8ad753b83032cbc7def7b
[platform/core/system/system-configuration.git] / packaging / system-configuration.spec
1 Name:       system-configuration
2 Summary:    Configuration for system packages
3 Version:    0.1
4 Release:    1
5 Group:      System/Configuration
6 License:    Apache-2.0
7 Source0:    %{name}-%{version}.tar.gz
8 Source1:    %{name}.manifest
9
10 BuildRequires: pkgconfig(libtzplatform-config)
11
12 %description
13 Configuration files for system packages
14 By modifying this package, each profile can use their own configuration
15
16 %prep
17 %setup -q
18 cp %{SOURCE1} .
19
20 %install
21 mkdir -p %{buildroot}%{TZ_SYS_ETC}
22
23 install -m 0644 configs/dlog.sysconf %{buildroot}%{TZ_SYS_ETC}/dlog.sysconf
24
25 %posttrans
26 mv %{TZ_SYS_ETC}/dlog.conf %{TZ_SYS_ETC}/dlog.conf.bak
27 ln -s %{TZ_SYS_ETC}/dlog.sysconf %{TZ_SYS_ETC}/dlog.conf
28
29 %postun
30 mv %{TZ_SYS_ETC}/dlog.conf.bak %{TZ_SYS_ETC}/dlog.conf
31
32 %files
33 %license LICENSE
34 %manifest system-configuration.manifest
35 %attr(664,log,log) %{TZ_SYS_ETC}/dlog.sysconf