blob: 0b2165bb6f9227b2b421d2cd6c2e2019290873a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
Name: weston-ivi
Version: 1
Release: 0
Summary: Tizen IVI Weston configuration and set-up
License: MIT
Group: Automotive/Configuration
BuildArch: noarch
Source0: %{name}-%{version}.tar.bz2
Source1001: weston-ivi.manifest
Provides: weston-startup
%description
This package contains Tizen IVI-specific set-up for the Weston
compositor, including systemd unit files, etc.
%package config
Summary: Tizen IVI Weston configuration
Group: Automotive/Configuration
Requires: weekeyboard
Conflicts: ico-uxf-weston-plugin
%description config
This package contains Tizen IVI-specific configuration for the Weston
compositor.
%package config-modello
Summary: Tizen IVI Modello Weston configuration
Group: Automotive/Configuration
Requires: weekeyboard
Requires(post): sed
Requires(postun): sed
Conflicts: ico-uxf-weston-plugin, weston-ivi-config
%description config-modello
This package contains Tizen IVI-specific Modello configuration for the Weston
compositor.
%prep
%setup -q
cp %{SOURCE1001} .
%build
%install
install -d %{buildroot}%{_unitdir_user}/weston.target.wants
install -m 644 weston.service %{buildroot}%{_unitdir_user}/weston.service
ln -sf ../weston.service %{buildroot}/%{_unitdir_user}/weston.target.wants/
mkdir -p %{buildroot}%{_sysconfdir}/profile.d/
install -m 0644 weston.sh %{buildroot}%{_sysconfdir}/profile.d/
%define weston_config_dir %{_sysconfdir}/xdg/weston
mkdir -p %{buildroot}%{weston_config_dir}
install -m 0644 weston.ini %{buildroot}%{weston_config_dir}
install -m 0644 weston-modello.ini %{buildroot}%{weston_config_dir}/weston-modello.ini
%post config-modello
ln -s %{weston_config_dir}/weston-modello.ini %{weston_config_dir}/weston.ini
sed -i 's/ --current-mode//' %{_unitdir_user}/weston.service
%postun config-modello
rm %{weston_config_dir}/weston.ini
sed -i 's/\(^ExecStart.*\)/\1 --current-mode/' %{_unitdir_user}/weston.service
%files
%manifest %{name}.manifest
%defattr(-,root,root)
%license COPYING
%{_unitdir_user}/weston.service
%{_unitdir_user}/weston.target.wants/weston.service
%config %{_sysconfdir}/profile.d/*
%files config
%manifest %{name}.manifest
%config %{weston_config_dir}/weston.ini
%files config-modello
%manifest %{name}.manifest
%config %{weston_config_dir}/weston-modello.ini
|