From 841e46d447b1fd5be16b7973f482d33d560457ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C4=8Cern=C3=BD?= Date: Fri, 9 Sep 2022 13:53:28 +0200 Subject: [PATCH] Fix build due to unresolved unitdir According to Fedora packaging guidelines https://fedoraproject.org/wiki/Packaging:Systemd#Filesystem_locations in order for the %{_unitdir} macro to exist, our package must have BuildRequires: systemd. Addressing: error: File not found: /builddir/build/BUILDROOT/openscap-1.3.7-0.20220830091921540256.pr1882.62.g2bc28fe27.fc38.x86_64/usr/libexec/oscap-remediate error: File must begin with "/": %{_unitdir}/oscap-remediate.service error: File must begin with "/": %{_unitdir}/system-update.target.wants/ File not found: /builddir/build/BUILDROOT/openscap-1.3.7-0.20220830091921540256.pr1882.62.g2bc28fe27.fc38.x86_64/usr/libexec/oscap-remediate File must begin with "/": %{_unitdir}/oscap-remediate.service File must begin with "/": %{_unitdir}/system-update.target.wants/ --- openscap.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/openscap.spec b/openscap.spec index 1355554..93ff5b5 100644 --- a/openscap.spec +++ b/openscap.spec @@ -31,6 +31,7 @@ BuildRequires: glib2-devel BuildRequires: dbus-devel BuildRequires: libyaml-devel BuildRequires: xmlsec1-devel xmlsec1-openssl-devel +BuildRequires: systemd %if %{?_with_check:1}%{!?_with_check:0} BuildRequires: perl-XML-XPath BuildRequires: bzip2