mirror of
https://github.com/containers/podman.git
synced 2025-07-04 01:48:28 +08:00
Add seconds after epoch to copr rpms to tie break versioning
Signed-off-by: baude <bbaude@redhat.com> Closes: #654 Approved by: mheon
This commit is contained in:
@ -10,7 +10,7 @@ git fetch --unshallow || :
|
|||||||
COMMIT=$(git rev-parse HEAD)
|
COMMIT=$(git rev-parse HEAD)
|
||||||
COMMIT_SHORT=$(git rev-parse --short HEAD)
|
COMMIT_SHORT=$(git rev-parse --short HEAD)
|
||||||
COMMIT_NUM=$(git rev-list HEAD --count)
|
COMMIT_NUM=$(git rev-list HEAD --count)
|
||||||
COMMIT_DATE=$(date --date="@$(git show -s --format=%ct HEAD)" +%Y%m%d)
|
COMMIT_DATE=$(date +%s)
|
||||||
|
|
||||||
sed "s,#COMMIT#,${COMMIT},;
|
sed "s,#COMMIT#,${COMMIT},;
|
||||||
s,#SHORTCOMMIT#,${COMMIT_SHORT},;
|
s,#SHORTCOMMIT#,${COMMIT_SHORT},;
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||||
|
|
||||||
Name: podman
|
Name: podman
|
||||||
Version: 0.4.4
|
Version: 0.4.4.#COMMITDATE#
|
||||||
Release: git%{shortcommit}%{?dist}
|
Release: git%{shortcommit}%{?dist}
|
||||||
Summary: Manage Pods, Containers and Container Images
|
Summary: Manage Pods, Containers and Container Images
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
|
Reference in New Issue
Block a user