diff options
Diffstat (limited to 'packaging/weston-generic.spec')
-rw-r--r-- | packaging/weston-generic.spec | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/packaging/weston-generic.spec b/packaging/weston-generic.spec index 5e11cde..6fd9865 100644 --- a/packaging/weston-generic.spec +++ b/packaging/weston-generic.spec @@ -7,10 +7,18 @@ Group: Base/Configuration BuildArch: noarch Source0: %{name}-%{version}.tar.bz2 Source1001: weston-generic.manifest +Provides: weston-startup %description This package contains Tizen Generic configuration and set-up for -the Weston compositor. +the Weston compositor, including systemd unit files. + +%package config +Summary: Tizen Generic Weston configuration +Group: Base/Configuration +%description config +This package contains Tizen Generic configuration for the Weston +compositor. %prep %setup -q @@ -20,6 +28,13 @@ cp %{SOURCE1001} . %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} @@ -28,4 +43,10 @@ install -m 0644 weston.ini %{buildroot}%{weston_config_dir} %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 |