forked from pool/python-mypy
- Add mypy-1.14.1-gcc15.patch from upstream to fix gcc15 compile
time error OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mypy?expand=0&rev=31
This commit is contained in:
@@ -29,10 +29,12 @@ URL: https://www.mypy-lang.org/
|
||||
Source0: https://files.pythonhosted.org/packages/source/m/mypy/mypy-%{version}.tar.gz
|
||||
# Source0: mypy-%%{version}.tar.gz
|
||||
# License Source1: Apache-2.0. Only for the test suite, not packaged here.
|
||||
Source1: https://files.pythonhosted.org/packages/source/t/types-psutil/types_psutil-%{types_psutil_version}.tar.gz
|
||||
Source1: https://files.pythonhosted.org/packages/source/t/types_psutil/types_psutil-%{types_psutil_version}.tar.gz
|
||||
# License Source2: Apache-2.0. Only for the test suite, not packaged here.
|
||||
Source2: https://files.pythonhosted.org/packages/source/t/types-setuptools/types_setuptools-%{types_setuptools_version}.tar.gz
|
||||
Source2: https://files.pythonhosted.org/packages/source/t/types_setuptools/types_setuptools-%{types_setuptools_version}.tar.gz
|
||||
Source99: python-mypy-rpmlintrc
|
||||
# PATCH-FIX-UPSTREAM
|
||||
Patch1: mypy-1.14.1-gcc15.patch
|
||||
BuildRequires: %{python_module exceptiongroup}
|
||||
BuildRequires: %{python_module mypy_extensions >= 1.0.0}
|
||||
BuildRequires: %{python_module pip}
|
||||
@@ -85,14 +87,13 @@ and union types.
|
||||
|
||||
%prep
|
||||
%setup -q -a1 -n mypy-%{version}
|
||||
%setup -T -D -a2 -n mypy-%{version}
|
||||
%setup -q -T -D -a2 -n mypy-%{version}
|
||||
%autopatch -p1
|
||||
|
||||
sed -i '/env python3/d' ./mypy/stubgenc.py
|
||||
sed -i '/env python3/d' ./mypy/stubgen.py
|
||||
|
||||
mkdir mystubs
|
||||
ls -l types_*
|
||||
mv types_setuptools-%{types_setuptools_version}/setuptools-stubs* mystubs/
|
||||
mv types_psutil-%{types_psutil_version}/psutil-stubs* mystubs/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user