From 1524d6fd43c29642f8e920f2fc7fc3a76fb536ae Mon Sep 17 00:00:00 2001 From: Susi Lehtola Date: Tue, 18 Sep 2018 18:49:55 +0200 Subject: [PATCH] Try to fix build --- pybind11.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pybind11.spec b/pybind11.spec index b477b96..6531bbf 100644 --- a/pybind11.spec +++ b/pybind11.spec @@ -9,6 +9,7 @@ %else %global python2_enabled 1 %endif + %global python3_enabled 1 @@ -133,9 +134,11 @@ make -C python3 check %{?_smp_mflags} %endif %install +# Doesn't matter if both installs run %if %{python2_enabled} %make_install -C python2 -%elif %{python3_enabled} +%endif +%if %{python3_enabled} %make_install -C python3 %endif # Force install to arch-ful directories instead.