[packages/python3-pyasynchat] - initial
qboosh
qboosh at pld-linux.org
Sun Oct 26 16:30:27 CET 2025
commit fd0f6af55da5a8741b7bfd225d32cd59ee6b354e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Oct 26 16:29:13 2025 +0100
- initial
python3-pyasynchat.spec | 62 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
---
diff --git a/python3-pyasynchat.spec b/python3-pyasynchat.spec
new file mode 100644
index 0000000..94648aa
--- /dev/null
+++ b/python3-pyasynchat.spec
@@ -0,0 +1,62 @@
+#
+# Conditional build:
+%bcond_without doc # API documentation
+%bcond_without tests # unit tests (localhost networking required)
+
+Summary: Make asynchat available for Python 3.12 onwards
+Summary(pl.UTF-8): Moduł pyasncore dostępny dla Pythona 3.12 i nowszych
+Name: python3-pyasynchat
+Version: 1.0.4
+Release: 1
+License: PSF v2
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/pyasynchat/
+Source0: https://files.pythonhosted.org/packages/source/p/pyasynchat/pyasynchat-%{version}.tar.gz
+# Source0-md5: 9fa7e3822f689b1236ca59c5f1b71415
+URL: https://pypi.org/project/pyasynchat/
+BuildRequires: python3-modules >= 1:3.12
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-pyasyncore >= 1.0.2
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python3-modules >= 1:3.12
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This package contains the asynchat module as found in Python versions
+prior to 3.12 (<https://docs.python.org/3.11/library/asynchat.html>).
+It is provided so that existing code relying on "import asynchat" is
+able to continue being used without significant refactoring.
+
+%description -l pl.UTF-8
+Ten pakiet zawiera moduł asynchat, obecny w wersjach Pythona starszych
+niż 3.12 (<https://docs.python.org/3.11/library/asynchat.html>). Jest
+udostępniany, aby istniejący kod polegający na "import asynchat" nadal
+działał bez potrzeby większego refaktorowania.
+
+%prep
+%setup -q -n pyasynchat-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+%{__python3} -m unittest discover -s tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{py3_sitescriptdir}/asynchat
+%{py3_sitescriptdir}/pyasynchat-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-pyasynchat.git/commitdiff/fd0f6af55da5a8741b7bfd225d32cd59ee6b354e
More information about the pld-cvs-commit
mailing list