]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm: pass %{python3_version} to cmake
authorKefu Chai <kchai@redhat.com>
Thu, 4 Apr 2019 04:07:25 +0000 (12:07 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 10 Apr 2019 09:57:08 +0000 (17: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 d4a7c7369f42cc344d8e2b00351cb88805d10078..bc137f7d4c9e3393bc8fbc841c89784f8c78200e 100644 (file)
@@ -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 \