diff --git a/.gitignore b/.gitignore index e69de29..c8ea8a4 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/typed_ast-1.0.3.tar.gz diff --git a/python3-typed_ast.spec b/python3-typed_ast.spec new file mode 100644 index 0000000..0d19206 --- /dev/null +++ b/python3-typed_ast.spec @@ -0,0 +1,42 @@ +%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 - 1.0.3-1 +- Initial package. diff --git a/sources b/sources index e69de29..df21e6f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (typed_ast-1.0.3.tar.gz) = b7e05b6432503226b6ec370a88802d4d564aa9fecd5a779e48c2017f77bcf4cb0615c8b8ba34f3e77e86adc2a73a9ee5fedd2a895c42e0d517e511dfd89d1469