# # This file is auto-generated. DO NOT EDIT # Generated by: autospec.py # Name : python-astor Version : 0.8.1 Release : 1%{?dist} URL : https://github.com/berkerpeksag/astor Source0 : https://files.pythonhosted.org/packages/4c/49/ebd87c47d8d0adf948850429b5360deb3bed1835c16393ad92e1f598bb43/astor-%{version}.tar.gz Summary : Astor is designed to allow easy manipulation of Python source via the AST. Group : Development/Tools License : BSD BuildArch: noarch BuildRequires : python2-devel BuildRequires : python2-setuptools BuildRequires : python3-devel BuildRequires : python3-setuptools %description Astor is designed to allow easy manipulation of Python source via the AST. %package -n python2-astor Summary: python components for the astor package. Group: Default Requires: python2 %description -n python2-astor python components for the astor package. %package -n python3-astor Summary: python3 components for the astor package. Group: Default Requires: python3 %description -n python3-astor python3 components for the astor package. %prep %autosetup -n astor-%{version} %build %{__python2} setup.py build -b py2 %{__python3} setup.py build -b py3 %install rm -rf %{buildroot} %{__python2} -tt setup.py build -b py2 install --root=%{buildroot} %{__python3} -tt setup.py build -b py3 install --root=%{buildroot} %files -n python2-astor %defattr(-,root,root,-) %{python2_sitelib}/astor %{python2_sitelib}/astor-%{version}-py%{python2_version}.egg-info %files -n python3-astor %defattr(-,root,root,-) %{python3_sitelib}/astor %{python3_sitelib}/astor-%{version}-py%{python3_version}.egg-info %changelog * Fri Mar 13 2020 Yupeng Chang - 0.8.1-1 - Update to 0.8.1 * Tue Jun 11 2019 Yupeng Chang - 0.8.0-1 - Initial build