Name: ostree-retention Version: 0.1.0 Release: 1%{?dist} Summary: Conservative rpm-ostree deployment retention service License: MIT BuildArch: noarch BuildRequires: systemd-rpm-macros Requires: python3 Requires: ostree Requires: rpm-ostree %{?systemd_requires} Source0: %{name}-%{version}.tar.gz %description Pins recent rpm-ostree deployments and whitelisted deployments so normal OSTree garbage collection does not remove them. The service preserves manual pins and does not delete deployments. %prep %autosetup %build %install install -D -m 0755 src/ostree-retain-deployments \ %{buildroot}%{_sbindir}/ostree-retain-deployments sed 's#/usr/local/sbin/ostree-retain-deployments#%{_sbindir}/ostree-retain-deployments#' \ systemd/ostree-retention.service > ostree-retention.service install -D -m 0644 ostree-retention.service \ %{buildroot}%{_unitdir}/ostree-retention.service install -D -m 0644 examples/ostree-retention.whitelist \ %{buildroot}%{_sysconfdir}/ostree-retention.whitelist install -d -m 0755 %{buildroot}%{_sharedstatedir}/ostree-retention %post %systemd_post ostree-retention.service %preun %systemd_preun ostree-retention.service %postun %systemd_postun_with_restart ostree-retention.service %files %license LICENSE %doc README.md docs/design.md docs/operations.md %{_sbindir}/ostree-retain-deployments %{_unitdir}/ostree-retention.service %config(noreplace) %{_sysconfdir}/ostree-retention.whitelist %dir %{_sharedstatedir}/ostree-retention %changelog * Sat Sep 12 2026 Codex - 0.1.0-1 - Initial package