From 92ead705db81e605a112827ae03f1c6d03cac7fa Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Thu, 16 Apr 2026 13:47:04 -0400 Subject: [PATCH] ceph.spec.in: add new --with pypkg to be passed on to cmake 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 --- ceph.spec.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ceph.spec.in b/ceph.spec.in index 72a8a8f89572..780889d5e738 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -144,6 +144,7 @@ %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 -- 2.47.3