summaryrefslogtreecommitdiff
path: root/packaging/session-utils.spec
blob: c8b34abedf365cf614b9ca9f229775d532236143 (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
Name:      session-utils
Summary:   System utils for supporting multi-user environment
Version:   0.1
Release:   1
Group:     Base/Startup
License:   Apache-2.0
Source0:   %{name}-%{version}.tar.bz2
Source1:   %{name}.manifest

BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: cmake

%description
This package provides some utils for session control in multi-user environment.

###############################################################################
%package -n g-debug-fatal-warnings
Summary: glib debugging configuration files.
BuildArch: noarch

%description -n g-debug-fatal-warnings
This package provices the configuration file that enable glib debugging.


###############################################################################
%package -n dbus-activation-stop-test
Summary: dbus activation stop test.

%description -n dbus-activation-stop-test
This package provices the test code of dbus activation stopping.


###############################################################################
%prep
%setup -q

%build
cp %{SOURCE1} .

%cmake . \
	-DCMAKE_INSTALL_PREFIX=%{_prefix} \
	-DLIBDIR=%{_libdir}

%install
rm -rf %{buildroot}
%make_install

mkdir -p %{buildroot}/etc/systemd/user.conf.d
mkdir -p %{buildroot}/etc/systemd/system.conf.d
install -m 644 units/g-debug-fatal-warnings.conf %{buildroot}/etc/systemd/user.conf.d/
install -m 644 units/g-debug-fatal-warnings.conf %{buildroot}/etc/systemd/system.conf.d/

mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
install -m 644 units/dbus-activation-stop-test.service %{buildroot}%{_unitdir}/
install -m 644 units/dbus-activation-stop-test.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/


###############################################################################
%files
%license LICENSE.Apache-2.0
%manifest session-utils.manifest


###############################################################################
%files -n dbus-activation-stop-test
%license LICENSE.Apache-2.0
%manifest session-utils.manifest
%config %{_sysconfdir}/dbus-1/system.d/dbus-activation-stop-test.conf
%{_bindir}/dbus-activation-stop-test
%{_unitdir}/dbus-activation-stop-test.service


###############################################################################
%files -n g-debug-fatal-warnings
%license LICENSE.Apache-2.0
%manifest session-utils.manifest
/etc/systemd/user.conf.d/g-debug-fatal-warnings.conf
/etc/systemd/system.conf.d/g-debug-fatal-warnings.conf