[packages/python3-pyasyncore] - initial
qboosh
qboosh at pld-linux.org
Sun Oct 26 16:18:13 CET 2025
commit d0f60090d335551d93ee08da8d15b425e62f0582
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Oct 26 16:18:00 2025 +0100
- initial
python3-pyasyncore.spec | 60 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
---
diff --git a/python3-pyasyncore.spec b/python3-pyasyncore.spec
new file mode 100644
index 0000000..f47f574
--- /dev/null
+++ b/python3-pyasyncore.spec
@@ -0,0 +1,60 @@
+#
+# Conditional build:
+%bcond_without doc # API documentation
+%bcond_without tests # unit tests (localhost networking required)
+
+%define module template
+Summary: Make asyncore available for Python 3.12 onwards
+Summary(pl.UTF-8): Moduł pyasncore dostępny dla Pythona 3.12 i nowszych
+Name: python3-pyasyncore
+Version: 1.0.4
+Release: 1
+License: PSF v2
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/pyasyncore/
+Source0: https://files.pythonhosted.org/packages/source/p/pyasyncore/pyasyncore-%{version}.tar.gz
+# Source0-md5: f97e2b69f1fa11470867b395c2fabf84
+URL: https://pypi.org/project/pyasyncore/
+BuildRequires: python3-modules >= 1:3.12
+BuildRequires: python3-setuptools
+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 asyncore module as found in Python versions
+prior to 3.12 (<https://docs.python.org/3.11/library/asyncore.html>).
+It is provided so that existing code relying on "import asyncore" is
+able to continue being used without significant refactoring.
+
+%description -l pl.UTF-8
+Ten pakiet zawiera moduł asyncore, obecny w wersjach Pythona starszych
+niż 3.12 (<https://docs.python.org/3.11/library/asyncore.html>). Jest
+udostępniany, aby istniejący kod polegający na "import asyncore" nadal
+działał bez potrzeby większego refaktorowania.
+
+%prep
+%setup -q -n pyasyncore-%{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}/asyncore
+%{py3_sitescriptdir}/pyasyncore-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-pyasyncore.git/commitdiff/d0f60090d335551d93ee08da8d15b425e62f0582
More information about the pld-cvs-commit
mailing list