From d890769dab37b9b752dfaf2a6c12d9b1b4a896aa Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Mon, 19 Feb 2018 10:34:23 +0100 Subject: [PATCH] List gcc in BuildRequires https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/IJFYI5Q2BYZKIGDFS2WLOBDUSEGWHIKV/ https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B#BuildRequires_and_Requires Fixes: cc -Wall support/fc_sort.c -o tmp/fc_sort make: cc: Command not found make: *** [Makefile:404: tmp/fc_sort] Error 127 --- selinux-policy.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/selinux-policy.spec b/selinux-policy.spec index 31cc0813..9fd61acb 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -70,7 +70,8 @@ Source102: rpm.macros Url: %{git0-base} BuildArch: noarch -BuildRequires: python3 gawk checkpolicy >= %{CHECKPOLICYVER} m4 policycoreutils-devel >= %{POLICYCOREUTILSVER} bzip2 +BuildRequires: python3 gawk checkpolicy >= %{CHECKPOLICYVER} m4 policycoreutils-devel >= %{POLICYCOREUTILSVER} bzip2 +BuildRequires: gcc Requires(pre): policycoreutils >= %{POLICYCOREUTILSVER} Requires(post): /bin/awk /usr/bin/sha512sum Requires: rpm-plugin-selinux