diff options
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/weston-generic.changes | 5 | ||||
-rw-r--r-- | packaging/weston-generic.spec | 23 |
2 files changed, 26 insertions, 2 deletions
diff --git a/packaging/weston-generic.changes b/packaging/weston-generic.changes index aced762..3b48b2d 100644 --- a/packaging/weston-generic.changes +++ b/packaging/weston-generic.changes @@ -1,3 +1,6 @@ -* Thu Feb 27 2014 Stephane Desneux <stephane.desneux@open.eurogiciel.org> d8b517b +* Thu Feb 27 2014 Stephane Desneux <stephane.desneux@open.eurogiciel.org> eba0c0d +- Added weston start-up files, and split config to subpackage + +* Thu Feb 27 2014 Stephane Desneux <stephane.desneux@open.eurogiciel.org> 22746c3 - initial packaging 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 |