rpmbuild-librsvg2: Get deps from srpm instead spec file to generate the dynamic dependencies

This commit is contained in:
Jesus Checa Hidalgo 2023-01-11 19:28:21 +01:00
parent 256f31f182
commit dbc2fd6f22

View File

@ -48,7 +48,10 @@ rlJournalStart
rlRun "rpm -ivh $SRPM"
rlRun SPECDIR="$(rpm -E '%{_specdir}')"
rlRun "yum-builddep -y ${SPECDIR}/${PKG_TO_BUILD}.spec ${YUM_SWITCHES}"
# librsvg2 contains dynamic dependencies. builddep needs to be run
# from the srpm (not the spec file) to be able to generate them:
# https://fedoraproject.org/wiki/Changes/DynamicBuildRequires#rpmbuild
rlRun "yum-builddep -y ${SRPM} ${YUM_SWITCHES}"
rlPhaseEnd
rlPhaseStartTest