Skip to content

Commit

Permalink
fix packit script
Browse files Browse the repository at this point in the history
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
  • Loading branch information
lsm5 committed Jul 21, 2023
1 parent 42ed153 commit 41ab30f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .packit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,14 @@ RPM_VERSION=$(echo $VERSION | sed -e 's/-/~/')
git-archive-all -v --force-submodules $PACKAGE-$VERSION.tar.xz

# rpmbuild expects source tarball in the same dir as spec file
mv podman-$VERSION.tar.xz rpm/
mv $PACKAGE-$VERSION.tar.xz rpm/

# RPM Spec modifications

# Use the Version from HEAD in rpm spec
sed -i "s/^Version:.*/Version: $RPM_VERSION/" $SPEC_FILE

# Use Packit's supplied variable in the Release field in rpm spec.
# podman.spec is generated using `rpkg spec --outdir ./` as mentioned in the
# `post-upstream-clone` action in .packit.yaml.
# Use Packit's supplied variable in the Release field in rpm spec
sed -i "s/^Release:.*/Release: $PACKIT_RPMSPEC_RELEASE%{?dist}/" $SPEC_FILE

# Use above generated tarball as Source in rpm spec
Expand Down

0 comments on commit 41ab30f

Please sign in to comment.