tests: Install build dependencies before using rpm-build
Before running rpm-build we need to bring in the build dependencies that the SRPM requires.
This commit is contained in:
parent
d52199e26b
commit
6463ba777d
@ -10,6 +10,7 @@
|
||||
with_items:
|
||||
- koji
|
||||
- rpm-build
|
||||
- dnf-plugins-core
|
||||
|
||||
- name: provision VM
|
||||
qemu_provision:
|
||||
@ -40,6 +41,9 @@
|
||||
- set_fact:
|
||||
srpmpath: "{{tmpd.path}}/{{srpm.stdout}}"
|
||||
|
||||
- name: install build dependencies
|
||||
command: dnf builddep -y {{srpmpath}}
|
||||
|
||||
- name: extract source rpm
|
||||
command: >
|
||||
rpmbuild --define "_srcrpmdir {{tmpd.path}}"
|
||||
|
Loading…
Reference in New Issue
Block a user