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:
parent
31031d20e2
commit
ebf9009361
2 changed files with 6 additions and 2 deletions
|
@ -18,7 +18,7 @@ Summary: User-mode networking daemons for virtual machines and namespaces
|
||||||
License: AGPLv3+ and BSD
|
License: AGPLv3+ and BSD
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
URL: https://passt.top/
|
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
|
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).
|
This package adds SELinux enforcement to passt(1) and pasta(1).
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n passt-HEAD
|
%setup -q -n passt-{{{ git_head }}}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags}"
|
||||||
|
|
|
@ -15,6 +15,10 @@ function git_version {
|
||||||
printf "0.git.%s.%s" "$(date -u -I | tr - _)" "$(git rev-parse --short HEAD)"
|
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 {
|
function passt_git_changelog_entry {
|
||||||
__from="${2}"
|
__from="${2}"
|
||||||
__to="${1}"
|
__to="${1}"
|
||||||
|
|
Loading…
Reference in a new issue