From 5dbfc485d600f2e7876686c34bda0f68476167bb0915c004f94859e74e19781e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 13 Jun 2025 12:16:00 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-svgwrite?expand=0&rev=23 --- python-svgwrite.changes | 5 +++++ python-svgwrite.spec | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/python-svgwrite.changes b/python-svgwrite.changes index 539afe8..a0e694a 100644 --- a/python-svgwrite.changes +++ b/python-svgwrite.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 13 12:15:47 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Jan 5 12:40:40 UTC 2024 - ecsos diff --git a/python-svgwrite.spec b/python-svgwrite.spec index 8a3925e..960e2e3 100644 --- a/python-svgwrite.spec +++ b/python-svgwrite.spec @@ -1,7 +1,7 @@ # # spec file for package python-svgwrite # -# Copyright (c) 2022 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 @@ -24,7 +24,9 @@ Summary: Python module for creating SVG drawings License: MIT URL: https://github.com/mozman/svgwrite Source: https://files.pythonhosted.org/packages/source/s/svgwrite/svgwrite-%{version}.zip +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip @@ -45,10 +47,10 @@ find svgwrite -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \; -exec sed -i 's/\ sed -i 's/\r$//' LICENSE.TXT NEWS.rst README.rst %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -59,6 +61,7 @@ sed -i 's/\r$//' LICENSE.TXT NEWS.rst README.rst %files %{python_files} %doc NEWS.rst README.rst %license LICENSE.TXT -%{python_sitelib}/* +%{python_sitelib}/svgwrite +%{python_sitelib}/svgwrite-%{version}*-info %changelog