Let rpmbuild download sources

This commit is contained in:
2026-04-07 23:35:34 +02:00
parent eed0a4a3e5
commit cacab547aa
+1 -6
View File
@@ -33,11 +33,6 @@ runs:
[ "$SPECFILE" == "" ] && echo Could\'t find a singular spec file to use && exit 1
echo Specfile is $SPECFILE
if [ "$(grep -iPc 'source\d*:\s*(https?://|ftps?://|%{?pypi_source|%{?crates_source|%{?forgesource)' "$SPECFILE")" != "0" ]; then
echo Downloading source archive
spectool -g $SPECFILE
fi
# The output of https://copr.fedorainfracloud.org/api/
echo Setting up copr config
mkdir config
@@ -46,7 +41,7 @@ runs:
EOF
rpmautospec process-distgit $SPECFILE $SPECFILE
rpmbuild -bs --define "_sourcedir $PWD" --define "_topdir $PWD" --define "_rpmdir $PWD" $SPECFILE
rpmbuild -bs --undefine=_disable_source_fetch --define "_sourcedir $PWD" --define "_topdir $PWD" --define "_rpmdir $PWD" $SPECFILE
copr-cli --config config/copr build --chroot fedora-$(echo "${{ inputs.fedora_release }}" | sed 's/^f//' )-x86_64 ${{ inputs.copr_project }} SRPMS/*
branding:
icon: "package"