[packages/python3-nbxmpp] Up to 6.2.0

arekm arekm at pld-linux.org
Mon Sep 1 12:41:21 CEST 2025


commit 93c7bd30046d1da8e4960f5d27ec7a05f0f7e373
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Sep 1 12:41:01 2025 +0200

    Up to 6.2.0

 python-nbxmpp.spec  | 82 -----------------------------------------------------
 python3-nbxmpp.spec | 59 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 59 insertions(+), 82 deletions(-)
---
diff --git a/python-nbxmpp.spec b/python-nbxmpp.spec
deleted file mode 100644
index 1695c44..0000000
--- a/python-nbxmpp.spec
+++ /dev/null
@@ -1,82 +0,0 @@
-#
-# Conditional build:
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-%define		module		nbxmpp
-Summary:	Non blocking Jabber/XMPP module
-Name:		python-nbxmpp
-Version:	0.6.6
-Release:	8
-License:	GPL v3
-Group:		Libraries/Python
-# https://dev.gajim.org/gajim/python-nbxmpp/tags
-Source0:	https://files.pythonhosted.org/packages/source/n/%{module}/%{module}-%{version}.tar.gz
-# Source0-md5:	e9e0ba25282c892c7618014bbf93244d
-URL:		https://dev.gajim.org/gajim/python-nbxmpp
-%if %{with python2}
-BuildRequires:	python-setuptools
-%endif
-%if %{with python3}
-BuildRequires:	python3-setuptools
-%endif
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python-pyOpenSSL
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-python-nbxmpp is a Python library that provides a way for Python
-applications to use Jabber/XMPP networks in a non-blocking way. This
-library is initialy a fork of xmpppy one, but using non-blocking
-sockets.
-
-%package -n python3-%{module}
-Summary:	Non blocking Jabber/XMPP module
-Group:		Libraries/Python
-Requires:	python3-pyOpenSSL
-
-%description -n python3-%{module}
-python-nbxmpp is a Python library that provides a way for Python
-applications to use Jabber/XMPP networks in a non-blocking way. This
-library is initialy a fork of xmpppy one, but using non-blocking
-sockets.
-
-%prep
-%setup -q -n %{module}-%{version}
-
-%build
-%if %{with python2}
-%py_build %{?with_tests:test}
-%endif
-
-%if %{with python3}
-%py3_build %{?with_tests:test}
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%files
-%defattr(644,root,root,755)
-%doc ChangeLog README
-%{py_sitescriptdir}/%{module}
-%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
-
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc ChangeLog README
-%{py3_sitescriptdir}/%{module}
-%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
diff --git a/python3-nbxmpp.spec b/python3-nbxmpp.spec
new file mode 100644
index 0000000..13a8c6d
--- /dev/null
+++ b/python3-nbxmpp.spec
@@ -0,0 +1,59 @@
+%bcond_without	tests
+
+%define		module		nbxmpp
+Summary:	Non blocking Jabber/XMPP module
+Name:		python3-nbxmpp
+Version:	6.2.0
+Release:	1
+License:	GPL v3
+Group:		Libraries/Python
+# https://dev.gajim.org/gajim/python-nbxmpp/tags
+Source0:	https://files.pythonhosted.org/packages/source/n/%{module}/%{module}-%{version}.tar.gz
+# Source0-md5:	39af7c1dc2cbfb1a35efd62b19ba2d87
+URL:		https://dev.gajim.org/gajim/python-nbxmpp
+BuildRequires:	python3-build
+BuildRequires:	python3-installer
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with tests}
+BuildRequires:	python3-precis-i18n
+%endif
+Requires:	python3-gssapi
+Requires:	python3-idna
+Requires:	python3-modules >= 1:3.10
+Requires:	python3-precis-i18n
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+python-nbxmpp is a Python library that provides a way for Python
+applications to use Jabber/XMPP networks in a non-blocking way. This
+library is initialy a fork of xmpppy one, but using non-blocking
+sockets.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+%{__python3} -m zipfile -e build-3/*.whl build-3-test
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
+%{__python3} -m pytest -o pythonpath="$PWD/build-3-test" test
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog README.md
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{module}-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-nbxmpp.git/commitdiff/93c7bd30046d1da8e4960f5d27ec7a05f0f7e373



More information about the pld-cvs-commit mailing list