diff --git a/dmlite.spec b/dmlite.spec index 857b7ab..a96cd4a 100644 --- a/dmlite.spec +++ b/dmlite.spec @@ -67,6 +67,12 @@ %global python2_pkgversion 2 %endif +# Handle new cmake macros + +%if %{?fedora}%{!?fedora:99} <= 32 || %{?rhel}%{!?rhel:0} >= 7 + %undefine __cmake_in_source_build + %undefine __cmake3_in_source_build +%endif %{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo 0-0)}}