Attempt to put patches in a temp directory and add after source is
downloaded
This commit is contained in:
@@ -37,8 +37,9 @@ runs:
|
|||||||
env:
|
env:
|
||||||
SOURCE_DIRECTORY: ${{ inputs.extra-source-directory }}
|
SOURCE_DIRECTORY: ${{ inputs.extra-source-directory }}
|
||||||
run: |
|
run: |
|
||||||
|
mkdir -p ./rpmbuild/PATCHES
|
||||||
find ${SOURCE_DIRECTORY} -type f -not -name "*\.spec" \
|
find ${SOURCE_DIRECTORY} -type f -not -name "*\.spec" \
|
||||||
-exec cp {} ./rpmbuild/SOURCES \;
|
-exec cp {} ./rpmbuild/PATCHES \;
|
||||||
|
|
||||||
- name: Build RPM
|
- name: Build RPM
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
@@ -11,5 +11,9 @@ dnf5 -y builddep $1
|
|||||||
|
|
||||||
echo "--- Download sources ---"
|
echo "--- Download sources ---"
|
||||||
rpmdev-spectool -g -C ~/rpmbuild/SOURCES $1
|
rpmdev-spectool -g -C ~/rpmbuild/SOURCES $1
|
||||||
|
|
||||||
|
echo "--- Add patches ---"
|
||||||
|
cp ~/rpmbuild/PATCHES/* ~/rpmbuild/SOURCES
|
||||||
|
|
||||||
echo "--- Build RPM packages ---"
|
echo "--- Build RPM packages ---"
|
||||||
rpmbuild --nodebuginfo --bb $1 && echo "--- Done! ---"
|
rpmbuild --nodebuginfo --bb $1 && echo "--- Done! ---"
|
||||||
|
|||||||
Reference in New Issue
Block a user