Accepting request 824382 from home:andythe_great
The test need network connection even if the test files are found. So I just take the version from pypi as it is higher version than in github repo. OBS-URL: https://build.opensuse.org/request/show/824382 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sat-stac?expand=0&rev=1
This commit is contained in:
commit
bb9a14b9f5
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
9
python-sat-stac.changes
Normal file
9
python-sat-stac.changes
Normal file
@ -0,0 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 31 15:33:36 UTC 2020 - andy great <andythe_great@pm.me>
|
||||
|
||||
- Update spec file to use python alternative.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jul 26 14:20:25 UTC 2020 - andy great <andythe_great@pm.me>
|
||||
|
||||
- Initial package release.
|
78
python-sat-stac.spec
Normal file
78
python-sat-stac.spec
Normal file
@ -0,0 +1,78 @@
|
||||
#
|
||||
# spec file for package python-sat-stac
|
||||
#
|
||||
# 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-stac
|
||||
%define skip_python2 1
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-sat-stac
|
||||
Version: 0.4.0
|
||||
Release: 0
|
||||
Summary: A library for reading and working with Spatio-Temporal Asset Catalogs
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/sat-utils/sat-stac
|
||||
Source: https://files.pythonhosted.org/packages/f3/s/sat-stac/%{packagename}-%{version}.tar.gz
|
||||
BuildRequires: %{python_module python-dateutil >= 2.7.5}
|
||||
BuildRequires: %{python_module requests >= 2.19.1}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-python-dateutil >= 2.7.5
|
||||
Requires: python-requests >= 2.19.1
|
||||
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_sitearch}
|
||||
%prepare_alternative %{packagename}
|
||||
|
||||
%post
|
||||
%python_install_alternative %{packagename}
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative %{packagename}
|
||||
|
||||
%check
|
||||
# This archive does not have test files.
|
||||
# The archive in github has it, but need network connection for test.
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%python_alternative %{_bindir}/%{packagename}
|
||||
%{python_sitelib}/*egg-info
|
||||
%{python_sitelib}/satstac
|
||||
|
||||
%changelog
|
3
sat-stac-0.4.0.tar.gz
Normal file
3
sat-stac-0.4.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:42dafacd328244a3a8543ae4fe59bd775b7e6b63ff044aa46fa515389a2893f6
|
||||
size 16202
|
Loading…
Reference in New Issue
Block a user