[packages/python3-pyspnego] - new

qboosh qboosh at pld-linux.org
Sun Apr 19 08:30:10 CEST 2026


commit 857d107c27bb10fafe55c80280a7242bf7afb072
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Apr 19 08:30:40 2026 +0200

    - new

 python3-pyspnego.spec | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 75 insertions(+)
---
diff --git a/python3-pyspnego.spec b/python3-pyspnego.spec
new file mode 100644
index 0000000..0e3f347
--- /dev/null
+++ b/python3-pyspnego.spec
@@ -0,0 +1,75 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+Summary:	Windows Negotiate Authentication Client and Server
+Summary(pl.UTF-8):	Klient i serwer uwierzytelniania Windows Negotiate
+Name:		python3-pyspnego
+Version:	0.12.1
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/pyspnego/
+Source0:	https://files.pythonhosted.org/packages/source/p/pyspnego/pyspnego-%{version}.tar.gz
+# Source0-md5:	bdbd0013e9f7bd8d076c339af9c9a73b
+URL:		https://pypi.org/project/pyspnego/
+BuildRequires:	python3-build
+BuildRequires:	python3-modules >= 1:3.9
+BuildRequires:	python3-installer
+BuildRequires:	python3-setuptools >= 1:77.0.3
+%if %{with tests}
+BuildRequires:	python3-cryptography
+BuildRequires:	python3-gssapi >= 1.6.0
+# with MIT, to run kerberos auth tests
+#BuildRequires:	python3-k5test
+BuildRequires:	python3-krb5 >= 0.3.0
+BuildRequires:	python3-pytest
+BuildRequires:	python3-pytest-mock
+BuildRequires:	python3-ruamel.yaml
+# skip kerberos auth tests
+BuildConflicts:	python3-k5test
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.9
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Library to handle SPNEGO (Negotiate, NTLM, Kerberos) and CredSSP
+authentication. Also includes a packet parser that can be used to
+decode raw NTLM/SPNEGO/Kerberos tokens into a human readable format.
+
+%description -l pl.UTF-8
+Biblioteka do obsługi uwierzytelniania SPNEGO (Negotiate, NTLM,
+Kerberos) oraz CredSSP. Zawiera także analizator pakietów, którym
+można dekodować surowe tokeny NTLM/SPNEGO/Kerberos do postaci
+czytelnej przez człowieka.
+
+%prep
+%setup -q -n pyspnego-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_mock.plugin \
+PYTHONPATH=$(pwd)/src \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md LICENSE README.md
+%attr(755,root,root) %{_bindir}/pyspnego-parse
+%{py3_sitescriptdir}/spnego
+%{py3_sitescriptdir}/pyspnego-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pyspnego.git/commitdiff/857d107c27bb10fafe55c80280a7242bf7afb072



More information about the pld-cvs-commit mailing list