## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 6; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global srcname types-six %global modname types_six Name: python-%{srcname} Version: 1.16.3 Release: %autorelease Summary: Typing stubs for six License: ASL 2.0 URL: https://github.com/python/typeshed Source0: %{pypi_source %{srcname}} BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel %global _description %{expand: This is a PEP 561 type stub package for the six package. It can be used by type-checking tools like mypy, PyCharm, pytype etc. to check code that uses six. The source for this package can be found at https://github.com/python/typeshed/tree/master/stubs/six. All fixes for types and metadata should be contributed there. See https://github.com/python/typeshed/blob/master/README.md for more details.} %description %{_description} %package -n python%{python3_pkgversion}-%{srcname} Summary: %{summary} %description -n python%{python3_pkgversion}-%{srcname} %{_description} %prep %autosetup -p1 -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %if 0%{?fedora} # py_check_import on EL9 need valid Python module names # and doesn't do brace expansions %check %py3_check_import six{,-python2}-stubs %endif %files -n python%{python3_pkgversion}-%{srcname} %doc CHANGELOG.md %{python3_sitelib}/six{,-python2}-stubs %{python3_sitelib}/%{modname}-%{version}.dist-info/ %changelog * Fri Jan 20 2023 Fedora Release Engineering 1.16.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering 1.16.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint 1.16.3-4 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering 1.16.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Dec 14 2021 Michel Alexandre Salim 1.16.3-2 - Remove unnecessary setuptools BR Only do smoke tests on Fedora, as the module names contain dashes * Fri Dec 10 2021 Michel Alexandre Salim 1.16.3-1 - Initial Fedora package