From c21336ef32755dee00bdded670ff689929f1c3c0 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 11 Apr 2023 20:57:37 +0000 Subject: automatic import of python-sentinelsat --- .gitignore | 1 + python-sentinelsat.spec | 135 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 137 insertions(+) create mode 100644 python-sentinelsat.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..7fa2218 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/sentinelsat-1.2.1.tar.gz diff --git a/python-sentinelsat.spec b/python-sentinelsat.spec new file mode 100644 index 0000000..7a5d795 --- /dev/null +++ b/python-sentinelsat.spec @@ -0,0 +1,135 @@ +%global _empty_manifest_terminate_build 0 +Name: python-sentinelsat +Version: 1.2.1 +Release: 1 +Summary: Utility to search and download Copernicus Sentinel satellite images +License: GPLv3+ +URL: https://github.com/sentinelsat/sentinelsat +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/9a/a2/d8e8ccb8d8042a28ae132074a02091932499cc8f5ebc4072b1677725c179/sentinelsat-1.2.1.tar.gz +BuildArch: noarch + +Requires: python3-requests +Requires: python3-click +Requires: python3-html2text +Requires: python3-geojson +Requires: python3-tqdm +Requires: python3-geomet +Requires: python3-pandas +Requires: python3-geopandas +Requires: python3-shapely +Requires: python3-pytest +Requires: python3-pytest-vcr +Requires: python3-pytest-socket +Requires: python3-requests-mock +Requires: python3-pyyaml +Requires: python3-rstcheck +Requires: python3-sphinx +Requires: python3-sphinx-rtd-theme +Requires: python3-flaky + +%description +Sentinelsat makes searching, downloading and retrieving the metadata of `Sentinel +`_ +satellite images from the +`Copernicus Open Access Hub `_ easy. +It offers an easy-to-use command line interface + sentinelsat -u -p --location Berlin --sentinel 2 --cloud 30 --start NOW-1MONTH +and a powerful Python API. + from sentinelsat import SentinelAPI, read_geojson, geojson_to_wkt + api = SentinelAPI('user', 'password') + footprint = geojson_to_wkt(read_geojson('search_polygon.geojson')) + products = api.query(footprint, + producttype='SLC', + orbitdirection='ASCENDING', + limit=10) + api.download_all(products) +Documentation is published at http://sentinelsat.readthedocs.io/. + +%package -n python3-sentinelsat +Summary: Utility to search and download Copernicus Sentinel satellite images +Provides: python-sentinelsat +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-sentinelsat +Sentinelsat makes searching, downloading and retrieving the metadata of `Sentinel +`_ +satellite images from the +`Copernicus Open Access Hub `_ easy. +It offers an easy-to-use command line interface + sentinelsat -u -p --location Berlin --sentinel 2 --cloud 30 --start NOW-1MONTH +and a powerful Python API. + from sentinelsat import SentinelAPI, read_geojson, geojson_to_wkt + api = SentinelAPI('user', 'password') + footprint = geojson_to_wkt(read_geojson('search_polygon.geojson')) + products = api.query(footprint, + producttype='SLC', + orbitdirection='ASCENDING', + limit=10) + api.download_all(products) +Documentation is published at http://sentinelsat.readthedocs.io/. + +%package help +Summary: Development documents and examples for sentinelsat +Provides: python3-sentinelsat-doc +%description help +Sentinelsat makes searching, downloading and retrieving the metadata of `Sentinel +`_ +satellite images from the +`Copernicus Open Access Hub `_ easy. +It offers an easy-to-use command line interface + sentinelsat -u -p --location Berlin --sentinel 2 --cloud 30 --start NOW-1MONTH +and a powerful Python API. + from sentinelsat import SentinelAPI, read_geojson, geojson_to_wkt + api = SentinelAPI('user', 'password') + footprint = geojson_to_wkt(read_geojson('search_polygon.geojson')) + products = api.query(footprint, + producttype='SLC', + orbitdirection='ASCENDING', + limit=10) + api.download_all(products) +Documentation is published at http://sentinelsat.readthedocs.io/. + +%prep +%autosetup -n sentinelsat-1.2.1 + +%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-sentinelsat -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot - 1.2.1-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..f4468f8 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +86e718a4c53a2a2cb25b6f3863e80afc sentinelsat-1.2.1.tar.gz -- cgit v1.2.3