summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 17:28:35 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 17:28:35 +0000
commit10f3cf067f0d2cbc1e049efa7c0fca1e5cfde2fa (patch)
tree0107db241187dbc26a89b1373aa1e9116e9934b5
parent72d3e4024a37cd1dcefed339af2ae2b91dfa2dcd (diff)
automatic import of python-contours
-rw-r--r--.gitignore1
-rw-r--r--python-contours.spec111
-rw-r--r--sources1
3 files changed, 113 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..faefbed 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/contours-0.0.2.tar.gz
diff --git a/python-contours.spec b/python-contours.spec
new file mode 100644
index 0000000..06bae68
--- /dev/null
+++ b/python-contours.spec
@@ -0,0 +1,111 @@
+%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
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..51e7889
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+ad32cec7adf1ecb64dab316fd8f1d827 contours-0.0.2.tar.gz