[packages/python-mypy_extensions] - new

qboosh qboosh at pld-linux.org
Fri Feb 5 22:03:01 CET 2021


commit 7083c0f77bf16d3379d901d8d3b169bbc5aa2278
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Feb 5 22:03:18 2021 +0100

    - new

 python-mypy_extensions.spec | 109 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 109 insertions(+)
---
diff --git a/python-mypy_extensions.spec b/python-mypy_extensions.spec
new file mode 100644
index 0000000..3467bba
--- /dev/null
+++ b/python-mypy_extensions.spec
@@ -0,0 +1,109 @@
+#
+# Conditional build:
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+Summary:	Experimental type system extensions for programs checked with the mypy typechecker
+Summary(pl.UTF-8):	Eksperymentalne rozszerzenia systemu typowania dla programów sprawdzanych narzędziem mypy
+Name:		python-mypy_extensions
+Version:	0.4.3
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/mypy-extensions/
+Source0:	https://files.pythonhosted.org/packages/source/m/mypy-extensions/mypy_extensions-%{version}.tar.gz
+# Source0-md5:	4163ff73d0db8631c0a78bb55b551c84
+URL:		https://pypi.org/project/mypy-extensions/
+%if %{with python2}
+BuildRequires:	python-modules >= 1:2.7
+BuildRequires:	python-setuptools
+%endif
+%if %{with python3}
+BuildRequires:	python3-modules >= 1:3.4
+BuildRequires:	python3-setuptools
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python-modules >= 1:2.7
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The "mypy_extensions" module defines experimental extensions to the
+standard "typing" module that are supported by the mypy typechecker.
+
+%description -l pl.UTF-8
+Moduł "mypy_extensions" definiuje eksperymentalne rozszerzenia
+standardowego modułu "typing", obsługiwane przez narzędzie do
+kontroli typów mypy.
+
+%package -n python3-mypy_extensions
+Summary:	Experimental type system extensions for programs checked with the mypy typechecker
+Summary(pl.UTF-8):	Eksperymentalne rozszerzenia systemu typowania dla programów sprawdzanych narzędziem mypy
+Group:		Libraries/Python
+Requires:	python3-modules >= 1:3.4
+
+%description -n python3-mypy_extensions
+The "mypy_extensions" module defines experimental extensions to the
+standard "typing" module that are supported by the mypy typechecker.
+
+%description -n python3-mypy_extensions -l pl.UTF-8
+Moduł "mypy_extensions" definiuje eksperymentalne rozszerzenia
+standardowego modułu "typing", obsługiwane przez narzędzie do
+kontroli typów mypy.
+
+%package apidocs
+Summary:	API documentation for Python mypy_extensions module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona mypy_extensions
+Group:		Documentation
+
+%description apidocs
+API documentation for Python mypy_extensions module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona mypy_extensions.
+
+%prep
+%setup -q -n mypy_extensions-%{version}
+
+%build
+%if %{with python2}
+%py_build
+%endif
+
+%if %{with python3}
+%py3_build
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%{py_sitescriptdir}/mypy_extensions.py[co]
+%{py_sitescriptdir}/mypy_extensions-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-mypy_extensions
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%{py3_sitescriptdir}/mypy_extensions.py
+%{py3_sitescriptdir}/__pycache__/mypy_extensions.cpython-*.py[co]
+%{py3_sitescriptdir}/mypy_extensions-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-mypy_extensions.git/commitdiff/7083c0f77bf16d3379d901d8d3b169bbc5aa2278



More information about the pld-cvs-commit mailing list