Attempt to put patches in a temp directory and add after source is

downloaded
This commit is contained in:
2025-12-03 15:09:48 -05:00
parent 9e40736cb7
commit 0cc905a79d
2 changed files with 6 additions and 1 deletions

View File

@@ -37,8 +37,9 @@ runs:
env:
SOURCE_DIRECTORY: ${{ inputs.extra-source-directory }}
run: |
mkdir -p ./rpmbuild/PATCHES
find ${SOURCE_DIRECTORY} -type f -not -name "*\.spec" \
-exec cp {} ./rpmbuild/SOURCES \;
-exec cp {} ./rpmbuild/PATCHES \;
- name: Build RPM
shell: bash

View File

@@ -11,5 +11,9 @@ dnf5 -y builddep $1
echo "--- Download sources ---"
rpmdev-spectool -g -C ~/rpmbuild/SOURCES $1
echo "--- Add patches ---"
cp ~/rpmbuild/PATCHES/* ~/rpmbuild/SOURCES
echo "--- Build RPM packages ---"
rpmbuild --nodebuginfo --bb $1 && echo "--- Done! ---"