Skip to content

Commit

Permalink
packit: Fix replacement of placeholders in post-upstream-clone
Browse files Browse the repository at this point in the history
Signed-off-by: Nikola Forró <[email protected]>
  • Loading branch information
nforro committed Nov 13, 2024
1 parent 2003ecd commit e6dad87
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 e6dad87

Please sign in to comment.