Fix building on RHEL/CentOS 7

This commit is contained in:
Robert Scheck 2023-11-04 21:37:48 +01:00
commit 39ba9ebd29

View file

@ -43,7 +43,11 @@ developing applications that use %{name}.
%build
%if 0%{?rhel} && 0%{?rhel} < 8
%global __cmake %{_bindir}/cmake3
%global cmake %cmake3
%global cmake_build %cmake3_build
%global cmake_install %cmake3_install
# Simplified https://github.com/ampache-browser/ampache_browser/pull/7
sed -e 's/Qt::/Qt5::/g' -i CMakeLists.txt
%endif
%cmake -D USE_QT6=OFF .