]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
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)
commita81d1653aeca959a4003427819ae4116d2129fb4
tree319137d72250644ef6af7086bf4eb2df7bec8579
parentbba0caaa30b8ab44ba9b356bba878257df9cbec7
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 <kchai@redhat.com>
(cherry picked from commit 7681a38ce51743a19ec5679d49b362f04e271ddb)
ceph.spec.in