From 99476ce8c545dd91b666ae70a4f33f1d3c4c415d7ea2a6def24d6f37659badac Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 5 Jun 2025 06:05:20 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-defcon?expand=0&rev=22 --- python-defcon.changes | 5 +++++ python-defcon.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/python-defcon.changes b/python-defcon.changes index 6f7f598..bba730b 100644 --- a/python-defcon.changes +++ b/python-defcon.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 5 06:01:35 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Tue Apr 15 08:08:48 UTC 2025 - Dirk Müller diff --git a/python-defcon.spec b/python-defcon.spec index c4ad241..43d834c 100644 --- a/python-defcon.spec +++ b/python-defcon.spec @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 %define skip_python36 1 Name: python-defcon @@ -26,8 +25,10 @@ Summary: A set of UFO based objects for use in font editing applications License: MIT URL: https://github.com/robotools/defcon Source: https://files.pythonhosted.org/packages/source/d/defcon/defcon-%{version}.zip +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip @@ -56,10 +57,10 @@ A set of UFO based objects optimized for use in font editing applications. sed -i -e '1{\,^#!%{_bindir}/env python,d}' Lib/defcon/test/tools/test_unicodeTools.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check