1
0
mirror of https://passt.top/passt synced 2024-12-22 21:55:22 +00:00

fedora: Change source URL to HEAD link with explicit commit SHA

This is required as Fedora doesn't accept a temporary pointer to
a source URL.

Reported-by: Ralf Corsepius <rc040203@freenet.de>
Reported-by: Artur Frenszek-Iwicki <fedora@svgames.pl>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2022-08-18 21:04:24 +02:00
parent 31031d20e2
commit ebf9009361
2 changed files with 6 additions and 2 deletions

View File

@ -18,7 +18,7 @@ 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-HEAD.tar.xz
Source: https://passt.top/passt/snapshot/passt-{{{ git_head }}}.tar.xz
BuildRequires: gcc, make, checkpolicy, selinux-policy-devel
@ -43,7 +43,7 @@ Requires(preun): policycoreutils, %{name}
This package adds SELinux enforcement to passt(1) and pasta(1).
%prep
%setup -q -n passt-HEAD
%setup -q -n passt-{{{ git_head }}}
%build
export CFLAGS="%{optflags}"

View File

@ -15,6 +15,10 @@ function git_version {
printf "0.git.%s.%s" "$(date -u -I | tr - _)" "$(git rev-parse --short HEAD)"
}
function git_head {
git rev-parse HEAD
}
function passt_git_changelog_entry {
__from="${2}"
__to="${1}"