From 48b960918fd40d57748607e96efc2570a4603587bc67e6d497688fa18e84d2e9 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 16 Jun 2025 06:20:20 +0000 Subject: [PATCH] - Switch to pyroject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-compressed_rtf?expand=0&rev=7 --- python-compressed_rtf.changes | 5 +++++ python-compressed_rtf.spec | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/python-compressed_rtf.changes b/python-compressed_rtf.changes index a98a8b3..558892f 100644 --- a/python-compressed_rtf.changes +++ b/python-compressed_rtf.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 16 06:12:18 UTC 2025 - Steve Kowalik + +- Switch to pyroject macros. + ------------------------------------------------------------------- Tue Mar 25 19:16:40 UTC 2025 - Martin Hauke diff --git a/python-compressed_rtf.spec b/python-compressed_rtf.spec index d0a8954..e56f45c 100644 --- a/python-compressed_rtf.spec +++ b/python-compressed_rtf.spec @@ -26,7 +26,9 @@ License: MIT URL: https://github.com/delimitry/compressed_rtf Source: compressed_rtf-%{version}.tar.xz Patch0: 0001-fix-pyproject.toml-license-format.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -39,10 +41,10 @@ Compressed Rich Text Format (RTF) compression and decompression package %autosetup -p1 -n compressed_rtf-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -51,6 +53,7 @@ Compressed Rich Text Format (RTF) compression and decompression package %files %{python_files} %license LICENSE %doc README.md -%{python_sitelib}/compressed_rtf* +%{python_sitelib}/compressed_rtf +%{python_sitelib}/compressed_rtf-%{version}.dist-info %changelog