Name: python-railroad-diagrams Version: 2.0.4 Release: %autorelease Summary: Library to generate railroad diagrams License: MIT URL: https://github.com/tabatkins/railroad-diagrams # Upstream doesn't do tags: https://github.com/tabatkins/railroad-diagrams/issues/91 %global commit f87f9483d96da76d784b489c34688832fb88cf84 %global forgeurl %url %forgemeta %global distprefix %{nil} Source: %{forgesource} BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: Railroad diagrams are a way of visually representing a grammar in a form that is more readable than using regular expressions or BNF. They can easily represent any context-free grammar, and some more powerful grammars.} %description %_description %package -n python3-railroad-diagrams Summary: %{summary} %description -n python3-railroad-diagrams %_description %prep %forgesetup %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install # Here, "railroad" is the name of the importable module. %pyproject_save_files railroad %check %python3 railroad.py >/dev/null %files -n python3-railroad-diagrams -f %{pyproject_files} %doc README.md %doc README-py.md %changelog %autochangelog