From 21528c8512bd07d04e9a721ebb39242a94a585f8 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Wed, 24 Aug 2022 17:40:43 +0200 Subject: [PATCH] Use %sysusers_requires_compat to match %sysusers_create_compat Fallout from 8675595d8f6f088b4e96e7aac6354606bdb57b1a --- elfutils.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/elfutils.spec b/elfutils.spec index 11e7613..d5f2419 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -1,6 +1,6 @@ Name: elfutils Version: 0.187 -%global baserelease 7 +%global baserelease 8 Release: %{baserelease}%{?dist} URL: http://elfutils.org/ %global source_url ftp://sourceware.org/pub/elfutils/%{version}/ @@ -232,7 +232,11 @@ BuildRequires: make Requires(post): systemd Requires(preun): systemd Requires(postun): systemd +%if %{with_sysusers} +%{?sysusers_requires_compat} +%else Requires(pre): shadow-utils +%endif # To extract .deb files with a bsdtar (= libarchive) subshell Requires: bsdtar @@ -442,6 +446,9 @@ exit 0 %systemd_postun_with_restart debuginfod.service %changelog +* Wed Aug 24 2022 Debarshi Ray - 0.187-8 +- Use %%sysusers_requires_compat to match %%sysusers_create_compat + * Wed Jul 27 2022 Amit Shah - 0.187-7 - Allow building without default debuginfod URL