## START: Set by rpmautospec ## (rpmautospec version 0.6.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; 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 pypi_name cmap %global forgeurl https://github.com/tlambert03/cmap Name: python-%{pypi_name} Version: 0.2.0 Release: %{autorelease} Summary: Scientific colormaps for python, without dependencies %forgemeta # The colormaps carry their own licenses License: BSD-3-Clause AND MIT AND Apache-1.1 AND CC-BY-4.0 AND BSD-1-Clause URL: %forgeurl Source: %forgesource BuildArch: noarch BuildRequires: python3-devel # For hatch-vcs BuildRequires: git-core %global _description %{expand: Scientific colormaps for python, with no dependencies beyond numpy. With cmap, you can use any of the colormaps from matplotlib, cmocean, colorbrewer, crameri, seaborn, and a host of other collections in your python code, without having to install matplotlib or any other dependencies beyond numpy.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %prep %forgeautosetup -p1 -S git # Make sure this is the last step in prep git tag v%{version} %generate_buildrequires %pyproject_buildrequires -x test_min %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l %{pypi_name} %check %pytest -v %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.md CHANGELOG.md %changelog ## START: Generated by rpmautospec * Mon Mar 18 2024 Sandro - 0.2.0-3 - Tag has moved including PR #40 - Drop the patch - Update `sources` * Sat Mar 09 2024 Sandro - 0.2.0-2 - Apply upstream patch regarding tests * Sat Mar 09 2024 Sandro - 0.2.0-1 - Initial package ## END: Generated by rpmautospec