# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1492174990 -7200
#      Fri Apr 14 15:03:10 2017 +0200
# Node ID 1a9a5f90b02556be84c5f2a5a7e21620f4b16c6b
# Parent  4c7e9c37ea8f0e7da1d82bf784ca3353bbf9d83f
[pkg/centos] Include site-packages files as expected

First stop removing them (was done for legacy cube) then register them.

diff --git a/cubicweb-elasticsearch.spec b/cubicweb-elasticsearch.spec
--- a/cubicweb-elasticsearch.spec
+++ b/cubicweb-elasticsearch.spec
@@ -35,8 +35,6 @@
 
 %install
 %{__python} setup.py --quiet install --no-compile --prefix=%{_prefix} --root="$RPM_BUILD_ROOT"
-# remove generated .egg-info file
-rm -rf $RPM_BUILD_ROOT/usr/lib/python*
 
 
 %clean
@@ -44,3 +42,4 @@
 
 %files
 %defattr(-, root, root)
+%{_python_sitelib}/*