Skip to content

Commit

Permalink
build: fix Fedora rpm build
Browse files Browse the repository at this point in the history
It started to fail in COPR. It's possible that go-rpm-macros is not
automatically present - Fedora packaging guidelines mentions that
they should be present.

Thus adding them as BuildRequires.

Signed-off-by: Petr Vobornik <[email protected]>
  • Loading branch information
pvoborni committed Dec 15, 2023
1 parent 5e0bc3c commit 1241860
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contrib/rpm/host-metering.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ BuildRequires: go-toolset-1.19
BuildRequires: golang >= 1.19
BuildRequires: systemd-rpm-macros
%endif

%if 0%{?rhel} > 8 || %{?fedora}
BuildRequires: go-rpm-macros
%endif

BuildRequires: git
BuildRequires: policycoreutils
BuildRequires: selinux-policy
Expand Down

0 comments on commit 1241860

Please sign in to comment.