diff --git a/sqlgrey.spec b/sqlgrey.spec index f8b9ea6..c87372b 100644 --- a/sqlgrey.spec +++ b/sqlgrey.spec @@ -1,6 +1,6 @@ Name: sqlgrey Version: 1.8.0 -Release: 33%{?dist} +Release: 31%{?dist} Summary: Postfix grey-listing policy service # Automatically converted from old format: GPLv2+ - review is highly recommended. License: GPL-2.0-or-later @@ -13,6 +13,7 @@ BuildArch: noarch Requires: postfix Requires: perl(DBD::SQLite) +Requires(pre): shadow-utils Requires(post): systemd Requires(preun): systemd Requires(postun): systemd @@ -33,11 +34,6 @@ to 90% of junk mails (spam and virus) before they reach your Postfix server %patch -P0 -p1 %patch -P1 -p1 -# Create a sysusers.d config file -cat >sqlgrey.sysusers.conf </dev/null || groupadd -r sqlgrey +getent passwd sqlgrey >/dev/null || \ + useradd -r -g sqlgrey -d /var/lib/sqlgrey -s /sbin/nologin \ + -c "SQLgrey server" sqlgrey +exit 0 %post %systemd_post sqlgrey.service @@ -82,12 +81,6 @@ install -m0644 -D sqlgrey.sysusers.conf %{buildroot}%{_sysusersdir}/sqlgrey.conf %systemd_postun_with_restart sqlgrey.service %changelog -* Fri Jul 25 2025 Fedora Release Engineering - 1.8.0-33 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek - 1.8.0-32 -- Add sysusers.d config file to allow rpm to create users/groups automatically - * Sat Feb 08 2025 Kevin Fenzi - 1.8.0-31 - Adjust to sbin/bin consolidation. Fixes FTBFS rhbz#2341376