packit: generate tarball by tito, read Version from spec

Complements: #483
Relates: #480
This commit is contained in:
Pavel Raiskup 2024-01-12 13:55:43 +01:00 committed by Jakub Kadlčík
parent a096b21484
commit 9d1c10f52f

View file

@ -1,4 +1,15 @@
---
srpm_build_deps:
- tito
- git
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 tito.spec | awk '{ print $2 }'"
jobs:
- &copr
job: copr_build