Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 32a8bd6bcd | |||
| 8554419fae | |||
| ae6a1e300a | |||
| dd19fca30d |
@@ -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>
|
Mon Dec 18 20:34:52 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-gpxpy
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,8 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%bcond_without libalternatives
|
||||||
%define skip_python2 1
|
|
||||||
Name: python-gpxpy
|
Name: python-gpxpy
|
||||||
Version: 1.6.2
|
Version: 1.6.2
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -26,11 +25,13 @@ License: Apache-2.0
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/tkrajina/gpxpy
|
URL: https://github.com/tkrajina/gpxpy
|
||||||
Source: https://files.pythonhosted.org/packages/source/g/gpxpy/gpxpy-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/g/gpxpy/gpxpy-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: alts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires(post): update-alternatives
|
Requires: alts
|
||||||
Requires(postun):update-alternatives
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -42,26 +43,24 @@ GPX is an XML based format for GPS tracks.
|
|||||||
%setup -q -n gpxpy-%{version}
|
%setup -q -n gpxpy-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/gpxinfo
|
%python_clone -a %{buildroot}%{_bindir}/gpxinfo
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pyunittest discover -v
|
%pyunittest discover -v
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative gpxinfo
|
%python_libalternatives_reset_alternative gpxinfo
|
||||||
|
|
||||||
%postun
|
|
||||||
%python_uninstall_alternative gpxinfo
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%python_alternative %{_bindir}/gpxinfo
|
%python_alternative %{_bindir}/gpxinfo
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/gpxpy
|
||||||
|
%{python_sitelib}/gpxpy-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user