diff --git a/yum.spec b/yum.spec index 324a0c5..8016d22 100644 --- a/yum.spec +++ b/yum.spec @@ -1,6 +1,7 @@ %define move_yum_conf_back 1 %define auto_sitelib 1 %define yum_updatesd 0 +%define disable_check 1 %if %{auto_sitelib} @@ -146,6 +147,11 @@ Install this package if you want auto yum updates nightly via cron. %build make +%if !%{disable_check} +%check +make check +%endif + %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT @@ -267,7 +273,7 @@ exit 0 %{_sysconfdir}/bash_completion.d %dir %{_datadir}/yum-cli %{_datadir}/yum-cli/* -%if !%{yum_updatesd} +%if %{yum_updatesd} %exclude %{_datadir}/yum-cli/yumupd.py* %endif %{_bindir}/yum