From 25b2804fef464465a3cb7626703810493fe54bee2faf51937852345bd77d8f48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 4 Jun 2025 09:29:14 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pychm?expand=0&rev=11 --- python-pychm.changes | 5 +++++ python-pychm.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-pychm.changes b/python-pychm.changes index 88a6a4f..0f0197e 100644 --- a/python-pychm.changes +++ b/python-pychm.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 4 09:28:58 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Thu Jun 29 16:59:51 UTC 2023 - Matej Cepl diff --git a/python-pychm.spec b/python-pychm.spec index e210206..47a6cc9 100644 --- a/python-pychm.spec +++ b/python-pychm.spec @@ -1,7 +1,7 @@ # -# spec file +# spec file for package python-pychm # -# 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,8 @@ # -%{?sle15_python_module_pythons} %define pkgname pychm +%{?sle15_python_module_pythons} Name: python-%{pkgname} Version: 0.8.6 Release: 0 @@ -26,7 +26,9 @@ License: GPL-2.0-or-later URL: https://github.com/dottedmag/pychm Source0: https://files.pythonhosted.org/packages/source/p/pychm/pychm-%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: chmlib-devel BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -44,10 +46,10 @@ files - Compressed Html Help files (.chm). %build export CFLAGS="%{optflags}" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %fdupes %{buildroot} %files %{python_files}