From: Martin Pitt Date: Mon, 7 May 2018 12:58:50 +0000 (+0200) Subject: mockspec: Filter out macros X-Git-Url: https://piware.de/gitweb/?a=commitdiff_plain;h=dcce739472103a1957811151f22f2ded7335a4af;p=bin.git mockspec: Filter out macros --- 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") $@