Let rpmbuild download sources

This commit is contained in:
2026-04-08 00:37:54 +02:00
parent 8ddb92b1af
commit 4e2b0692dd
+2 -4
View File
@@ -18,12 +18,10 @@ runs:
SPECFILE=$([ "${{ inputs.specfile }}" ] && echo -n "${{ inputs.specfile }}" || echo -n $([ $(ls -1 *.spec 2>/dev/null| wc -l) -eq 1 ] && echo -n "$(ls -1 *.spec)"))
[ "$SPECFILE" == "" ] && exit 1
echo install_weak_deps=false >> /etc/dnf/dnf.conf
echo Downloading source archive
spectool -g $SPECFILE
microdnf builddep -y $SPECFILE
echo Checking for missing builddeps
counter=1
until rpmbuild --define "_sourcedir $PWD" --define "_topdir $PWD" -bd $SPECFILE || [ $counter -gt 5 ]; do
until rpmbuild --undefine=_disable_source_fetch --define "_sourcedir $PWD" --define "_topdir $PWD" -bd $SPECFILE || [ $counter -gt 5 ]; do
echo Installing missing builddeps round $counter
microdnf builddep -y SRPMS/$(rpmspec -q --srpm --qf '%{nevr}' $SPECFILE).buildreqs.nosrc.rpm
((counter++))
@@ -31,7 +29,7 @@ runs:
echo RPM autospeccing
rpmautospec process-distgit $SPECFILE $SPECFILE
echo Building rpm and srpm
rpmbuild --define "_sourcedir $PWD" --define "_topdir $PWD" -ba $SPECFILE
rpmbuild --undefine=_disable_source_fetch --define "_sourcedir $PWD" --define "_topdir $PWD" -ba $SPECFILE
echo "Built $SPECFILE"
branding:
icon: "package"