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

Group:		Graphics/X Window System
License:	GPL-2.0
URL:		http://foo-projects.org/~sofar/%{name}
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

%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