summaryrefslogtreecommitdiff
path: root/packaging/xorg-launch-helper.spec
blob: da69d7a5c5631090026cdeed5b6675243fc4169b (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
Name:		xorg-launch-helper
Version:	4
Release:	0
Summary:	Xorg service helper

Group:		Graphics/X Window System
License:	GPL-2.0
URL:		http://foo-projects.org/~sofar/%{name}
#X-Vc-Url:	https://github.com/sofar/xorg-launch-helper.git
Source0:	http://foo-projects.org/~sofar/%{name}/%{name}-%{version}.tar.gz
Source1:	xorg.conf
Source2:	xorg_done.service
Source1001: 	xorg-launch-helper.manifest

BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(libsystemd-daemon)
Requires:	/usr/bin/Xorg

%description
A wrapper to launch Xorg as a service in systemd environments.

%prep
%setup -q
cp %{SOURCE1001} .

%build
%reconfigure
%__make %{?_smp_mflags}


%install
%make_install

# temoprary HW configuration. it should be seperated.
mkdir -p %{buildroot}/etc/sysconfig
install -m 644 %{SOURCE1} %{buildroot}/etc/sysconfig/xorg
install -m 0644 %{SOURCE2} %{buildroot}%{_prefix}/lib/systemd/user/
ln -sf ../xorg_done.service %{buildroot}%{_prefix}/lib/systemd/user/xorg.target.wants

# "-sharevt" option will be removed (only) for Tizen Emulator temporarily
# by the request from Tizen SDK (kernel) team.
%if 0%{?simulator}
sed -i 's/-sharevts//g' %{buildroot}/etc/sysconfig/xorg
%endif

%files
%manifest %{name}.manifest
%license COPYING
%defattr(-,root,root,-)
%{_bindir}/xorg-launch-helper
%{_prefix}/lib/systemd/user/xorg.service
%{_prefix}/lib/systemd/user/xorg_done.service
%{_prefix}/lib/systemd/user/xorg.target
%{_prefix}/lib/systemd/user/xorg.target.wants/xorg.service
%{_prefix}/lib/systemd/user/xorg.target.wants/xorg_done.service
/etc/sysconfig/xorg