diff --git a/python-uranium.spec b/python-uranium.spec index f51d097..3d272fe 100644 --- a/python-uranium.spec +++ b/python-uranium.spec @@ -25,6 +25,9 @@ BuildRequires: python3-twisted BuildArch: noarch +# Get Fedora 33++ behavior on anything older +%undefine __cmake_in_source_build + %description Uranium is a Python framework for building 3D printing related applications. @@ -57,9 +60,9 @@ related applications. %build # there is no arch specific content, so we set LIB_SUFFIX to nothing # see https://github.com/Ultimaker/Uranium/commit/862a246bdfd7e25541b04a35406957612c6f4bb7 -%{cmake} -DLIB_SUFFIX:STR= . -make %{?_smp_mflags} -make doc +%cmake -DLIB_SUFFIX:STR= . +%cmake_build +%cmake_build -- doc %check %{__python3} -m pip freeze @@ -71,7 +74,7 @@ make doc %install -make install DESTDIR=%{buildroot} +%cmake_install # Move the cmake files mv %{buildroot}%{_datadir}/cmake* %{buildroot}%{_datadir}/cmake