Blame python-types-enum34.spec

e2efb69
%global srcname types-enum34
e2efb69
%global modname types_enum34
e2efb69
e2efb69
Name:           python-%{srcname}
e2efb69
Version:        1.1.1
e2efb69
Release:        %autorelease
e2efb69
Summary:        Typing stubs for enum34
e2efb69
License:        ASL 2.0
e2efb69
URL:            https://github.com/python/typeshed
e2efb69
Source0:        %{pypi_source %{srcname}}
e2efb69
e2efb69
BuildArch:      noarch
e2efb69
e2efb69
BuildRequires:  python%{python3_pkgversion}-devel
e2efb69
e2efb69
%global _description %{expand:
e2efb69
This is a PEP 561 type stub package for the enum34 package. It can be used by
e2efb69
type-checking tools like mypy, PyCharm, pytype etc. to check code that uses
e2efb69
enum34. The source for this package can be found at
e2efb69
https://github.com/python/typeshed/tree/master/stubs/enum34. All fixes for types
e2efb69
and metadata should be contributed there.
e2efb69
e2efb69
See https://github.com/python/typeshed/blob/master/README.md for more details.}
e2efb69
e2efb69
%description %{_description}
e2efb69
e2efb69
e2efb69
%package -n python%{python3_pkgversion}-%{srcname}
e2efb69
Summary:        %{summary}
e2efb69
e2efb69
%description -n python%{python3_pkgversion}-%{srcname} %{_description}
e2efb69
e2efb69
e2efb69
%prep
e2efb69
%autosetup -p1 -n %{srcname}-%{version}
e2efb69
e2efb69
e2efb69
%generate_buildrequires
e2efb69
%pyproject_buildrequires -r
e2efb69
e2efb69
e2efb69
%build
e2efb69
%pyproject_wheel
e2efb69
e2efb69
e2efb69
%install
e2efb69
%pyproject_install
e2efb69
e2efb69
12bf10e
%if 0%{?fedora}
12bf10e
# py_check_import on EL9 need valid Python module names
e2efb69
%check
e2efb69
%py3_check_import enum-python2-stubs
12bf10e
%endif
e2efb69
e2efb69
12bf10e
%files -n python%{python3_pkgversion}-%{srcname}
e2efb69
%doc CHANGELOG.md
e2efb69
%{python3_sitelib}/enum-python2-stubs
e2efb69
%{python3_sitelib}/%{modname}-%{version}.dist-info/
e2efb69
e2efb69
e2efb69
%changelog
e2efb69
%autochangelog