diff --git a/testcloud.spec b/testcloud.spec index 9b2f081..a65381c 100644 --- a/testcloud.spec +++ b/testcloud.spec @@ -3,7 +3,7 @@ Name: testcloud Version: 0.1.15 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Tool for running cloud images locally License: GPLv2+ @@ -17,7 +17,11 @@ Requires(pre): shadow-utils # testcloud integrates with libvirt Requires: libvirt +%if 0%{?fedora} <= 26 Requires: libvirt-python +%else +Requires: python2-libvirt +%endif # This is used to manipulate images on disk Requires: libguestfs @@ -29,7 +33,11 @@ Requires: python2-requests Requires: polkit Requires: python2-jinja2 +%if 0%{?fedora} <= 26 BuildRequires: libvirt-python +%else +BuildRequires: python2-libvirt +%endif BuildRequires: python2-devel BuildRequires: python2-jinja2 BuildRequires: python2-mock @@ -102,6 +110,10 @@ install conf/99-testcloud-nonroot-libvirt-access.rules %{buildroot}%{_sysconfdir %{_bindir}/testcloud %changelog +* Fri Feb 02 2018 Frantisek Zatloukal - 0.1.15-2 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + * Thu Oct 26 2017 Kamil Páral - 0.1.15-1 - keep backwards compatible API