diff --git a/testcloud.spec b/testcloud.spec index 0653535..3003faf 100644 --- a/testcloud.spec +++ b/testcloud.spec @@ -3,7 +3,7 @@ Name: testcloud Version: 0.1.11 -Release: 1%{?dist} +Release: 3%{?dist} Summary: Tool for running cloud images locally License: GPLv2+ @@ -31,7 +31,8 @@ Requires: python-jinja2 Requires: net-tools BuildRequires: python2-devel -BuildRequires: pytest +BuildRequires: python2-pytest +BuildRequires: python-pytest-cov BuildRequires: python-setuptools # Provides: python2-testcloud @@ -51,6 +52,8 @@ getent group testcloud >/dev/null || groupadd testcloud %check %{__python2} setup.py test +# Remove compiled .py files from /etc after running unittests +rm -f %{buildroot}%{_sysconfdir}/testcloud/*.py{c,o} %build %{__python2} setup.py build @@ -92,10 +95,16 @@ install conf/99-testcloud-nonroot-libvirt-access.rules %{buildroot}%{_sysconfdir %attr(0644, root, root) %{_sysconfdir}/polkit-1/rules.d/99-testcloud-nonroot-libvirt-access.rules -%config(noreplace) %{_sysconfdir}/testcloud/settings.p* +%config(noreplace) %{_sysconfdir}/testcloud/settings.py %{_bindir}/testcloud %changelog +* Wed Feb 22 2017 Kamil Páral - 0.1.11-3 +- don't install py[co] files into /etc + +* Mon Feb 20 2017 Kamil Páral - 0.1.11-2 +- add python-pytest-cov builddep to run test suite during building + * Mon Feb 20 2017 Kamil Páral - 0.1.11-1 - make libvirt url configurable - avoid race condition during listing domains