From 860c0381a4609ef61fd5ca6a521943bd8d9eae83 Mon Sep 17 00:00:00 2001 From: Raphael Groner Date: Mar 25 2016 12:52:12 +0000 Subject: fix build conditional, so in check also --- diff --git a/krop.spec b/krop.spec index a4d52a3..041cd9d 100644 --- a/krop.spec +++ b/krop.spec @@ -72,7 +72,11 @@ desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{name}.desktop DESTDIR="%{buildroot}" appstream-util install %{name}.appdata.xml %check +%if %with py3 %{__python3} setup.py check +%else +%{__python2} setup.py check +%endif appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/*.appdata.xml