Let rpmbuild download sources
This commit is contained in:
+1
-6
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user