%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 * Tue Apr 25 2023 Python_Bot - 2.0.3-1 - Package Spec generated