]> piware.de Git - bin.git/blob - mockspec
retry-gh-systemd-test: Run biebl/meson branch for s390x
[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/>=.*$//; p}' "$specfile") $@