Update spec file to build SLE
@@ -13,15 +13,29 @@ ExclusiveArch: x86_64
Requires: libipmctl%{?_isa} = %{version}-%{release}
BuildRequires: pkgconfig(libndctl)
BuildRequires: cmake
+
%if 0%{?fedora}
BuildRequires: python2
%endif
-%if 0%{?rhel}
-BuildRequires: python
+
+%if 0%{?rhel} == 8
+BuildRequires: python3
%endif
+
+
BuildRequires: gcc
BuildRequires: gcc-c++
+
+%if 0%{?suse_version}
+BuildRequires: ruby2.5-rubygem-asciidoctor
+%else
+ %if 0%{?rhel} == 8
+BuildRequires: rubygems
+ %else
BuildRequires: asciidoctor
+ %endif
+%endif
+
Obsoletes: ixpdimm-cli < 01.00.00.3000
%description
