diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-12 00:27:00 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-12 00:27:00 +0000 |
| commit | 80b88d30106a2ac64d82d6e0a2f08e783257b5d5 (patch) | |
| tree | 8339ab7c6e230aa469c52a00730720b119e64f9a | |
| parent | 4f62c1f060ce80508f601876f5b01a749fe721f5 (diff) | |
automatic import of python-georaptor
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-georaptor.spec | 87 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 89 insertions, 0 deletions
@@ -0,0 +1 @@ +/georaptor-2.0.3.tar.gz diff --git a/python-georaptor.spec b/python-georaptor.spec new file mode 100644 index 0000000..24880da --- /dev/null +++ b/python-georaptor.spec @@ -0,0 +1,87 @@ +%global _empty_manifest_terminate_build 0 +Name: python-georaptor +Version: 2.0.3 +Release: 1 +Summary: A Python Geohash Compression Tool +License: MIT +URL: https://github.com/ashwin711/georaptor +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/da/24/4eea1c1d5f119330309294df3abf0095e76fcc54fe9dabf0ef95570e9b29/georaptor-2.0.3.tar.gz +BuildArch: noarch + + +%description +Geohash is a geocoding system invented by Gustavo Niemeyer and placed into the public domain. It is a hierarchical spatial data structure which subdivides space into buckets of grid shape, which is one of the many applications of what is known as a Z-order curve, and generally space-filling curves. +Geohash creation for a polygon at a given precision level could result in a huge set of geohashes. +**GeoRaptor** creates the best combination of geohashes across various levels to represent a polygon, by starting from the highest level and iterating till the optimal blend is brewed. Result accuracy remains the same as that of the starting geohash level, but data size reduces considerably for large polygons, thereby improving speed and performance. +Following is a sample of what georaptor does +*Input:* 1096 geohashes at precision 6 for Singapore. +*Output:* 414 geohashes with a mix of precision 5 and 6. + +%package -n python3-georaptor +Summary: A Python Geohash Compression Tool +Provides: python-georaptor +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-georaptor +Geohash is a geocoding system invented by Gustavo Niemeyer and placed into the public domain. It is a hierarchical spatial data structure which subdivides space into buckets of grid shape, which is one of the many applications of what is known as a Z-order curve, and generally space-filling curves. +Geohash creation for a polygon at a given precision level could result in a huge set of geohashes. +**GeoRaptor** creates the best combination of geohashes across various levels to represent a polygon, by starting from the highest level and iterating till the optimal blend is brewed. Result accuracy remains the same as that of the starting geohash level, but data size reduces considerably for large polygons, thereby improving speed and performance. +Following is a sample of what georaptor does +*Input:* 1096 geohashes at precision 6 for Singapore. +*Output:* 414 geohashes with a mix of precision 5 and 6. + +%package help +Summary: Development documents and examples for georaptor +Provides: python3-georaptor-doc +%description help +Geohash is a geocoding system invented by Gustavo Niemeyer and placed into the public domain. It is a hierarchical spatial data structure which subdivides space into buckets of grid shape, which is one of the many applications of what is known as a Z-order curve, and generally space-filling curves. +Geohash creation for a polygon at a given precision level could result in a huge set of geohashes. +**GeoRaptor** creates the best combination of geohashes across various levels to represent a polygon, by starting from the highest level and iterating till the optimal blend is brewed. Result accuracy remains the same as that of the starting geohash level, but data size reduces considerably for large polygons, thereby improving speed and performance. +Following is a sample of what georaptor does +*Input:* 1096 geohashes at precision 6 for Singapore. +*Output:* 414 geohashes with a mix of precision 5 and 6. + +%prep +%autosetup -n georaptor-2.0.3 + +%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-georaptor -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.3-1 +- Package Spec generated @@ -0,0 +1 @@ +e7d6f7c1e87144143489e4b5ee91d7b2 georaptor-2.0.3.tar.gz |
