From 44379e52f65437d08ff202131ea250e631e06b9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Matos?= Date: Tue, 4 Aug 2020 18:30:32 +0100 Subject: [PATCH] Make spec behave similarly to F33 on older releases (EPEL included) --- armadillo.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/armadillo.spec b/armadillo.spec index be90003..bb4580f 100644 --- a/armadillo.spec +++ b/armadillo.spec @@ -13,6 +13,10 @@ Source: http://sourceforge.net/projects/arma/files/%{name}-%{version}.ta %define old_epel 0 %endif +%if (0%{?rhel} || (0%{?fedora} && 0%{?fedora} < 33)) +%undefine __cmake_in_source_build +%endif + BuildRequires: gcc-c++ BuildRequires: cmake, lapack-devel, arpack-devel %if %{old_epel} == 0