forked from pool/python-geomet
- Switch to github archive in order to get tests
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-geomet?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
1bae8f32ff
commit
5b470d4562
@@ -18,13 +18,13 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-geomet
|
||||
Version: 0.2.1.post1
|
||||
Version: 0.2.1
|
||||
Release: 0
|
||||
Summary: GeoJSON <-> WKT/WKB conversion utilities
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/geomet/geomet
|
||||
Source: https://files.pythonhosted.org/packages/source/g/geomet/geomet-%{version}.tar.gz
|
||||
Source: https://github.com/geomet/geomet/archive/%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -33,6 +33,7 @@ Requires: python-six
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module click}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module six}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
@@ -48,8 +49,13 @@ GeoJSON <-> WKT/WKB conversion utilities
|
||||
|
||||
%install
|
||||
%python_install
|
||||
rm %{buildroot}%{_prefix}/LICENSE
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
export PATH=$PATH:%{buildroot}%{_bindir}
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%doc AUTHORS.txt README.md
|
||||
%license LICENSE
|
||||
|
||||
Reference in New Issue
Block a user