## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 srcname hatch-nodejs-version Name: python-%{srcname} Version: 0.3.2 Release: %autorelease Summary: Hatch plugin for versioning from a package.json file License: MIT URL: https://github.com/agoose77/hatch-nodejs-version Source: %{pypi_source hatch_nodejs_version} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest %global _description %{expand: This package provides two Hatch plugins: - a version source plugin that reads/writes the package version from the version field of the Node.js package.json file. - a metadata hook plugin that reads PEP 621 metadata from the Node.js package.json file.} %description %_description %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %_description %prep %autosetup -p1 -n hatch_nodejs_version-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files hatch_nodejs_version %check %pytest %files -n python3-%{srcname} -f %{pyproject_files} %doc README.md CHANGELOG.md %changelog ## START: Generated by rpmautospec * Mon Aug 12 2024 Davide Cavalca - 0.3.2-1 - Initial import; Fixes: RHBZ#2284007 ## END: Generated by rpmautospec