diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 09:45:10 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 09:45:10 +0000 |
| commit | d44f6cc132bbe67e421b907e8c6314ffa2c4289b (patch) | |
| tree | 727b2ac3bb73c09db0b3c493d93c5749c55da597 | |
| parent | 132d3d00d9709592a587b72025d42a4a227fe34a (diff) | |
automatic import of python-richdemopeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-richdem.spec | 90 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 92 insertions, 0 deletions
@@ -0,0 +1 @@ +/richdem-0.3.4.tar.gz diff --git a/python-richdem.spec b/python-richdem.spec new file mode 100644 index 0000000..7112460 --- /dev/null +++ b/python-richdem.spec @@ -0,0 +1,90 @@ +%global _empty_manifest_terminate_build 0 +Name: python-richdem +Version: 0.3.4 +Release: 1 +Summary: High-Performance Terrain Analysis +License: GPLv3 +URL: https://github.com/r-barnes/richdem +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/20/8f/1fa0e1af7c4f0107305081513dae0234f327cbe5fc3a5db41d38915a2213/richdem-0.3.4.tar.gz +BuildArch: noarch + + +%description +RichDEM is a set of digital elevation model (DEM) hydrologic analysis tools. + +RichDEM uses parallel processing and state of the art algorithms to quickly process even very large DEMs. + +RichDEM offers a variety of flow metrics, such as D8 and D-infinity. + +It can flood or breach depressions, as well as calculate flow accumulation, slopes, curvatures, &c. + +%package -n python3-richdem +Summary: High-Performance Terrain Analysis +Provides: python-richdem +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-richdem +RichDEM is a set of digital elevation model (DEM) hydrologic analysis tools. + +RichDEM uses parallel processing and state of the art algorithms to quickly process even very large DEMs. + +RichDEM offers a variety of flow metrics, such as D8 and D-infinity. + +It can flood or breach depressions, as well as calculate flow accumulation, slopes, curvatures, &c. + +%package help +Summary: Development documents and examples for richdem +Provides: python3-richdem-doc +%description help +RichDEM is a set of digital elevation model (DEM) hydrologic analysis tools. + +RichDEM uses parallel processing and state of the art algorithms to quickly process even very large DEMs. + +RichDEM offers a variety of flow metrics, such as D8 and D-infinity. + +It can flood or breach depressions, as well as calculate flow accumulation, slopes, curvatures, &c. + +%prep +%autosetup -n richdem-0.3.4 + +%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-richdem -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.4-1 +- Package Spec generated @@ -0,0 +1 @@ +64db8791cf0292438e5b4948f5f1cabe richdem-0.3.4.tar.gz |
