mirror of
https://github.com/containers/podman.git
synced 2025-11-29 09:37:38 +08:00
Packit: move scripts to contrib/packit-tmt
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
This commit is contained in:
@@ -44,8 +44,8 @@ srpm_build_deps:
|
||||
- make
|
||||
|
||||
actions:
|
||||
fix-spec-file: "bash .packit-copr-rpm.sh"
|
||||
pre-sync: "bash .packit-rpm-git-commit.sh"
|
||||
fix-spec-file: "bash contrib/packit-tmt/packit-copr-rpm.sh"
|
||||
pre-sync: "bash contrib/packit-tmt/packit-rpm-git-commit.sh"
|
||||
|
||||
jobs:
|
||||
- job: copr_build
|
||||
|
||||
@@ -6,16 +6,19 @@
|
||||
|
||||
set -exo pipefail
|
||||
|
||||
. .packit-rpm-git-commit.sh
|
||||
TOP_GIT_DIR=$(git rev-parse --show-toplevel)
|
||||
|
||||
. "$TOP_GIT_DIR"/contrib/packit-tmt/packit-rpm-git-commit.sh
|
||||
|
||||
# Get Version from HEAD
|
||||
VERSION=$(grep '^const RawVersion' version/rawversion/version.go | cut -d\" -f2)
|
||||
|
||||
# RPM Version can't take "-"
|
||||
RPM_VERSION=$(echo $VERSION | sed -e 's/-/~/')
|
||||
# shellcheck disable=SC2001
|
||||
RPM_VERSION=$(echo "$VERSION" | sed -e 's/-/~/')
|
||||
|
||||
# Generate source tarball from HEAD
|
||||
git-archive-all -C $(git rev-parse --show-toplevel) --prefix=$PACKAGE-$VERSION/ rpm/$PACKAGE-$VERSION.tar.gz
|
||||
git-archive-all -C "$TOP_GIT_DIR" --prefix="$PACKAGE-$VERSION/" "$TOP_GIT_DIR/rpm/$PACKAGE-$VERSION.tar.gz"
|
||||
|
||||
# RPM Spec modifications
|
||||
|
||||
Reference in New Issue
Block a user