aboutgitcodebugslistschat
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/fedora/passt.spec13
-rw-r--r--contrib/fedora/rpkg.conf15
-rw-r--r--contrib/fedora/rpkg.macros16
3 files changed, 38 insertions, 6 deletions
diff --git a/contrib/fedora/passt.spec b/contrib/fedora/passt.spec
index 4411271..ed5c4f6 100644
--- a/contrib/fedora/passt.spec
+++ b/contrib/fedora/passt.spec
@@ -12,12 +12,14 @@
# Author: Stefano Brivio <sbrivio@redhat.com>
Name: passt
-Version: 0.git.202206071425.67103ea
-Release: 0
+Version: {{{ git_version }}}
+Release: 0%{?dist}
Summary: User-mode networking daemons for virtual machines and namespaces
License: AGPLv3+ and BSD
+Group: System Environment/Daemons
URL: https://passt.top/
-Source: https://passt.top/passt/snapshot/passt-67103ea556da00106da900f20aac286511171ea2.tar.xz
+VCS: git://passt.top/passt
+Source: https://passt.top/passt/snapshot/passt-HEAD.tar.xz
BuildRequires: gcc, make, checkpolicy, selinux-policy-devel
@@ -42,7 +44,7 @@ Requires(preun): policycoreutils, %{name}
This package adds SELinux enforcement to passt(1) and pasta(1).
%prep
-%setup -q
+%setup -q -n passt-HEAD
%build
export CFLAGS="%{optflags}"
@@ -91,5 +93,4 @@ semodule -r pasta 2>/dev/null || :
%{_datadir}/selinux/packages/%{name}/pasta.pp
%changelog
-* Tue Jun 07 2022 Stefano Brivio <sbrivio@redhat.com> 0.git.202206071425.67103ea
-- Pro forma: example
+{{{ git_dir_changelog }}}
diff --git a/contrib/fedora/rpkg.conf b/contrib/fedora/rpkg.conf
new file mode 100644
index 0000000..2b88e8f
--- /dev/null
+++ b/contrib/fedora/rpkg.conf
@@ -0,0 +1,15 @@
+# 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.conf - Configuration file for rpkg (for COPR builds)
+#
+# Copyright (c) 2022 Red Hat GmbH
+# Author: Stefano Brivio <sbrivio@redhat.com>
+
+[rpkg]
+user_macros = "${git_props:root}/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 <sbrivio@redhat.com>
+
+function git_version {
+ printf "0.git.%s.%s" "$(date -u -I | tr - _)" "$(git rev-parse --short HEAD)"
+}