Name: python-asdl-adt Version: 0.1.0 Release: %autorelease Summary: Compiler IR tools License: MIT URL: https://github.com/ChezJrk/asdl # Sources on PyPI do not have a test configuration file Source: %{url}/archive/v%{version}/asdl-adt-%{version}.tar.gz # Newer python versions give different error message # https://github.com/ChezJrk/asdl/pull/14 Patch: fix-test-error.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) %global _description %{expand: Library for generating helpful algebraic data types out of ASDL definitions.} %description %_description %package -n python3-asdl-adt Summary: %{summary} %description -n python3-asdl-adt %_description %prep %autosetup -p1 -n asdl-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -L asdl_adt %check %pyproject_check_import %pytest %files -n python3-asdl-adt -f %{pyproject_files} %doc README.md %changelog %autochangelog