use correct logic of bcond for tests

This commit is contained in:
Sérgio M. Basto 2017-03-04 22:52:34 +00:00 committed by Igor Gnatenko
parent cce396ee08
commit 84491f805a

View File

@ -1,4 +1,4 @@
%bcond_with tests %bcond_without tests
# trim changelog included in binary rpms # trim changelog included in binary rpms
%global _changelog_trimtime %(date +%s -d "1 year ago") %global _changelog_trimtime %(date +%s -d "1 year ago")
@ -173,7 +173,7 @@ chrpath -d %{buildroot}%{_libdir}/libq%{name}.so*
rm -vf %{buildroot}%{python2_sitelib}/gpg/install_files.txt rm -vf %{buildroot}%{python2_sitelib}/gpg/install_files.txt
rm -vf %{buildroot}%{python3_sitelib}/gpg/install_files.txt rm -vf %{buildroot}%{python3_sitelib}/gpg/install_files.txt
%if ! %{with tests} %if %{with tests}
%check %check
make check make check
%endif %endif