Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package kanidm for openSUSE:Factory checked in at 2026-02-12 17:26:24 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kanidm (Old) and /work/SRC/openSUSE:Factory/.kanidm.new.1977 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kanidm" Thu Feb 12 17:26:24 2026 rev:62 rq:1332337 version:1.8.6~git0.268c71d0a Changes: -------- --- /work/SRC/openSUSE:Factory/kanidm/kanidm.changes 2026-02-10 21:12:39.740165897 +0100 +++ /work/SRC/openSUSE:Factory/.kanidm.new.1977/kanidm.changes 2026-02-12 17:27:20.739236150 +0100 @@ -1,0 +2,6 @@ +Tue Feb 10 11:35:49 UTC 2026 - Marcus Rueckert <[email protected]> + +- Enable python bindings for the primary python version on newer + distributions and 3.11 on 15.x + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kanidm.spec ++++++ --- /var/tmp/diff_new_pack.TDqM1f/_old 2026-02-12 17:27:22.287301823 +0100 +++ /var/tmp/diff_new_pack.TDqM1f/_new 2026-02-12 17:27:22.287301823 +0100 @@ -20,6 +20,13 @@ %define kanidm_profile release_linux %define configdir %{_sysconfdir}/kanidm +%bcond_without pykanidm +%if %{defined primary_python} +%global pythons %{primary_python} +%else +%global pythons python311 +%endif + Name: kanidm Version: 1.8.6~git0.268c71d0a Release: 0 @@ -51,6 +58,13 @@ %else BuildRequires: libopenssl-3-devel %endif +%if %{with pykanidm} +BuildRequires: %{pythons}-flit-core +BuildRequires: %{pythons}-pdm-backend +BuildRequires: %{pythons}-pip +BuildRequires: %{pythons}-poetry-core +BuildRequires: %{pythons}-wheel +%endif Requires: %{name}-clients Requires: %{name}-unixd-clients @@ -106,6 +120,19 @@ %description docs Documentation for using and configuring Kanidm. +%if %{with pykanidm} +%package -n %{pythons}-pykanidm +Summary: Python API to talk to kanidm +License: MPL-2.0 +Requires: %{pythons}-Authlib >= 1.2.0 +Requires: %{pythons}-aiohttp >= 3.8.1 +Requires: %{pythons}-pydantic >= 2.0.0 +Requires: %{pythons}-toml >= 0.10.2 + +%description -n %{pythons}-pykanidm +Python API to talk to kanidm. +%endif + %prep %setup -q -n kanidm-%{version} -a 0 %setup -q -n kanidm-%{version} -a 1 -D -T @@ -128,6 +155,12 @@ %{cargo_build} --features=kanidm_unix_int/tpm,kanidm_unix_int/selinux %endif +%if %{with pykanidm} +cd pykanidm +%pyproject_wheel +cd .. +%endif + %install install -D -d -m 0755 %{buildroot}%{_sysconfdir} install -D -d -m 0755 %{buildroot}%{_sysconfdir}/zsh_completion.d @@ -183,6 +216,11 @@ cp -r %{_builddir}/kanidm-%{version}/book/src/ %{buildroot}%{_datadir}/kanidm/docs/ cp -r %{_builddir}/kanidm-%{version}/server/core/static %{buildroot}%{_datadir}/kanidm/ui/hpkg +%if %{with pykanidm} +cd pykanidm +%pyproject_install +cd .. +%endif ## End install %if 0%{?rhel} > 7 || 0%{?fedora} @@ -309,3 +347,9 @@ %dir %{_datadir}/kanidm/docs %doc %{_datadir}/kanidm/docs/* +%if %{with pykanidm} +%files -n %{pythons}-pykanidm +%{python_sitelib}/kanidm-*.dist-info +%{python_sitelib}/kanidm/ +%endif +
