Removed useless tests flag.

epel9
Vitaly Zaitsev 3 years ago
parent 4a0adfa57a
commit d117e4ddae
No known key found for this signature in database
GPG Key ID: BF99FC6DD45AB90A

@ -1,5 +1,4 @@
%undefine __cmake_in_source_build
%global tests 1
%global use_qt5 1
%ifnarch s390x
%global use_qt6 1
@ -27,33 +26,26 @@ URL: https://github.com/danvratil/%{name}
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
%if 0%{?use_qt5}
BuildRequires: cmake(Qt5Concurrent)
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5DBus)
BuildRequires: cmake(Qt5Test)
BuildRequires: cmake(Qt5Widgets)
%endif
%if 0%{?use_qt6}
BuildRequires: cmake(Qt6Concurrent)
BuildRequires: cmake(Qt6Core)
BuildRequires: cmake(Qt6DBus)
BuildRequires: cmake(Qt6Test)
BuildRequires: cmake(Qt6Widgets)
%endif
BuildRequires: cmake
BuildRequires: dbus-x11
BuildRequires: gcc-c++
BuildRequires: ninja-build
%if 0%{?tests}
%if 0%{?use_qt5}
BuildRequires: cmake(Qt5Concurrent)
BuildRequires: cmake(Qt5Test)
%endif
%if 0%{?use_qt6}
BuildRequires: cmake(Qt6Concurrent)
BuildRequires: cmake(Qt6Test)
%endif
BuildRequires: dbus-x11
%endif
%description %_description
%if 0%{?use_qt5}
@ -95,13 +87,8 @@ mkdir %{qt5_build_dir} && pushd %{qt5_build_dir}
-S'..' \
-DCMAKE_BUILD_TYPE=Release \
-DUSE_QT_VERSION:STRING=5 \
%if 0%{?tests}
-DBUILD_TESTING:BOOL=ON \
-DQCORO_BUILD_EXAMPLES:BOOL=ON \
%else
-DBUILD_TESTING:BOOL=OFF \
-DQCORO_BUILD_EXAMPLES:BOOL=OFF \
%endif
-DQCORO_ENABLE_ASAN:BOOL=OFF \
-DQCORO_WITH_QTDBUS:BOOL=ON \
-DQCORO_WITH_QTNETWORK:BOOL=ON
@ -115,13 +102,8 @@ mkdir %{qt6_build_dir} && pushd %{qt6_build_dir}
-S'..' \
-DCMAKE_BUILD_TYPE=Release \
-DUSE_QT_VERSION:STRING=6 \
%if 0%{?tests}
-DBUILD_TESTING:BOOL=ON \
-DQCORO_BUILD_EXAMPLES:BOOL=ON \
%else
-DBUILD_TESTING:BOOL=OFF \
-DQCORO_BUILD_EXAMPLES:BOOL=OFF \
%endif
-DQCORO_ENABLE_ASAN:BOOL=OFF \
-DQCORO_WITH_QTDBUS:BOOL=ON \
-DQCORO_WITH_QTNETWORK:BOOL=ON
@ -142,7 +124,6 @@ pushd %{qt6_build_dir}
popd
%endif
%if 0%{?tests}
%check
%if 0%{?use_qt5}
pushd %{qt5_build_dir}
@ -155,7 +136,6 @@ pushd %{qt6_build_dir}
%ctest --timeout 3600 --exclude-regex '(qcoroprocess|qcoroabstractsocket|qcorolocalsocket)'
popd
%endif
%endif
%if 0%{?use_qt5}
%files qt5

Loading…
Cancel
Save