]> piware.de Git - bin.git/blob - mockspec
vmbr: Use my own br0 bridge
[bin.git] / mockspec
1 #!/bin/sh
2 # start mock session with build deps from given .spec file
3 set -eu
4 [ -d "$(mock --print-root-path)" ] ||  mock --init
5 specfile="$1"
6 shift
7 mock -i $(sed -n '/^BuildRequires:/ {s/^.*: //; s/>=.*$//; s/%{.*}//; p}' "$specfile") $@