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