blob: db821cfd67d3064371fb7775c021296e31dab909 (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
Name: uxlaunch
Summary: UX launcher daemon
Version: 0.64
Release: 1
Group: System/Console
License: GPLv2
URL: http://www.tizen.org
Source0: %{name}-%{version}.tar.gz
Source1: uxlaunch.config
Source2: xterm.desktop
Requires(preun): systemd
Requires(post): systemd
Requires(postun): systemd
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(xau)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(systemd)
BuildRequires: pam-devel
%description
Uxlaunch is a generic X session launch utility, designed to
quickly start X and a user desktop.
%package devel
Summary: Headers for uxlaunch IPC
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Development files for uxlaunch.
%prep
%setup -q -n %{name}-%{version}
%build
%reconfigure --disable-static --without-ck-connector
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_lib}/systemd/system/graphical.target.wants
ln -s ../uxlaunch.service %{buildroot}/%{_lib}/systemd/system/graphical.target.wants/uxlaunch.service
%make_install
install -D -p -m 0644 %{SOURCE1} \
%{buildroot}%{_sysconfdir}/sysconfig/uxlaunch
install -D -p -m 0644 %{SOURCE1} \
%{buildroot}%{_datadir}/xsessions/xterm.desktop
%preun
if [ $1 == 0 ]; then
systemctl stop uxlaunch.service
fi
%post
systemctl daemon-reload
if [ $1 == 1 ]; then
systemctl restart uxlaunch.service
fi
%postun
systemctl daemon-reload
%files
%defattr(-,root,root,-)
%{_sbindir}/uxlaunch
%config(noreplace) %{_sysconfdir}/sysconfig/uxlaunch
%doc %{_mandir}/man1/uxlaunch.1*
%{_datadir}/uxlaunch/dmi-dpi
%{_datadir}/xsessions/xterm.desktop
/lib/systemd/system/uxlaunch.service
/lib/systemd/system/graphical.target.wants/uxlaunch.service
%files devel
%defattr(-,root,root,-)
%{_includedir}/uxlaunch-ipc.h
%changelog
|