Move all package options to bconds
This commit is contained in:
parent
702b044c20
commit
3b4ba770c1
@ -1,11 +1,16 @@
|
|||||||
# secure boot support is for RHEL only
|
# secure boot support is for RHEL only
|
||||||
%if 0%{?rhel} >= 8
|
%if 0%{?rhel} >= 8
|
||||||
%global signzipl 1
|
%bcond_without signzipl
|
||||||
|
%else
|
||||||
|
%bcond_with signzipl
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?fedora}
|
%if 0%{?fedora}
|
||||||
%global with_pandoc 1
|
%bcond_without pandoc
|
||||||
|
%else
|
||||||
|
%bcond_with pandoc
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%bcond_without rust
|
%bcond_without rust
|
||||||
|
|
||||||
Name: s390utils
|
Name: s390utils
|
||||||
@ -31,7 +36,7 @@ Source23: 20-zipl-kernel.install
|
|||||||
Source24: 52-zipl-rescue.install
|
Source24: 52-zipl-rescue.install
|
||||||
Source25: 91-zipl.install
|
Source25: 91-zipl.install
|
||||||
|
|
||||||
%if 0%{?signzipl}
|
%if %{with signzipl}
|
||||||
%define pesign_name redhatsecureboot302
|
%define pesign_name redhatsecureboot302
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -110,7 +115,7 @@ make \
|
|||||||
%if %{without rust}
|
%if %{without rust}
|
||||||
HAVE_CARGO=0 \
|
HAVE_CARGO=0 \
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?with_pandoc}
|
%if %{with pandoc}
|
||||||
ENABLE_DOC=1 \
|
ENABLE_DOC=1 \
|
||||||
%endif
|
%endif
|
||||||
NO_PIE_LDFLAGS="" \
|
NO_PIE_LDFLAGS="" \
|
||||||
@ -125,7 +130,7 @@ make install \
|
|||||||
%if %{without rust}
|
%if %{without rust}
|
||||||
HAVE_CARGO=0 \
|
HAVE_CARGO=0 \
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?with_pandoc}
|
%if %{with pandoc}
|
||||||
ENABLE_DOC=1 \
|
ENABLE_DOC=1 \
|
||||||
%endif
|
%endif
|
||||||
DESTDIR=%{buildroot} \
|
DESTDIR=%{buildroot} \
|
||||||
@ -135,7 +140,7 @@ make install \
|
|||||||
V=1
|
V=1
|
||||||
|
|
||||||
# sign the stage3 bootloader
|
# sign the stage3 bootloader
|
||||||
%if 0%{?signzipl}
|
%if %{with signzipl}
|
||||||
if [ -x /usr/bin/rpm-sign ]; then
|
if [ -x /usr/bin/rpm-sign ]; then
|
||||||
pushd %{buildroot}/lib/s390-tools/
|
pushd %{buildroot}/lib/s390-tools/
|
||||||
rpm-sign --key "%{pesign_name}" --lkmsign stage3.bin --output stage3.signed
|
rpm-sign --key "%{pesign_name}" --lkmsign stage3.bin --output stage3.signed
|
||||||
@ -892,7 +897,7 @@ Summary: Use multipath information for re-IPL path failover
|
|||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: bash
|
BuildRequires: bash
|
||||||
BuildRequires: coreutils
|
BuildRequires: coreutils
|
||||||
%if 0%{?with_pandoc}
|
%if %{with pandoc}
|
||||||
BuildRequires: pandoc
|
BuildRequires: pandoc
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: gawk
|
BuildRequires: gawk
|
||||||
@ -913,7 +918,7 @@ reconfigures the FCP re-IPL settings to use an operational path.
|
|||||||
|
|
||||||
%files chreipl-fcp-mpath
|
%files chreipl-fcp-mpath
|
||||||
%doc chreipl-fcp-mpath/README.md
|
%doc chreipl-fcp-mpath/README.md
|
||||||
%if 0%{?with_pandoc}
|
%if %{with pandoc}
|
||||||
%doc chreipl-fcp-mpath/README.html
|
%doc chreipl-fcp-mpath/README.html
|
||||||
%endif
|
%endif
|
||||||
%dir %{_prefix}/lib/chreipl-fcp-mpath/
|
%dir %{_prefix}/lib/chreipl-fcp-mpath/
|
||||||
|
Loading…
Reference in New Issue
Block a user