%global _empty_manifest_terminate_build 0 Name: python-contours Version: 0.0.2 Release: 1 Summary: Contour calculation with Matplotlib. License: MIT URL: https://github.com/ccarocean/python-contours Source0: https://mirrors.nju.edu.cn/pypi/web/packages/55/3f/3df63de14b03a4421c50e6a7653da12118690e86bb391befb5c8bbb7e1f2/contours-0.0.2.tar.gz BuildArch: noarch %description The `contours` package exposes Matplotlib's contour generators to the user providing an equivalent of MATLAB's ``contourc`` function. This is done for grids (including curvilinear) as well as unstructured data via Delaunay triangulation (**FUTURE**). Regular contours can be returned as `NumPy`_ arrays or as `Shapely`_ LineStrings and LinearRings. Filled contours can be returned as `NumPy`_ arrays or as `Shapely`_ Polygons. Contour calculation without plotting is currently an open issue `#367`_ for Matplotlib. In that discussion, the type of hackery done in this library is discouraged by the Matplotlib developers. As of this writing there has been no decision as to whether exposing contour calculations is a feature that should be included in Matplotlib or not. If such a refactoring in Matplotlib ever takes place, this library will be refactored to avoid using Matplotlib's internal components. %package -n python3-contours Summary: Contour calculation with Matplotlib. Provides: python-contours BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-contours The `contours` package exposes Matplotlib's contour generators to the user providing an equivalent of MATLAB's ``contourc`` function. This is done for grids (including curvilinear) as well as unstructured data via Delaunay triangulation (**FUTURE**). Regular contours can be returned as `NumPy`_ arrays or as `Shapely`_ LineStrings and LinearRings. Filled contours can be returned as `NumPy`_ arrays or as `Shapely`_ Polygons. Contour calculation without plotting is currently an open issue `#367`_ for Matplotlib. In that discussion, the type of hackery done in this library is discouraged by the Matplotlib developers. As of this writing there has been no decision as to whether exposing contour calculations is a feature that should be included in Matplotlib or not. If such a refactoring in Matplotlib ever takes place, this library will be refactored to avoid using Matplotlib's internal components. %package help Summary: Development documents and examples for contours Provides: python3-contours-doc %description help The `contours` package exposes Matplotlib's contour generators to the user providing an equivalent of MATLAB's ``contourc`` function. This is done for grids (including curvilinear) as well as unstructured data via Delaunay triangulation (**FUTURE**). Regular contours can be returned as `NumPy`_ arrays or as `Shapely`_ LineStrings and LinearRings. Filled contours can be returned as `NumPy`_ arrays or as `Shapely`_ Polygons. Contour calculation without plotting is currently an open issue `#367`_ for Matplotlib. In that discussion, the type of hackery done in this library is discouraged by the Matplotlib developers. As of this writing there has been no decision as to whether exposing contour calculations is a feature that should be included in Matplotlib or not. If such a refactoring in Matplotlib ever takes place, this library will be refactored to avoid using Matplotlib's internal components. %prep %autosetup -n contours-0.0.2 %build %py3_build %install %py3_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 pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-contours -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri Apr 21 2023 Python_Bot - 0.0.2-1 - Package Spec generated