Fix ELN build

In order to override the Makefile's `DISTRO` definition, it needs to be passed as an argument rather than in the environment.
This commit is contained in:
Yaakov Selkowitz 2022-11-23 16:32:59 +00:00
parent b18d040a41
commit c902bd61f4

View File

@ -103,13 +103,7 @@ Support for MPIs linked with PSM versions < 2
%{make_build}
%install
%if 0%{?fedora}
export DISTRO=fedora
%endif
%if 0%{?rhel}
export DISTRO=rhel
%endif
%make_install
%make_install DISTRO=%{?rhel:rhel}%{!?rhel:fedora}
rm -f %{buildroot}%{_libdir}/*.a
%ldconfig_scriptlets