]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm: pass %{python3_version} to cmake 27382/head
authorKefu Chai <kchai@redhat.com>
Thu, 4 Apr 2019 04:07:25 +0000 (12:07 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 4 Apr 2019 15:57:07 +0000 (23:57 +0800)
to force cmake to use the python3 and python3 modules for building
python3 bindings

on the debian side, it's okay to continue using "-DWITH_PYTHON3=ON", as

- cmake does normalize "ON" to 3
- debian's cmake extension lives on /usr/lib/python3/dist-packages/
  not in a specific /usr/lib/python3.x/dist-packages directory

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 7681a38ce51743a19ec5679d49b362f04e271ddb)

ceph.spec.in

index 5844a5af3c5d0b5dc8dc95553bb3b92d97cc26a7..4981d69472eff3b68148914731fb392a1a6a3d73 100644 (file)
@@ -1112,7 +1112,7 @@ ${CMAKE} .. \
     -DCMAKE_INSTALL_DOCDIR=%{_docdir}/ceph \
     -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} \
     -DWITH_MANPAGE=ON \
-    -DWITH_PYTHON3=ON \
+    -DWITH_PYTHON3=%{python3_version} \
     -DWITH_MGR_DASHBOARD_FRONTEND=OFF \
 %if %{with python2}
     -DWITH_PYTHON2=ON \