From 15640f52aa340822895558c48d3652dd07e390c7 Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Jun 26 2019 14:59:14 +0000 Subject: Initial import (#1667661) --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ef8799f --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/astunparse-*.tar.gz +/astunparse-*/ +/results_astunparse/ +*.rpm diff --git a/python-astunparse.spec b/python-astunparse.spec new file mode 100644 index 0000000..12113ba --- /dev/null +++ b/python-astunparse.spec @@ -0,0 +1,51 @@ +%global pypi_name astunparse + +Name: python-%{pypi_name} +Version: 1.6.2 +Release: 1%{?dist} +Summary: An AST unparser for Python +# Primarily under the terms of BSD +# The unparse and the test_unparse modules are under the PSF license. +License: BSD and Python +URL: https://github.com/simonpercivall/astunparse +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-six +BuildRequires: python3-wheel + +%description +This is a factored out version of unparse found in the Python source +distribution; under Tools/parser in Python 3. + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +This is a factored out version of unparse found in the Python source +distribution; under Tools/parser in Python 3. + +%prep +%autosetup -n %{pypi_name}-%{version} + +%build +%py3_build + +%install +%py3_install + +%check +%{__python3} setup.py test + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +%{python3_sitelib}/%{pypi_name}/ +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ + +%changelog +* Sat Jan 19 2019 Miro Hrončok - 1.6.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..ab8c3a1 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (astunparse-1.6.2.tar.gz) = 1e344354481dab7345d8790791e15e2ce733b8985839972a1771b97adebbfc2b42c8fb258ea36f245baed553d3b8e5007872d6559ebcc5ef1eb6f6c6a5d66c81