14
0
forked from pool/python-gpxpy

- Convert to libalternatives

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gpxpy?expand=0&rev=17
This commit is contained in:
2025-06-09 12:35:45 +00:00
committed by Git OBS Bridge
parent 4f0656dc32
commit 1e5ccfe65d
2 changed files with 10 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
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>

View File

@@ -16,6 +16,7 @@
#
%bcond_without libalternatives
Name: python-gpxpy
Version: 1.6.2
Release: 0
@@ -27,10 +28,10 @@ Source: https://files.pythonhosted.org/packages/source/g/gpxpy/gpxpy-%{v
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): alts
Requires(postun): alts
Requires: alts
BuildArch: noarch
%python_subpackages
@@ -52,11 +53,8 @@ GPX is an XML based format for GPS tracks.
%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