aboutgitcodebugslistschat
path: root/contrib/fedora/rpkg.macros
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/fedora/rpkg.macros')
-rw-r--r--contrib/fedora/rpkg.macros16
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)"
+}