From 7399fd1fba12aa454153db5e7b27f86d85b3b538c137fc5c4d85c5cd69b0da07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 12 Jun 2025 12:05:30 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-simplekml?expand=0&rev=11 --- python-simplekml.changes | 5 +++++ python-simplekml.spec | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/python-simplekml.changes b/python-simplekml.changes index 0d0923f..4f16440 100644 --- a/python-simplekml.changes +++ b/python-simplekml.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 12 12:05:10 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Oct 7 15:40:41 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-simplekml.spec b/python-simplekml.spec index 2f3291c..ce00ee2 100644 --- a/python-simplekml.spec +++ b/python-simplekml.spec @@ -1,7 +1,7 @@ # # spec file for package python-simplekml # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2025 SUSE LLC # Copyright (c) 2016-2019, Martin Hauke # # All modifications and additions to the file contributed by third parties @@ -17,16 +17,17 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-simplekml Version: 1.3.6 Release: 0 Summary: A Simple KML creator License: LGPL-3.0-or-later -URL: http://readthedocs.org/projects/simplekml/ +URL: https://readthedocs.org/projects/simplekml/ Source: https://files.pythonhosted.org/packages/source/s/simplekml/simplekml-%{version}.tar.gz Source1: https://raw.githubusercontent.com/eisoldt/simplekml/master/LICENSE.txt +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -45,10 +46,10 @@ sed -i 's/\r$//' README.md cp %{SOURCE1} . %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} #%%check @@ -58,6 +59,6 @@ cp %{SOURCE1} . %license LICENSE.txt %doc README.md %{python_sitelib}/simplekml -%{python_sitelib}/simplekml-%{version}-py%{python_version}.egg-info +%{python_sitelib}/simplekml-%{version}*-info %changelog