From bffb41de96bf1b773732bf853804c11ab0c9f752 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Wed, 11 Jan 2023 05:24:15 +0000 Subject: [PATCH] Avoid pandoc dependency in RHEL builds --- nvml.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/nvml.spec b/nvml.spec index 3dad3af..c7ff7b0 100644 --- a/nvml.spec +++ b/nvml.spec @@ -26,6 +26,12 @@ # pmemcheck is not packaged by Fedora %bcond_with pmemcheck +%if 0%{?rhel} +%bcond_with pandoc +%else +%bcond_without pandoc +%endif + %define min_libfabric_ver 1.4.2 %define min_ndctl_ver 60.1 %define upstreamversion 1.12.1 @@ -49,8 +55,6 @@ BuildRequires: automake BuildRequires: man BuildRequires: pkgconfig BuildRequires: python3 -BuildRequires: pandoc -BuildRequires: groff BuildRequires: cmake %if %{with ndctl} @@ -63,6 +67,11 @@ BuildRequires: ndctl BuildRequires: libfabric-devel >= %{min_libfabric_ver} %endif +%if %{with pandoc} +BuildRequires: groff +BuildRequires: pandoc +%endif + # for tests BuildRequires: gdb BuildRequires: bc