diff --git a/python-uranium-lulzbot.spec b/python-uranium-lulzbot.spec index 37e02a3..4938339 100644 --- a/python-uranium-lulzbot.spec +++ b/python-uranium-lulzbot.spec @@ -41,6 +41,9 @@ BuildArch: noarch # We need to byte-compile it with Python 3 %global __python %{__python3} +# Get Fedora 33++ behavior on anything older +%undefine __cmake_in_source_build + %description Uranium is a Python framework for building 3D printing related applications. @@ -91,12 +94,12 @@ sed -i 's/"Language: ptbr\n"/"Language: pt_BR\n"/' resources/i18n/pt_BR/*.po echo '# empty' >> UM/Settings/ContainerRegistryInterface.py %build -%{cmake} . -make %{?_smp_mflags} -make doc +%cmake +%cmake_build +%cmake_build -- doc %install -make install DESTDIR=%{buildroot} +%cmake_install # Move the cmake files mv %{buildroot}%{_datadir}/cmake* %{buildroot}%{_datadir}/cmake