From 3dc267a465df47f1d14cd2d8826778bb8fd77ad0ed8c31470eb62d2e1d2e9ab2 Mon Sep 17 00:00:00 2001
From: Johannes Kastl <opensuse_buildservice@ojkastl.de>
Date: Wed, 30 Oct 2024 10:05:29 +0000
Subject: [PATCH] make BuildRequire for systemd-journal use group dependency

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/system-user-alloy?expand=0&rev=6
---
 system-user-alloy.changes | 5 +++++
 system-user-alloy.spec    | 6 +++++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/system-user-alloy.changes b/system-user-alloy.changes
index 7f54d7c..c3a4da9 100644
--- a/system-user-alloy.changes
+++ b/system-user-alloy.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Wed Oct 30 09:56:05 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
+
+- make BuildRequire for systemd-journal use group dependency
+
 -------------------------------------------------------------------
 Thu Oct 24 08:38:54 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
 
diff --git a/system-user-alloy.spec b/system-user-alloy.spec
index 8e9be34..a4f5771 100644
--- a/system-user-alloy.spec
+++ b/system-user-alloy.spec
@@ -22,8 +22,12 @@ Release:        0
 Summary:        System user and group 'alloy'
 License:        Apache-2.0
 Source0:        system-user-alloy.conf
-BuildRequires:  systemd
 BuildRequires:  sysuser-tools
+%if %{?suse_version} >= 1600
+BuildRequires:  group(systemd-journal)
+%else
+BuildRequires:  systemd
+%endif
 BuildArch:      noarch
 %sysusers_requires