From fb59cfc9093b2c68d5fa65bb6eb4d4042dab0593 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Tue, 7 Jun 2022 17:44:30 +0200 Subject: 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 --- contrib/fedora/rpkg.macros | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 contrib/fedora/rpkg.macros (limited to 'contrib/fedora/rpkg.macros') 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 + +function git_version { + printf "0.git.%s.%s" "$(date -u -I | tr - _)" "$(git rev-parse --short HEAD)" +} -- cgit v1.2.3