15
0
forked from pool/python-geomet
Files
python-geomet/python-geomet.spec
Matej Cepl 6f98a62965 Accepting request 1086483 from home:pgajdos:python
- version update to 1.0.0
  * Fix bug in _round_and_pad with exponential coordinate values (#73)
  * Use assertNotEqual instead of assertNotEquals in tests, for Python 3.11 compatibility (#77)
  * Add support for Python 3.8, 3.9, and 3.10 (#79, #84)
  * Drop support for end-of-life Python versions 2.7, 3.4, 3.5, and 3.6 (#84)
  * Fix structure of coordinate values in GeoJSON to EsriJSON conversion (#82)
  * Update README with to add History and Limitations sections, and to expand on functionality (#86)
- added patches
  fix https://github.com/geomet/geomet/issues/90
  + python-geomet-no-six.patch

OBS-URL: https://build.opensuse.org/request/show/1086483
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-geomet?expand=0&rev=8
2023-05-11 13:25:51 +00:00

74 lines
2.0 KiB
RPMSpec

#
# spec file for package python-geomet
#
# Copyright (c) 2023 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/
#
Name: python-geomet
Version: 1.0.0
Release: 0
Summary: GeoJSON <-> WKT/WKB conversion utilities
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/geomet/geomet
Source: https://github.com/geomet/geomet/archive/%{version}.tar.gz
# https://github.com/geomet/geomet/issues/90
Patch0: python-geomet-no-six.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-click
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module click}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
GeoJSON <-> WKT/WKB conversion utilities
%prep
%autosetup -p1 -n geomet-%{version}
%build
sed -i '1{/^#!/ d}' geomet/*.py
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/geomet
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%post
%python_install_alternative geomet
%postun
%python_uninstall_alternative geomet
%files %{python_files}
%doc AUTHORS.txt README.md
%license LICENSE
%python_alternative %{_bindir}/geomet
%{python_sitelib}/geomet
%{python_sitelib}/geomet-%{version}-py*.egg-info
%changelog