%global forgeurl https://github.com/hjson/hjson-py # This is the commit corresponding to the PyPI release # https://github.com/hjson/hjson-py/issues/35 %global commit 1687b811fcbbc54b5ac71cfbaa99f805e406fbcb Name: python-hjson Version: 3.1.0 Release: %autorelease Summary: User interface for JSON License: MIT URL: https://hjson.github.io # PyPI tarball doesn't include tests Source: %{forgeurl}/archive/%{commit}/hjson-py-%{commit}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest %global _description %{expand: This package is a Python implementation of Hjson is based on simplejson.} %description %_description %package -n python3-hjson Summary: %{summary} %description -n python3-hjson %_description %prep %autosetup -p1 -n hjson-py-%{commit} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l hjson %check %pytest -v %files -n python3-hjson -f %{pyproject_files} %doc README.md history.md %{_bindir}/hjson %changelog %autochangelog