diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-06-07 17:44:30 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-06-08 09:43:48 +0200 |
commit | fb59cfc9093b2c68d5fa65bb6eb4d4042dab0593 (patch) | |
tree | 94db0c9c3ff55e584e1d5c860ef1dbee8a2317c1 /contrib/fedora/rpkg.macros | |
parent | bb8a7b8a2a461f56d7c5e819996cd2470b0c1566 (diff) | |
download | passt-fb59cfc9093b2c68d5fa65bb6eb4d4042dab0593.tar passt-fb59cfc9093b2c68d5fa65bb6eb4d4042dab0593.tar.gz passt-fb59cfc9093b2c68d5fa65bb6eb4d4042dab0593.tar.bz2 passt-fb59cfc9093b2c68d5fa65bb6eb4d4042dab0593.tar.lz passt-fb59cfc9093b2c68d5fa65bb6eb4d4042dab0593.tar.xz passt-fb59cfc9093b2c68d5fa65bb6eb4d4042dab0593.tar.zst passt-fb59cfc9093b2c68d5fa65bb6eb4d4042dab0593.zip |
contrib/fedora: Use pre-processing macros in spec file
...they seem to be supported by COPR now and make things simpler.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib/fedora/rpkg.macros')
-rw-r--r-- | contrib/fedora/rpkg.macros | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/fedora/rpkg.macros b/contrib/fedora/rpkg.macros new file mode 100644 index 0000000..9e0cd78 --- /dev/null +++ b/contrib/fedora/rpkg.macros @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: AGPL-3.0-or-later +# +# PASST - Plug A Simple Socket Transport +# for qemu/UNIX domain socket mode +# +# PASTA - Pack A Subtle Tap Abstraction +# for network namespace/tap device mode +# +# contrib/fedora/rpkg.macros - rpkg macros (for COPR builds) +# +# Copyright (c) 2022 Red Hat GmbH +# Author: Stefano Brivio <sbrivio@redhat.com> + +function git_version { + printf "0.git.%s.%s" "$(date -u -I | tr - _)" "$(git rev-parse --short HEAD)" +} |