diff --git a/hare.spec b/hare.spec index 488eb61..01b707c 100644 --- a/hare.spec +++ b/hare.spec @@ -15,7 +15,7 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # - +%bcond_without test Name: hare Release: 0 Version: 1701471445.901444ae @@ -112,11 +112,13 @@ export PLATFORM="linux" export ARCH="%{_arch}" make %{?_smp_mflags} DESTDIR="%{buildroot}" install +%if %{with test} %check export CFLAGS="%optflags" export PLATFORM="linux" export ARCH="%{_arch}" make %{?_smp_mflags} check +%endif %files %license COPYING