From 272298dad1475e305ad5b4c825117186dc13053c Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 11 Apr 2023 20:30:18 +0000 Subject: automatic import of python-tiletanic --- python-tiletanic.spec | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 python-tiletanic.spec (limited to 'python-tiletanic.spec') diff --git a/python-tiletanic.spec b/python-tiletanic.spec new file mode 100644 index 0000000..28c9cc1 --- /dev/null +++ b/python-tiletanic.spec @@ -0,0 +1,90 @@ +%global _empty_manifest_terminate_build 0 +Name: python-tiletanic +Version: 1.1.0 +Release: 1 +Summary: Geospatial tiling utilities +License: MIT +URL: https://github.com/digitalglobe/tiletanic +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/42/bc/eca08eac833bdf94e77c2bb193fb2115b0eb68c67f6b5f53e6c6368f2a9c/tiletanic-1.1.0.tar.gz +BuildArch: noarch + +Requires: python3-click +Requires: python3-geojson +Requires: python3-shapely + +%description +Tiletanic is a library for making and using geospatial tiling schemes. It's goal is to provide tooling for dealing with the conversion between a tile specified in as (row, column, zoom level), geospatial coordinates, or quadkeys. It also provides functionaly for taking an input geometry and figuring out what tiles cover it. +Tiletanic is MIT licensed. +Full documentation is hosted `here `_. +Installation is easy:: + pip install tiletanic +The only dependency is shapely_, and to install that, you'll need GEOS_ installed (usually in your package manager). + +%package -n python3-tiletanic +Summary: Geospatial tiling utilities +Provides: python-tiletanic +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-tiletanic +Tiletanic is a library for making and using geospatial tiling schemes. It's goal is to provide tooling for dealing with the conversion between a tile specified in as (row, column, zoom level), geospatial coordinates, or quadkeys. It also provides functionaly for taking an input geometry and figuring out what tiles cover it. +Tiletanic is MIT licensed. +Full documentation is hosted `here `_. +Installation is easy:: + pip install tiletanic +The only dependency is shapely_, and to install that, you'll need GEOS_ installed (usually in your package manager). + +%package help +Summary: Development documents and examples for tiletanic +Provides: python3-tiletanic-doc +%description help +Tiletanic is a library for making and using geospatial tiling schemes. It's goal is to provide tooling for dealing with the conversion between a tile specified in as (row, column, zoom level), geospatial coordinates, or quadkeys. It also provides functionaly for taking an input geometry and figuring out what tiles cover it. +Tiletanic is MIT licensed. +Full documentation is hosted `here `_. +Installation is easy:: + pip install tiletanic +The only dependency is shapely_, and to install that, you'll need GEOS_ installed (usually in your package manager). + +%prep +%autosetup -n tiletanic-1.1.0 + +%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-tiletanic -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot - 1.1.0-1 +- Package Spec generated -- cgit v1.2.3