diff options
Diffstat (limited to 'libvirt-python.spec.in')
| -rw-r--r-- | libvirt-python.spec.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libvirt-python.spec.in b/libvirt-python.spec.in index ac399cb..25d22cd 100644 --- a/libvirt-python.spec.in +++ b/libvirt-python.spec.in @@ -14,8 +14,10 @@ License: LGPLv2+ Group: Development/Libraries BuildRequires: libvirt-devel >= @C_VERSION@ BuildRequires: python-devel +BuildRequires: python-nose %if %{with_python3} BuildRequires: python3-devel +BuildRequires: python3-nose %endif %if %{with_python3} @@ -60,6 +62,12 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build %endif rm -f %{buildroot}%{_libdir}/python*/site-packages/*egg-info +%check +%{__python} setup.py test +%if %{with_python3} +%{__python3} setup.py test +%endif + %files %defattr(-,root,root) %doc ChangeLog AUTHORS NEWS README COPYING COPYING.LESSER examples/ |
