From 6619296f0878fcdc3c334b1c86acbdcbc564599c Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 29 Jan 2024 08:58:25 +0100 Subject: [PATCH] simplify packit --- .packit.yaml | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index 58be6e277..93c9b4a2d 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -2,31 +2,24 @@ # https://packit.dev/docs/configuration/ --- +actions: + create-archive: + - bash -c "tito build --tgz --test -o ." + - bash -c "ls -1t ./*.tar.gz | head -n 1" + get-current-version: + - bash -c "grep ^Version \"$PACKIT_CONFIG_PACKAGE_NAME.spec\" | awk '{ print $2 }'" + packages: mock: specfile_path: mock.spec paths: - ./mock - actions: - create-archive: - - bash -c "tito build --tgz --test -o ." - - bash -c "ls -1t ./*.tar.gz | head -n 1" - get-current-version: - - bash -c "git describe --match mock-[0-9]* --abbrev=0 HEAD | egrep -o - [0-9]+\.[0-9]+" downstream_package_name: mock upstream_tag_template: mock-{version} mock-core-configs: specfile_path: mock-core-configs.spec paths: - ./mock-core-configs - actions: - create-archive: - - bash -c "tito build --tgz --test -o ." - - bash -c "ls -1t ./*.tar.gz | head -n 1" - get-current-version: - - bash -c "git describe --match mock-core-configs-[0-9]* --abbrev=0 HEAD - | egrep -o [0-9]+\.[0-9]+" downstream_package_name: mock-core-configs upstream_tag_template: mock-core-configs-{version} srpm_build_deps: