This repository has been archived by the owner on Dec 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
quadlet.spec
57 lines (46 loc) · 1.48 KB
/
quadlet.spec
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
Name: quadlet
Version: 0.2.4
Release: 1%{?dist}
Summary: Systemd container integration tool
License: GPLv2+
URL: https://github.com/containers/quadlet
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.xz
BuildRequires: meson
BuildRequires: gcc
BuildRequires: pkgconfig(glib-2.0) >= 2.44.0
BuildRequires: pkgconfig(gobject-2.0)
Requires(pre): /usr/sbin/useradd
Requires: podman
Requires: crun
%description
Quadlet is an opinionated tool for easily running podman system containers under systemd in an optimal way.
%prep
%autosetup
%build
%meson
%meson_build
%check
%meson_test
%install
%meson_install
%pre
# We create a quadlet user so that we can get subuids and subgids allocated.
# It really is a system user, but Unfortunately useradd doesn't create subuids
# for system users, so we manually make it system-like and start at a higher
# min uid to avoid conflicts with common uid nrs around 1000
getent passwd quadlet >/dev/null || \
useradd -M -U -K SUB_UID_COUNT=65536 -K UID_MIN=50000 \
-s /sbin/nologin -d /nonexisting \
-c "User for quadlet" quadlet
exit 0
%files
%license COPYING
%doc README.md
%doc docs/Fileformat.md
%doc docs/ContainerSetup.md
%{_libexecdir}/quadlet-generator
%_prefix/lib/systemd/system-generators/quadlet-system-generator
%_prefix/lib/systemd/user-generators/quadlet-user-generator
%changelog
* Mon Sep 27 2021 Alexander Larsson <[email protected]> - 0.1.0-1
- Initial version