tweak rhel8+ cmake statement

epel8
Troy Dawson 5 years ago
parent e3b6a4f15d
commit 730bbb4a64

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

Loading…
Cancel
Save