From b2d45578e7cb3b6292679c314cd635d1d645415b Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Tue, 23 Jan 2018 23:19:02 +0100 Subject: [PATCH] build/ops: rpm: package byte-compiled ceph-rest-api This is only necessary on Python 3-only systems. Signed-off-by: Nathan Cutler --- ceph.spec.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ceph.spec.in b/ceph.spec.in index 89618476ec8..ac506360b68 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1379,7 +1379,12 @@ fi %{_bindir}/ceph-monstore-tool %{_mandir}/man8/ceph-mon.8* %{_mandir}/man8/ceph-rest-api.8* +%if 0%{with python2} %{python_sitelib}/ceph_rest_api.py* +%else +%{python3_sitelib}/ceph_rest_api.py +%{python3_sitelib}/__pycache__/ceph_rest_api.cpython*.py* +%endif %{_unitdir}/ceph-mon@.service %{_unitdir}/ceph-mon.target %attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/mon