%global pypi_name beniget Name: python-%{pypi_name} Version: 0.1.0 Release: 1%{?dist} Summary: Extract semantic information about static Python code License: BSD URL: https://github.com/serge-sans-paille/beniget/ Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-gast >= 0.2.2 BuildRequires: python3-setuptools %description A static analyzer for Python2 and Python3 code.Beniget provides a static over- approximation of the global and local definitions inside Python Module/Class/Function. It can also compute def-use chains from each definition. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} A static analyzer for Python2 and Python3 code.Beniget provides a static over- approximation of the global and local definitions inside Python Module/Class/Function. It can also compute def-use chains from each definition. %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?.?.egg-info/ %changelog * Wed Jun 26 2019 Miro HronĨok - 0.1.0-1 - Initial package