## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %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 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 ## START: Generated by rpmautospec * Sat Jan 18 2025 Fedora Release Engineering - 3.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sun Dec 29 2024 Davide Cavalca - 3.1.0-1 - Initial import; Fixes: RHBZ#2333205 ## END: Generated by rpmautospec