commit 27af43ec105aca832e7cdb8ed229b1fe8cfb128b912656e89163b201ebdf9770 Author: Tomáš Chvátal Date: Mon Aug 10 11:43:47 2020 +0000 Accepting request 824400 from home:andythe_great Initial release Need network connection OBS-URL: https://build.opensuse.org/request/show/824400 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sat-search?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-sat-search.changes b/python-sat-search.changes new file mode 100644 index 0000000..69f58a0 --- /dev/null +++ b/python-sat-search.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Sat Aug 1 16:24:24 UTC 2020 - andy great + +- Update spec file to use python alternative. + +------------------------------------------------------------------- +Sun Jul 26 12:16:56 UTC 2020 - andy great + +- Initial package release. diff --git a/python-sat-search.spec b/python-sat-search.spec new file mode 100644 index 0000000..02e7398 --- /dev/null +++ b/python-sat-search.spec @@ -0,0 +1,79 @@ +# +# spec file for package python-sat-search +# +# Copyright (c) 2020 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define packagename sat-search +%define skip_python2 1 +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-sat-search +Version: 0.2.3 +Release: 0 +Summary: A tool for discovering and downloading publicly available satellite imagery +License: MIT +Group: Development/Languages/Python +URL: https://github.com/sat-utils/sat-search +Source: https://files.pythonhosted.org/packages/26/s/sat-search/sat-search-%{version}.tar.gz +BuildRequires: %{python_module pytest >= 2.8.2} +BuildRequires: %{python_module pytest-runner} +BuildRequires: %{python_module sat-stac} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-sat-stac +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch +%python_subpackages + +%description +Sat-search is a Python 3 library and a command line tool for discovering +and downloading publicly available satellite imagery using a conformant +API such as sat-api. + +%prep +%setup -q -n %{packagename}-%{version} + +%build +%python_build + +%install +%python_install +for p in %{packagename} ; do + %python_clone -a %{buildroot}%{_bindir}/$p +done + +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%prepare_alternative %{packagename} + +%post +%python_install_alternative %{packagename} + +%postun +%python_uninstall_alternative %{packagename} + +%check +# Require network connection. + +%files %{python_files} +%doc README.md +%license LICENSE +%python_alternative %{_bindir}/%{packagename} +%{python_sitelib}/satsearch +%{python_sitelib}/*egg-info +%exclude %{python_sitelib}/test + +%changelog diff --git a/sat-search-0.2.3.tar.gz b/sat-search-0.2.3.tar.gz new file mode 100644 index 0000000..460f847 --- /dev/null +++ b/sat-search-0.2.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0cda937f2d256d5ca00f28ac1c66776e4b3e9520277109e5df9eabf6aa4d30c7 +size 44578