4 Commits

2 changed files with 22 additions and 13 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Jun 9 12:34:21 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Tue May 27 14:08:53 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Mon Dec 18 20:34:52 UTC 2023 - Dirk Müller <dmueller@suse.com>

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,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%bcond_without libalternatives
Name: python-gpxpy
Version: 1.6.2
Release: 0
@@ -26,11 +25,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: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires: alts
BuildArch: noarch
%python_subpackages
@@ -42,26 +43,24 @@ 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}
%check
%pyunittest discover -v
%post
%python_install_alternative gpxinfo
%postun
%python_uninstall_alternative gpxinfo
%pre
%python_libalternatives_reset_alternative gpxinfo
%files %{python_files}
%license LICENSE.txt
%doc README.md
%python_alternative %{_bindir}/gpxinfo
%{python_sitelib}/*
%{python_sitelib}/gpxpy
%{python_sitelib}/gpxpy-%{version}*-info
%changelog