%global _empty_manifest_terminate_build 0
Name:		python-contourpy
Version:	1.2.0
Release:	1
Summary:	Python library for calculating contours of 2D quadrilateral grids
License:	BSD-3-Clause
URL:		https://github.com/contourpy/contourpy
Source0:	https://files.pythonhosted.org/packages/source/c/contourpy/contourpy-%{version}.tar.gz
BuildRequires:  python3-pybind11 gcc-c++ python3-pip python3-wheel
BuildRequires:	python3-hatchling python3-hatch-vcs 
BuildRequires:  python3-meson-python

%description
ContourPy is a Python library for calculating contours of 2D quadrilateral grids. It is written in C++11 and wrapped using pybind11.

%package -n python3-contourpy
Summary:	Python library for calculating contours of 2D quadrilateral grids
Provides:	python-contourpy
BuildRequires:	python3-devel
%description -n python3-contourpy
ContourPy is a Python library for calculating contours of 2D quadrilateral grids. It is written in C++11 and wrapped using pybind11.

%package help
Summary:	Development documents and examples for contourpy
Provides:	python3-contourpy-doc
%description help
ContourPy is a Python library for calculating contours of 2D quadrilateral grids. It is written in C++11 and wrapped using pybind11.

%prep
%autosetup -n contourpy-%{version}

%build
%pyproject_build

%install
%pyproject_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi


%files -n python3-contourpy
%{python3_sitearch}/*

%files help
%{_docdir}/*

%changelog
* Thu Feb 22 2024 xu_ping <707078654@qq.com> - 1.2.0-1
- Upgrade version to 1.2.0

* Fri May 05 2023 wulei <wu_lei@hoperun.com> - 1.0.7-1
- Package init
