summaryrefslogtreecommitdiff
path: root/proto-meta-Tizen_generic/specfile-initial/weston-ivi/packaging/weston-ivi.spec
diff options
context:
space:
mode:
Diffstat (limited to 'proto-meta-Tizen_generic/specfile-initial/weston-ivi/packaging/weston-ivi.spec')
-rw-r--r--proto-meta-Tizen_generic/specfile-initial/weston-ivi/packaging/weston-ivi.spec25
1 files changed, 25 insertions, 0 deletions
diff --git a/proto-meta-Tizen_generic/specfile-initial/weston-ivi/packaging/weston-ivi.spec b/proto-meta-Tizen_generic/specfile-initial/weston-ivi/packaging/weston-ivi.spec
index d3fe476a6..0b2165bb6 100644
--- a/proto-meta-Tizen_generic/specfile-initial/weston-ivi/packaging/weston-ivi.spec
+++ b/proto-meta-Tizen_generic/specfile-initial/weston-ivi/packaging/weston-ivi.spec
@@ -22,6 +22,17 @@ Conflicts: ico-uxf-weston-plugin
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} .
@@ -40,6 +51,16 @@ 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
@@ -52,3 +73,7 @@ install -m 0644 weston.ini %{buildroot}%{weston_config_dir}
%files config
%manifest %{name}.manifest
%config %{weston_config_dir}/weston.ini
+
+%files config-modello
+%manifest %{name}.manifest
+%config %{weston_config_dir}/weston-modello.ini