diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-10 05:24:49 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 05:24:49 +0000 |
| commit | 72487eaec94d4d99ea557cef292597737e727c1e (patch) | |
| tree | 546fe253d7ec8743452f192b3c7ee64d5d72f2e6 /python-kdtree.spec | |
| parent | bd3cd4be20466550a73bc9cbd6abd68682c65077 (diff) | |
automatic import of python-kdtreeopeneuler20.03
Diffstat (limited to 'python-kdtree.spec')
| -rw-r--r-- | python-kdtree.spec | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/python-kdtree.spec b/python-kdtree.spec new file mode 100644 index 0000000..22ce5f6 --- /dev/null +++ b/python-kdtree.spec @@ -0,0 +1,81 @@ +%global _empty_manifest_terminate_build 0 +Name: python-kdtree +Version: 0.16 +Release: 1 +Summary: A Python implemntation of a kd-tree +License: ISC license +URL: https://github.com/stefankoegl/kdtree +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/cf/22/f4e29465409d74c914a0c979d84fe352b6f77f1b66b8174c0b190bd51846/kdtree-0.16.tar.gz +BuildArch: noarch + + +%description +This package provides a simple implementation of a kd-tree in Python. +https://en.wikipedia.org/wiki/K-d_tree + + + +%package -n python3-kdtree +Summary: A Python implemntation of a kd-tree +Provides: python-kdtree +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-kdtree +This package provides a simple implementation of a kd-tree in Python. +https://en.wikipedia.org/wiki/K-d_tree + + + +%package help +Summary: Development documents and examples for kdtree +Provides: python3-kdtree-doc +%description help +This package provides a simple implementation of a kd-tree in Python. +https://en.wikipedia.org/wiki/K-d_tree + + + +%prep +%autosetup -n kdtree-0.16 + +%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-kdtree -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.16-1 +- Package Spec generated |
