diff --git a/python-gpxpy.changes b/python-gpxpy.changes index ccda07f..bbcc40b 100644 --- a/python-gpxpy.changes +++ b/python-gpxpy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 27 14:08:53 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Mon Dec 18 20:34:52 UTC 2023 - Dirk Müller diff --git a/python-gpxpy.spec b/python-gpxpy.spec index f49d7f3..b685cff 100644 --- a/python-gpxpy.spec +++ b/python-gpxpy.spec @@ -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