From 3f5903ee3dfd94a4d999f7f7393a342700c0b357 Mon Sep 17 00:00:00 2001 From: jjohnson2 Date: Tue, 4 Nov 2014 10:41:22 -0500 Subject: [PATCH] Apply rpm conflict fix to client --- confluent_client/confluent_client.spec.tmpl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/confluent_client/confluent_client.spec.tmpl b/confluent_client/confluent_client.spec.tmpl index 3f692559..9b873688 100644 --- a/confluent_client/confluent_client.spec.tmpl +++ b/confluent_client/confluent_client.spec.tmpl @@ -27,7 +27,12 @@ a confluent server. python setup.py build %install -python setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES --install-scripts=/opt/confluent/bin --install-purelib=/opt/confluent/lib/python +python setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES.bare --install-scripts=/opt/confluent/bin --install-purelib=/opt/confluent/lib/python +for file in $(grep confluent/__init__.py INSTALLED_FILES.bare); do + rm $RPM_BUILD_ROOT/$file +done +grep -v confluent/__init__.py INSTALLED_FILES.bare > INSTALLED_FILES + %clean rm -rf $RPM_BUILD_ROOT