From adf97a7e58e789e9633a68db3e399b77933df71d Mon Sep 17 00:00:00 2001 From: natalia-zelazna <129159148+natalia-zelazna@users.noreply.github.com> Date: Tue, 16 Jan 2024 11:38:31 +0100 Subject: [PATCH] cleanup to include earlier kernels (#344) * 1st changes * Update dist/dattobd.spec Co-authored-by: st-matskevich <62443731+st-matskevich@users.noreply.github.com> --------- Co-authored-by: st-matskevich <62443731+st-matskevich@users.noreply.github.com> --- dist/dattobd.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/dattobd.spec b/dist/dattobd.spec index a7643fb4..fa388e38 100644 --- a/dist/dattobd.spec +++ b/dist/dattobd.spec @@ -146,9 +146,13 @@ BuildRequires: gcc BuildRequires: make BuildRequires: rsync -%if 0%{?fedora} || 0%{?rhel} -BuildRequires: systemd-rpm-macros +%if 0%{?rhel} < 8 +BuildRequires: systemd +%else +BuildRequires: systemd-rpm-macros +%{?systemd_requires} %endif + # Some targets (like EL5) expect a buildroot definition BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root