4 Summary: Display server for headless profile
6 Group: Graphics & UI Framework/Wayland Window System
8 Source: %{name}-%{version}.tar.xz
9 source1001: %name.manifest
11 BuildRequires: autoconf > 2.64
12 BuildRequires: automake >= 1.11
13 BuildRequires: libtool >= 2.2
14 BuildRequires: pkgconfig(xkbcommon)
15 BuildRequires: pkgconfig(wayland-tbm-server)
16 BuildRequires: pkgconfig(tizen-extension-server)
17 BuildRequires: pkgconfig(capi-system-peripheral-io)
18 BuildRequires: pkgconfig(xdg-shell-unstable-v6-server)
19 BuildRequires: pkgconfig(tizen-extension-server)
21 BuildRequires: pkgconfig(dlog)
22 BuildRequires: pkgconfig(wayland-server)
23 BuildRequires: pkgconfig(libds)
24 BuildRequires: pkgconfig(libds-tizen-tbm-server)
25 BuildRequires: pkgconfig(libds-tizen-keyrouter)
26 BuildRequires: pkgconfig(libds-tizen-input-devicemgr)
29 Requires: capi-system-peripheral-io
32 Headless server is a display server for headless profile.
35 Summary: Development module for headless-server package
36 Requires: %{name} = %{version}-%{release}
39 This package includes developer files common to all packages.
46 export CFLAGS+=" -fPIE "
47 export LDFLAGS+=" -pie "
55 %define display_user display
56 %define display_group display
58 # install system session services
59 %__mkdir_p %{buildroot}%{_unitdir}
60 install -m 644 data/units/display-manager.service %{buildroot}%{_unitdir}
61 install -m 550 data/scripts/* %{buildroot}%{_bindir}
62 install -m 644 data/units/display-manager-ready.path %{buildroot}%{_unitdir}
63 install -m 644 data/units/display-manager-ready.service %{buildroot}%{_unitdir}
65 # install user session service
66 %__mkdir_p %{buildroot}%{_unitdir_user}
67 install -m 644 data/units/display-user.service %{buildroot}%{_unitdir_user}
69 # install env file and scripts for service
70 %__mkdir_p %{buildroot}%{_sysconfdir}/sysconfig
71 install -m 0644 data/units/display-manager.env %{buildroot}%{_sysconfdir}/sysconfig
72 %__mkdir_p %{buildroot}%{_sysconfdir}/profile.d
73 install -m 0644 data/units/display_env.sh %{buildroot}%{_sysconfdir}/profile.d
75 install -m 0755 data/units/headless_server_start.sh %{buildroot}/%{_bindir}
77 %post -n %{name} -p /sbin/ldconfig
78 %postun -n %{name} -p /sbin/ldconfig
81 # create groups 'display'
82 getent group %{display_group} >/dev/null || %{_sbindir}/groupadd -r -o %{display_group}
83 # create user 'display'
84 getent passwd %{display_user} >/dev/null || %{_sbindir}/useradd -r -g %{display_group} -d /run/display -s /bin/false -c "Display" %{display_user}
86 # create links within systemd's target(s)
87 %__mkdir_p %{_unitdir}/graphical.target.wants/
88 %__mkdir_p %{_unitdir_user}/basic.target.wants/
89 ln -sf ../display-manager.service %{_unitdir}/graphical.target.wants/
90 ln -sf ../display-manager-ready.service %{_unitdir}/graphical.target.wants/
91 ln -sf ../display-user.service %{_unitdir_user}/basic.target.wants/
94 %manifest %{name}.manifest
95 %defattr(-,root,root,-)
99 %{_unitdir}/display-manager-ready.path
100 %{_unitdir}/display-manager-ready.service
101 %{_unitdir}/display-manager.service
102 %{_unitdir_user}/display-user.service
103 %config %{_sysconfdir}/sysconfig/display-manager.env
104 %config %{_sysconfdir}/profile.d/display_env.sh
107 %manifest %{name}.manifest
108 %defattr(-,root,root,-)