From: Kefu Chai Date: Thu, 4 Apr 2019 04:07:25 +0000 (+0800) Subject: rpm: pass %{python3_version} to cmake X-Git-Tag: v13.2.6~84^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a81d1653aeca959a4003427819ae4116d2129fb4;p=ceph.git rpm: pass %{python3_version} to cmake 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 (cherry picked from commit 7681a38ce51743a19ec5679d49b362f04e271ddb) --- diff --git a/ceph.spec.in b/ceph.spec.in index d4a7c7369f42c..bc137f7d4c9e3 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -910,7 +910,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 \