[packages/python3-krb5] - new

qboosh qboosh at pld-linux.org
Sat Apr 18 21:56:14 CEST 2026


commit a43524b2605f7f6d945a9dda68e66c4a19b812d7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Apr 18 21:56:44 2026 +0200

    - new

 python3-krb5.spec | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 81 insertions(+)
---
diff --git a/python3-krb5.spec b/python3-krb5.spec
new file mode 100644
index 0000000..a92f6a8
--- /dev/null
+++ b/python3-krb5.spec
@@ -0,0 +1,81 @@
+#
+# Conditional build:
+%bcond_with	krb5	# MIT Kerberos instead of Heimdal
+%bcond_with	tests	# unit tests
+
+Summary:	Kerberos API bindings for Python
+Summary(pl.UTF-8):	Wiązania API Kerberosa dla Pythona
+Name:		python3-krb5
+Version:	0.9.0
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/krb5/
+Source0:	https://files.pythonhosted.org/packages/source/k/krb5/krb5-%{version}.tar.gz
+# Source0-md5:	2c9385c73c96e40dc4d9de0b0ee6cdbb
+URL:		https://pypi.org/project/krb5/
+%if %{with krb5}
+BuildRequires:	krb5-devel >= 1.17
+%else
+BuildRequires:	heimdal-devel
+%endif
+BuildRequires:	python3-Cython >= 3.2.1
+BuildRequires:	python3-devel >= 1:3.9
+BuildRequires:	python3-setuptools >= 1:42.0.0
+%if %{with tests}
+BuildRequires:	python3-k5test
+BuildRequires:	python3-pytest
+# kadmin tool
+%if %{with krb5}
+BuildRequires:	krb5-server >= 1.17
+%else
+BuildRequires:	heimdal-devel
+%endif
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.9
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This library provides Python functions that wraps the Kerberos 5 C
+API. Due to the complex nature of this API it is highly recommended to
+use something like gssapi module, which exposes the Kerberos
+authentication details through GSSAPI.
+
+%description -l pl.UTF-8
+Ta biblioteka udostępnia funkcje Pythona obudowujące API C Kerberosa
+5. Ze względu na złożoną naturę tego API zalecane jest używanie czegoś
+w rodzaju modułu gssapi, który udostępnia szczegóły uwierzytelniania
+Kerberos poprzez GSSAPI.
+
+%prep
+%setup -q -n krb5-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(readlink -f build-3/lib.*) \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md LICENSE README.md
+%dir %{py3_sitedir}/krb5
+%{py3_sitedir}/krb5/*.py
+%{py3_sitedir}/krb5/*.pyi
+%{py3_sitedir}/krb5/*.so
+%{py3_sitedir}/krb5/py.typed
+%{py3_sitedir}/krb5/__pycache__
+%{py3_sitedir}/krb5-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-krb5.git/commitdiff/a43524b2605f7f6d945a9dda68e66c4a19b812d7



More information about the pld-cvs-commit mailing list