diff --git a/avahi.spec b/avahi.spec index 76231ca..0188edb 100644 --- a/avahi.spec +++ b/avahi.spec @@ -1,4 +1,5 @@ %bcond_with bootstrap +%bcond_without check %if %{without bootstrap} %{?!WITH_MONO: %global WITH_MONO 1} @@ -487,6 +488,9 @@ NOCONFIGURE=1 ./autogen.sh --enable-shared=yes \ --enable-static=no \ --disable-silent-rules \ +%if %{with check} + --enable-tests \ +%endif %if %{WITH_GTK2} --enable-gtk \ %else @@ -576,6 +580,9 @@ rm -fv %{buildroot}%{_sysconfdir}/rc.d/init.d/avahi-dnsconfd %check +%if %{with check} + %make_build check +%endif %if %{without bootstrap} for i in %{buildroot}%{_datadir}/applications/b*.desktop ; do desktop-file-validate $i @@ -872,6 +879,7 @@ exit 0 %changelog * Sun Mar 19 2023 Petr Menšík - 0.8-22 +- Enable unit tests during check - Prevent crashes on some invalid DBus calls - Provide versioned howl compatibility package - Correct bootstrap option