From dcce739472103a1957811151f22f2ded7335a4af Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 7 May 2018 14:58:50 +0200 Subject: [PATCH] mockspec: Filter out macros --- mockspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mockspec b/mockspec index 5308a37..1e1831b 100755 --- a/mockspec +++ b/mockspec @@ -4,4 +4,4 @@ set -eu [ -d "$(mock --print-root-path)" ] || mock --init specfile="$1" shift -mock -i $(sed -n '/^BuildRequires:/ {s/^.*: //; s/>=.*$//; p}' "$specfile") $@ +mock -i $(sed -n '/^BuildRequires:/ {s/^.*: //; s/>=.*$//; s/%{.*}//; p}' "$specfile") $@ -- 2.39.5