Skip to content

Commit

Permalink
Merge pull request #1174 from lsm5/copr-fix-release-tag
Browse files Browse the repository at this point in the history
Packit: Fix sed for release tag update in rpm spec
  • Loading branch information
openshift-merge-robot authored Mar 9, 2023
2 parents a47f7c6 + 5611afb commit 873ef47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .packit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ git archive --prefix=conmon-rs-$HEAD_VERSION/ -o conmon-rs-$HEAD_VERSION.tar.gz
sed -i "s/^Version:.*/Version: $HEAD_VERSION/" conmon-rs.spec

# Update Release in spec with Packit's release envvar
sed -i "s/^Release: %autorelease/Release: $PACKIT_RPMSPEC_RELEASE%{?dist}/" conmon-rs.spec
sed -i "s/^Release:.*/Release: $PACKIT_RPMSPEC_RELEASE%{?dist}/" conmon-rs.spec

# Update Source tarball name in spec
sed -i "s/^Source:.*.tar.gz/Source: %{name}-$HEAD_VERSION.tar.gz/" conmon-rs.spec
Expand Down

0 comments on commit 873ef47

Please sign in to comment.