2020-01-20 08:12:11 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-geomet
|
|
|
|
#
|
2024-01-26 21:27:22 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2020-01-20 08:12:11 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-geomet
|
2024-01-26 21:27:22 +00:00
|
|
|
Version: 1.1.0
|
2020-01-20 08:12:11 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: GeoJSON <-> WKT/WKB conversion utilities
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
URL: https://github.com/geomet/geomet
|
2020-01-20 08:16:58 +00:00
|
|
|
Source: https://github.com/geomet/geomet/archive/%{version}.tar.gz
|
2024-01-26 21:27:22 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2020-01-20 08:12:11 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-01-26 21:27:22 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2020-01-20 08:12:11 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-click
|
2020-05-27 13:10:48 +00:00
|
|
|
Requires(post): update-alternatives
|
2024-01-26 21:27:22 +00:00
|
|
|
Requires(postun): update-alternatives
|
2020-01-20 08:12:11 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module click}
|
2020-01-20 08:16:58 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2020-01-20 08:12:11 +00:00
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
GeoJSON <-> WKT/WKB conversion utilities
|
|
|
|
|
|
|
|
%prep
|
2023-05-11 13:25:51 +00:00
|
|
|
%autosetup -p1 -n geomet-%{version}
|
2020-01-20 08:12:11 +00:00
|
|
|
|
|
|
|
%build
|
2023-05-11 13:25:51 +00:00
|
|
|
sed -i '1{/^#!/ d}' geomet/*.py
|
2024-01-26 21:27:22 +00:00
|
|
|
%pyproject_wheel
|
2020-01-20 08:12:11 +00:00
|
|
|
|
|
|
|
%install
|
2024-01-26 21:27:22 +00:00
|
|
|
%pyproject_install
|
2020-05-27 13:10:48 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/geomet
|
2020-01-20 08:12:11 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
2020-01-20 08:16:58 +00:00
|
|
|
%check
|
2023-05-11 13:25:51 +00:00
|
|
|
%pytest
|
2020-05-27 13:10:48 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
%python_install_alternative geomet
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative geomet
|
2020-01-20 08:16:58 +00:00
|
|
|
|
2020-01-20 08:12:11 +00:00
|
|
|
%files %{python_files}
|
|
|
|
%doc AUTHORS.txt README.md
|
|
|
|
%license LICENSE
|
2020-05-27 13:10:48 +00:00
|
|
|
%python_alternative %{_bindir}/geomet
|
2020-01-20 08:12:11 +00:00
|
|
|
%{python_sitelib}/geomet
|
2024-01-26 21:27:22 +00:00
|
|
|
%{python_sitelib}/geomet-%{version}.dist-info
|
2020-01-20 08:12:11 +00:00
|
|
|
|
|
|
|
%changelog
|