## START: Set by rpmautospec ## (rpmautospec version 0.6.5) ## 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 Name: python-freeqdsk Version: 0.5.0 Release: %{autorelease} Summary: Read and write G-EQDSK, A-EQDSK, and P-EQDSK file formats License: MIT URL: https://github.com/freegs-plasma/FreeQDSK Source: %pypi_source freeqdsk BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: Read and write G-EQDSK, A-EQDSK, and P-EQDSK file formats, which are used to describe the tokamak fusion devices. } %description %_description %package -n python3-freeqdsk Summary: %{summary} %description -n python3-freeqdsk %_description %prep %autosetup -p1 -n freeqdsk-%{version} %generate_buildrequires %pyproject_buildrequires -x tests %build %pyproject_wheel %install %pyproject_install %pyproject_save_files freeqdsk %check %pytest %files -n python3-freeqdsk -f %{pyproject_files} %doc README.* %changelog ## START: Generated by rpmautospec * Wed Dec 18 2024 John Doe - 0.5.0-1 - Uncommitted changes ## END: Generated by rpmautospec