]> piware.de Git - bin.git/commitdiff
Add build-devmock
authorMartin Pitt <martin@piware.de>
Mon, 8 Jul 2019 19:54:07 +0000 (21:54 +0200)
committerMartin Pitt <martin@piware.de>
Mon, 8 Jul 2019 19:54:07 +0000 (21:54 +0200)
Build a mock with my day-to-day development dependencies.

build-devmock [new file with mode: 0755]

diff --git a/build-devmock b/build-devmock
new file mode 100755 (executable)
index 0000000..d288959
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -eux
+MOCK="mock -r ${OS:-default}"
+
+mock --clean
+
+# install cockpit's build deps
+$MOCK -i $(sed -n '/^BuildRequires:/ {s/^.*: //; s/>=.*$//; s/%{.*}//; p}' ~/upstream/cockpit/tools/cockpit.spec) \
+    npm fontconfig git valgrind chromium-headless \
+    libvirt-daemon-kvm libvirt-client python3-libvirt \
+    expect python3-pycodestyle python3-pyflakes \
+    fedpkg /usr/bin/oc