## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: quadlet Version: 0.2.4 Release: %autorelease Summary: Systemd container integration tool License: GPLv2+ URL: https://github.com/containers/quadlet Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: meson BuildRequires: gcc BuildRequires: pkgconfig(glib-2.0) >= 2.44.0 BuildRequires: pkgconfig(gobject-2.0) BuildRequires: systemd-rpm-macros Requires(pre): shadow-utils Requires: podman Requires: crun Requires: bash %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 %{_systemdgeneratordir}/quadlet-system-generator %{_systemdusergeneratordir}/quadlet-user-generator %changelog * Sat Jul 23 2022 Fedora Release Engineering 0.2.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed May 11 2022 Matthew Miller - 0.2.4-2 - convert to rpmautospec * Wed Mar 16 2022 Stephen Smoogen - 0.2.4-1 - Update to quadlet-0.2.4 * Tue Feb 8 2022 Stephen Smoogen - 0.2.3-1 - Update to new upstream release - Commit first builds to Fedora build system. * Mon Feb 7 2022 Stephen Smoogen - 0.2.2-2 - Take into account changes requests in bz#2045079 -- add in requires(pre): shadow-utils -- add in build-requires: systemd-rpm-macros - Add in dependency for bash due to explicit call out in generator.c * Mon Jan 24 2022 Stephen Smoogen - 0.2.2-1 - Update to upstream 0.2.2 version - Fix upstream from internal spec to meet rpmlint. * Mon Sep 27 2021 Alexander Larsson - 0.1.0-1 - Initial version