]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: add new --with pypkg to be passed on to cmake 68401/head
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 16 Apr 2026 17:47:04 +0000 (13:47 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Wed, 6 May 2026 13:33:31 +0000 (09:33 -0400)
Add a new --with pypkg option that passes WITH_PYPKG to cmake.
This allows building with the new (experimental) python packaging
support. If this proves useful a future change can consider enabling
by default in some conditions.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
ceph.spec.in

index 72a8a8f895721b64c801debe94828a4325b3a086..780889d5e738d876dfecc728dba58b50c4fc119e 100644 (file)
 %global _find_debuginfo_dwz_opts %{nil}
 %endif
 %bcond_with sccache
+%bcond_with pypkg
 
 %{!?_udevrulesdir: %global _udevrulesdir /lib/udev/rules.d}
 %{!?tmpfiles_create: %global tmpfiles_create systemd-tmpfiles --create}
@@ -1540,6 +1541,9 @@ cmake .. \
 %if %{with sccache}
     -DWITH_SCCACHE=ON \
 %endif
+%if 0%{with pypkg}
+    -DWITH_PYPKG:BOOL=ON \
+%endif
 %if 0%{with cephadm_bundling}
 %if 0%{with cephadm_pip_deps}
     -DCEPHADM_BUNDLED_DEPENDENCIES=pip
@@ -2587,7 +2591,7 @@ fi
 
 %files -n python%{python3_pkgversion}-ceph-common
 %{python3_sitelib}/ceph
-%{python3_sitelib}/ceph-*.egg-info
+%{python3_sitelib}/ceph-*.%{?with_pypkg:dist}%{!?with_pypkg:egg}-info
 
 %if 0%{with cephfs_shell}
 %files -n cephfs-shell