Fix use of OFFLINE_BUILD in warewulf.spec
warewulf.spec appears to expect that an offline build would be requested with `--with offline`; but conditional builds are not supported by mock. Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
committed by
Christian Goll
parent
0d3eeb09e5
commit
db9a81da73
@@ -17,7 +17,6 @@ Release: @RELEASE@%{?dist}
|
|||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
URL: https://github.com/hpcng/warewulf
|
URL: https://github.com/hpcng/warewulf
|
||||||
Source: https://github.com/hpcng/warewulf/releases/download/v%{version}/warewulf-%{version}.tar.gz
|
Source: https://github.com/hpcng/warewulf/releases/download/v%{version}/warewulf-%{version}.tar.gz
|
||||||
%{?with_offline:Source2: vendor.tgz}
|
|
||||||
|
|
||||||
ExclusiveOS: linux
|
ExclusiveOS: linux
|
||||||
|
|
||||||
@@ -69,8 +68,7 @@ system for large clusters of bare metal and/or virtual systems.
|
|||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{?with_offline:OFFLINE_BUILD=1}
|
export OFFLINE_BUILD=1
|
||||||
# Install to sharedstatedir by redirecting LOCALSTATEDIR
|
|
||||||
make defaults \
|
make defaults \
|
||||||
PREFIX=%{_prefix} \
|
PREFIX=%{_prefix} \
|
||||||
BINDIR=%{_bindir} \
|
BINDIR=%{_bindir} \
|
||||||
@@ -91,6 +89,7 @@ make
|
|||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
export OFFLINE_BUILD=1
|
||||||
export NO_BRP_STALE_LINK_ERROR=yes
|
export NO_BRP_STALE_LINK_ERROR=yes
|
||||||
make install \
|
make install \
|
||||||
DESTDIR=%{buildroot}
|
DESTDIR=%{buildroot}
|
||||||
|
|||||||
Reference in New Issue
Block a user