blob: 4779377a8b000711ebd0ba36172383132a83d893 (
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
|
%bcond_with wayland
Name: weston-generic
Version: 1
Release: 0
Summary: Tizen Generic Weston configuration and set-up
License: MIT
Group: Base/Configuration
BuildArch: noarch
Source0: %{name}-%{version}.tar.bz2
Source1001: weston-generic.manifest
Provides: weston-startup
%if !%{with wayland}
ExclusiveArch:
%endif
%description
This package contains Tizen Generic configuration and set-up for
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
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}
%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
|