[packages/python3-aiosignal] - new

baggins baggins at pld-linux.org
Sun Nov 28 20:27:04 CET 2021


commit d954da7ff5bbb02ad6c3c5a9e40d7e9702b9e859
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Nov 28 20:26:44 2021 +0100

    - new

 python3-aiosignal.spec | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 84 insertions(+)
---
diff --git a/python3-aiosignal.spec b/python3-aiosignal.spec
new file mode 100644
index 0000000..a62bea4
--- /dev/null
+++ b/python3-aiosignal.spec
@@ -0,0 +1,84 @@
+#
+# Conditional build:
+%bcond_without	doc	# API documentation
+%bcond_without	tests	# unit tests
+
+%define		module	aiosignal
+Summary:	A list of registered asynchronous callbacks
+Name:		python3-%{module}
+Version:	1.2.0
+Release:	1
+License:	Apache v2.0
+Group:		Libraries/Python
+Source0:	https://files.pythonhosted.org/packages/source/a/aiosignal/%{module}-%{version}.tar.gz
+# Source0-md5:	011700c3acc576a3a38deade6a4860cb
+URL:		https://pypi.org/project/aiosignal/
+BuildRequires:	python3-modules >= 1:3.2
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-frozenlist
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires:	sphinx-pdg-3
+%endif
+Requires:	python3-modules >= 1:3.2
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A project to manage callbacks in asyncio projects.
+
+Signal is a list of registered asynchronous callbacks.
+
+%package apidocs
+Summary:	API documentation for Python %{module} module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona %{module}
+Group:		Documentation
+
+%description apidocs
+API documentation for Python %{module} module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona %{module}.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+%{__python3} -m pytest tests
+%endif
+
+%if %{with doc}
+%{__make} -C docs html \
+	SPHINXBUILD=sphinx-build-3
+rm -rf docs/_build/html/_sources
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.rst CONTRIBUTORS.txt README.rst
+%dir %{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{module}/*.py
+%{py3_sitescriptdir}/%{module}/*.pyi
+%{py3_sitescriptdir}/%{module}/py.typed
+%{py3_sitescriptdir}/%{module}/__pycache__
+%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/*
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-aiosignal.git/commitdiff/d954da7ff5bbb02ad6c3c5a9e40d7e9702b9e859



More information about the pld-cvs-commit mailing list