Blame python-typing-inspect.spec

afdd47f
%global pypi_name typing-inspect
afdd47f
%global pypi_srcname typing_inspect
afdd47f
afdd47f
Name:           python-%{pypi_name}
aa6aa96
Version:        0.6.0
2914394
Release:        2%{?dist}
afdd47f
Summary:        Runtime inspection utilities for typing module
afdd47f
afdd47f
License:        MIT
afdd47f
URL:            https://github.com/ilevkivskyi/%{pypi_srcname}
afdd47f
Source0:        %{pypi_source %pypi_srcname}
afdd47f
BuildArch:      noarch
afdd47f
afdd47f
BuildRequires:  python3-devel
afdd47f
BuildRequires:  python3dist(mypy-extensions) >= 0.3.0
afdd47f
BuildRequires:  python3dist(setuptools)
afdd47f
BuildRequires:  python3dist(typing-extensions) >= 3.7.4
afdd47f
aa6aa96
Patch000: typing-3_9.patch
aa6aa96
afdd47f
%description
afdd47f
Typing Inspect The "%{pypi_srcname}" module defines experimental API for runtime
afdd47f
inspection of types defined in the standard "typing" module.
afdd47f
afdd47f
%package -n     python3-%{pypi_name}
afdd47f
Summary:        %{summary}
afdd47f
%{?python_provide:%python_provide python3-%{pypi_name}}
afdd47f
afdd47f
Requires:       python3dist(mypy-extensions) >= 0.3.0
afdd47f
Requires:       python3dist(typing-extensions) >= 3.7.4
afdd47f
%description -n python3-%{pypi_name}
afdd47f
The "%{pypi_srcname}" module defines experimental API for runtime
afdd47f
inspection of types defined in the standard "typing" module.
afdd47f
afdd47f
afdd47f
%prep
afdd47f
%autosetup -n %{pypi_srcname}-%{version}
afdd47f
# Remove bundled egg-info
afdd47f
rm -rf %{pypi_name}.egg-info
afdd47f
afdd47f
%build
afdd47f
%py3_build
afdd47f
afdd47f
%install
afdd47f
%py3_install
afdd47f
afdd47f
%check
afdd47f
%{__python3} setup.py test
afdd47f
afdd47f
%files -n python3-%{pypi_name}
afdd47f
%license LICENSE
afdd47f
%doc README.md
afdd47f
%{python3_sitelib}/__pycache__/%{pypi_srcname}.*.pyc
afdd47f
%{python3_sitelib}/%{pypi_srcname}.py
afdd47f
%{python3_sitelib}/%{pypi_srcname}-%{version}-py*.egg-info
afdd47f
afdd47f
%changelog
2914394
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-2
2914394
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2914394
aa6aa96
* Mon Jun 22 2020 Anna Khaitovich <akhaitov@redhat.com> - 0.6.0-1
aa6aa96
- Update to 0.6.0
aa6aa96
7896a7f
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 0.5.0-3
7896a7f
- Rebuilt for Python 3.9
7896a7f
7b68eab
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-2
7b68eab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
7b68eab
afdd47f
* Mon Nov 04 2019 Anna Khaitovich <akhaitov@redhat.com> - 0.5.0-1
afdd47f
- Initial package.