Blob Blame History Raw
%global modname typed_ast

Name:               python3-%{modname}
Version:            1.0.3
Release:            1%{?dist}
Summary:            A fork of the ast module with type annotations

License:            ASL 2.0
URL:                https://github.com/python/typed_ast/releases
Source0:            %{url}/archive/%{version}/%{modname}-%{version}.tar.gz
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
BuildRequires:      python3-devel
BuildRequires:      python3-setuptools

%description
%summary. This package is based on the ast modules from Python 2 and 3,
and has been extended with support for type comments and type annotations
as supported in Python 3.6.


%prep
%autosetup -n %{modname}-%{version}

%build
%py3_build

%install
%py3_install

%check
%{__python3} setup.py test

%files -n python%{python3_pkgversion}-%{modname}
%doc *.md
%license LICENSE
%{python3_sitearch}/%{modname}/
%{python3_sitearch}/_ast*.so
%{python3_sitearch}/%{modname}-*.egg-info/

%changelog
* Sun Jun 11 2017 Gwyn Ciesla <limburgher@gmail.com> - 1.0.3-1
- Initial package.