make tests a with flag

This commit is contained in:
Tom spot Callaway 2021-08-17 16:29:27 -04:00
parent 15be74b1a1
commit 3f0db8b75d

View File

@ -1,3 +1,5 @@
%bcond_with tests
Name: rpmlint
Version: 2.1.0
Release: 1%{?dist}
@ -51,7 +53,9 @@ mkdir -p %{buildroot}%{_sysconfdir}/xdg/rpmlint/
cp -a %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{buildroot}%{_sysconfdir}/xdg/rpmlint/
%check
%if %{with tests}
%pytest
%endif
%files
%license COPYING