diff --git a/SPECS/pycairo.spec b/SPECS/pycairo.spec index be0c339..2c89074 100644 --- a/SPECS/pycairo.spec +++ b/SPECS/pycairo.spec @@ -1,3 +1,5 @@ +%bcond_without tests + Name: pycairo Version: 1.16.3 Release: 6%{?dist} @@ -10,7 +12,9 @@ Source0: https://github.com/pygobject/pycairo/releases/download/v%{version}/pyca BuildRequires: cairo-devel BuildRequires: pkgconfig BuildRequires: python3-devel +%if %{with tests} BuildRequires: python3-pytest +%endif %description Python bindings for the cairo library. @@ -40,8 +44,10 @@ libraries so that they interoperate with py3cairo. %install %py3_install +%if %{with tests} %check %{__python3} setup.py test +%endif %files -n python3-cairo %license COPYING*