Skip to content

Commit

Permalink
Merge pull request #1078 from nforro/packit
Browse files Browse the repository at this point in the history
packit: Fix replacement of placeholders in post-upstream-clone
  • Loading branch information
vojtechtrefny authored Nov 13, 2024
2 parents 2003ecd + e6dad87 commit 4d746d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .packit.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
actions:
post-upstream-clone:
- 'cp dist/libblockdev.spec.in dist/libblockdev.spec'
- 'sed -i -e "s/@WITH_.+@/1/g" -e "s/@MAJOR_VER@/3/g" dist/libblockdev.spec'
- 'sed -i -e "s/@WITH_..*@/1/g" -e "s/@MAJOR_VER@/3/g" dist/libblockdev.spec'
create-archive:
- './autogen.sh'
- './configure'
Expand Down Expand Up @@ -37,7 +37,7 @@ jobs:
# bump release to 99 to always be ahead of Fedora builds
- 'bash -c "sed -i -r \"s/Release:(\s*)\S+/Release: 99%{?dist}/\" dist/libblockdev.spec.in"'
- 'cp dist/libblockdev.spec.in dist/libblockdev.spec'
- 'sed -i -e "s/@WITH_.+@/1/g" -e "s/@MAJOR_VER@/3/g" dist/libblockdev.spec'
- 'sed -i -e "s/@WITH_..*@/1/g" -e "s/@MAJOR_VER@/3/g" dist/libblockdev.spec'
create-archive:
- './autogen.sh'
- './configure'
Expand All @@ -58,7 +58,7 @@ jobs:
# bump release to 99 to always be ahead of Fedora builds
- 'bash -c "sed -i -r \"s/Release:(\s*)\S+/Release: 99%{?dist}/\" dist/libblockdev.spec.in"'
- 'cp dist/libblockdev.spec.in dist/libblockdev.spec'
- 'sed -i -e "s/@WITH_.+@/1/g" -e "s/@MAJOR_VER@/3/g" dist/libblockdev.spec'
- 'sed -i -e "s/@WITH_..*@/1/g" -e "s/@MAJOR_VER@/3/g" dist/libblockdev.spec'
create-archive:
- './autogen.sh'
- './configure'
Expand Down

0 comments on commit 4d746d2

Please sign in to comment.