]> piware.de Git - bin.git/commitdiff
mockspec: Filter out macros
authorMartin Pitt <martin@piware.de>
Mon, 7 May 2018 12:58:50 +0000 (14:58 +0200)
committerMartin Pitt <martin@piware.de>
Mon, 7 May 2018 12:58:50 +0000 (14:58 +0200)
mockspec

index 5308a377ce0426564c61fc7dff7950019bcf6013..1e1831b8870d2d9c98d9e50bc61563fa9e6d5301 100755 (executable)
--- 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") $@