[libvirt] [libvirt-python PATCH v2] spec: Install egg-info with rpm package

Martin Kletzander mkletzan at redhat.com
Mon May 15 15:58:47 UTC 2017

This was being done due to now deprecated policy and that file should
be installed so that pip can recognize that the packages is already
installed in the system.

Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
 - Put each egg-info ito its respective RPM package

 libvirt-python.spec.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libvirt-python.spec.in b/libvirt-python.spec.in
index 5ad029281c52..fc30564133fe 100644
--- a/libvirt-python.spec.in
+++ b/libvirt-python.spec.in
@@ -65,7 +65,6 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
 %if %{with_python3}
 %{__python3} setup.py install --skip-build --root=%{buildroot}
-rm -f %{buildroot}%{_libdir}/python*/site-packages/*egg-info

 %{__python} setup.py test
@@ -80,6 +79,7 @@ rm -f %{buildroot}%{_libdir}/python*/site-packages/*egg-info

 %if %{with_python3}
 %files -n libvirt-python3
@@ -94,6 +94,7 @@ rm -f %{buildroot}%{_libdir}/python*/site-packages/*egg-info


More information about the libvir-list mailing list