From 82cfd048193590233f7d2be0a21123b6a5178222 Mon Sep 17 00:00:00 2001 From: Kelvin Fan Date: Wed, 23 Sep 2020 16:26:28 -0400 Subject: [PATCH] specfile: Remove %pre section We have been using the systemd RPM macro `tmpfiles_create_package` incorrectly. Since the entries in `tmpfiles.d` and `sysusers.d` are not prerequisites for installation, https://src.fedoraproject.org/rpms/systemd/blob/master/f/triggers.systemd#_68 should be sufficient to ensure that the necessary tmpfiles and users are created post installation. --- rust-zincati.spec | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/rust-zincati.spec b/rust-zincati.spec index e543201..9052252 100644 --- a/rust-zincati.spec +++ b/rust-zincati.spec @@ -6,7 +6,7 @@ Name: rust-%{crate} Version: 0.0.12 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Update agent for Fedora CoreOS # Upstream license specification: Apache-2.0 @@ -69,10 +69,6 @@ License: ASL 2.0 and BSD and MIT and MPLv2.0 and zlib %{_tmpfilesdir}/zincati.conf %{_datadir}/polkit-1/rules.d/zincati.rules -%pre -n %{crate} -%sysusers_create_package %{crate} 50-zincati.conf -%tmpfiles_create_package %{crate} zincati.conf - %post -n %{crate} %systemd_post zincati.service @@ -123,6 +119,9 @@ ln -snf /run/%{crate}/public/metrics.promsock %{buildroot}/run/%{crate}/private/ %endif %changelog +* Wed Sep 23 2020 Kelvin Fan - 0.0.12-6 +- Remove unnecessary usage of systemd RPM macro in %pre + * Sun Aug 16 15:01:58 GMT 2020 Igor Raits - 0.0.12-5 - Rebuild