diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2018-07-23 12:11:44 +0100 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2018-07-23 14:10:37 +0100 |
commit | 5ca2cb00187cb8089fdd26e3fe2f1522bbaca246 (patch) | |
tree | f3e15e5f2616e6cb26000d476f85dd93044aacd0 /libvirt-python.spec.in | |
parent | f2b3e946e2fcb7b6bededfc1a27f73ac382bda25 (diff) | |
download | libvirt-python-5ca2cb00187cb8089fdd26e3fe2f1522bbaca246.tar.gz |
rpm: use the versioned python2 macro names
The use of non-versioned python2 macro names is deprecated in Fedora
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'libvirt-python.spec.in')
-rw-r--r-- | libvirt-python.spec.in | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libvirt-python.spec.in b/libvirt-python.spec.in index f3940cc..589855e 100644 --- a/libvirt-python.spec.in +++ b/libvirt-python.spec.in @@ -58,7 +58,7 @@ BuildRequires: python3-lxml # Don't want provides for python shared objects %if %{with_python2} -%{?filter_provides_in: %filter_provides_in %{python_sitearch}/.*\.so} +%{?filter_provides_in: %filter_provides_in %{python2_sitearch}/.*\.so} %endif %if %{with_python3} %{?filter_provides_in: %filter_provides_in %{python3_sitearch}/.*\.so} @@ -118,7 +118,7 @@ exit 1 %endif %if %{with_python2} -CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build +CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build %endif %if %{with_python3} CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build @@ -126,7 +126,7 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build %install %if %{with_python2} -%{__python} setup.py install --skip-build --root=%{buildroot} +%{__python2} setup.py install --skip-build --root=%{buildroot} %endif %if %{with_python3} %{__python3} setup.py install --skip-build --root=%{buildroot} @@ -134,7 +134,7 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build %check %if %{with_python2} -%{__python} setup.py test +%{__python2} setup.py test %endif %if %{with_python3} %{__python3} setup.py test @@ -143,11 +143,11 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build %if %{with_python2} %files -n python2-libvirt %doc ChangeLog AUTHORS NEWS README COPYING COPYING.LESSER examples/ -%{python_sitearch}/libvirt.py* -%{python_sitearch}/libvirt_qemu.py* -%{python_sitearch}/libvirt_lxc.py* -%{python_sitearch}/libvirtmod* -%{python_sitearch}/*egg-info +%{python2_sitearch}/libvirt.py* +%{python2_sitearch}/libvirt_qemu.py* +%{python2_sitearch}/libvirt_lxc.py* +%{python2_sitearch}/libvirtmod* +%{python2_sitearch}/*egg-info %endif %if %{with_python3} |