15
0
forked from pool/python-gpxpy

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gpxpy?expand=0&rev=15
This commit is contained in:
2025-05-27 14:09:08 +00:00
committed by Git OBS Bridge
parent ae1a146fbd
commit 4f0656dc32
2 changed files with 14 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-gpxpy
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,8 +16,6 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-gpxpy
Version: 1.6.2
Release: 0
@@ -26,11 +24,13 @@ License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/tkrajina/gpxpy
Source: https://files.pythonhosted.org/packages/source/g/gpxpy/gpxpy-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires(post): alts
Requires(postun): alts
BuildArch: noarch
%python_subpackages
@@ -42,10 +42,10 @@ GPX is an XML based format for GPS tracks.
%setup -q -n gpxpy-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/gpxinfo
%python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -62,6 +62,7 @@ GPX is an XML based format for GPS tracks.
%license LICENSE.txt
%doc README.md
%python_alternative %{_bindir}/gpxinfo
%{python_sitelib}/*
%{python_sitelib}/gpxpy
%{python_sitelib}/gpxpy-%{version}*-info
%changelog