diff --git a/kf5.spec b/kf5.spec index 562592a..2ef525f 100644 --- a/kf5.spec +++ b/kf5.spec @@ -51,8 +51,8 @@ mkdir -p %{buildroot}%{_sysconfdir}/xdg/plasma-workspace/{env,shutdown} install -Dpm644 %{_sourcedir}/macros.kf5 %{buildroot}%{_rpmconfigdir}/macros.d/macros.kf5 sed -i \ -e "s|@@KF5_VERSION@@|%{version}|g" \ -%if 0%{?rhel} || 0%{?rhel} > 7 - -e 's|rhel:%{__cmake3}|rhel:%{__cmake}|' \ +%if 0%{?rhel} && 0%{?rhel} > 7 + -e 's|%{?fedora:%{__cmake}}%{?rhel:%{__cmake3}}| %{__cmake}|' \ %endif %{buildroot}%{_rpmconfigdir}/macros.d/macros.kf5