## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## 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 %bcond_with bootstrap %global srcname contourpy Name: python-%{srcname} Version: 1.3.0 Release: %autorelease Summary: Python library for calculating contours in 2D quadrilateral grids License: BSD-3-Clause URL: https://contourpy.readthedocs.io/ Source0: %pypi_source %{srcname} BuildRequires: python3-devel BuildRequires: gcc-c++ # for %%pyproject_buildrequires -p: BuildRequires: pyproject-rpm-macros >= 1.15.1 %global _description %{expand: ContourPy is a Python library for calculating contours of 2D quadrilateral grids. It is written in C++11 and wrapped using pybind11. It contains the 2005 and 2014 algorithms used in Matplotlib as well as a newer algorithm that includes more features and is available in both serial and multithreaded versions. It provides an easy way for Python libraries to use contouring algorithms without having to include Matplotlib as a dependency. } %description %{_description} %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %{_description} %prep %autosetup -n %{srcname}-%{version} -p1 %generate_buildrequires %pyproject_buildrequires -p -x test%{?with_bootstrap:-no-images} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{srcname} %check %pytest %{?with_bootstrap:-k 'not image'} %files -n python3-%{srcname} -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Mon Oct 07 2024 Karolina Surma - 1.3.0-2 - Read the runtime depedencies from pyproject.toml - w gets the dependencies by building the wheel which is time- and resource-consuming, and done twice during one package build (again in the %%build phase). Instead, -p reads the dependencies from the [project] table in pyproject.toml which is a part of the sdist. * Tue Aug 27 2024 Elliott Sales de Andrade - 1.3.0-1 - Update to latest version (#2308256) * Fri Jul 19 2024 Fedora Release Engineering - 1.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 08 2024 Python Maint - 1.2.1-3 - Rebuilt for Python 3.13 * Sat Jun 08 2024 Python Maint - 1.2.1-2 - Bootstrap for Python 3.13 * Thu Apr 25 2024 Elliott Sales de Andrade - 1.2.1-1 - Update to latest version (#2272765) * Fri Jan 26 2024 Fedora Release Engineering - 1.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Nov 08 2023 Elliott Sales de Andrade - 1.2.0-1 - Update to latest version (#2247834) * Mon Oct 09 2023 Elliott Sales de Andrade - 1.1.1-1 - Update to latest version (#2239243) * Fri Jul 21 2023 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jul 07 2023 Elliott Sales de Andrade - 1.1.0-1 - Update to latest version (#2214832) * Thu Jun 29 2023 Python Maint - 1.0.7-5 - Rebuilt for Python 3.12 * Tue Jun 13 2023 Python Maint - 1.0.7-4 - Bootstrap for Python 3.12 * Sun Apr 09 2023 Elliott Sales de Andrade - 1.0.7-3 - Switch to SPDX license * Fri Jan 20 2023 Fedora Release Engineering - 1.0.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Jan 17 2023 Elliott Sales de Andrade - 1.0.7-1 - Update to latest version (#2160757) * Wed Nov 02 2022 Elliott Sales de Andrade - 1.0.6-1 - Update to latest version (#2138650) * Wed Sep 07 2022 Elliott Sales de Andrade - 1.0.5-1 - Update to latest version (#2123693) * Mon Aug 01 2022 Elliott Sales de Andrade - 1.0.4-1 - Update to latest version (#2112705) * Wed Jul 06 2022 Elliott Sales de Andrade - 1.0.3-1 - Update to latest version (#2096172) * Thu May 19 2022 Elliott Sales de Andrade - 1.0.2-3 - Skip code linting tests * Thu May 19 2022 Elliott Sales de Andrade - 1.0.2-2 - Switch to PyPI sources * Thu May 19 2022 Elliott Sales de Andrade - 1.0.2-1 - import #2073692 ## END: Generated by rpmautospec