From ca731496ab30a867443c156405f39f67bcfce227f7b7c02eae59eb894a7d701e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 28 May 2025 12:14:04 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imbox?expand=0&rev=19 --- python-imbox.changes | 5 +++++ python-imbox.spec | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/python-imbox.changes b/python-imbox.changes index ef8b1b8..1516018 100644 --- a/python-imbox.changes +++ b/python-imbox.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 28 12:13:53 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Wed Jun 3 11:09:51 UTC 2020 - Sebastian Wagner diff --git a/python-imbox.spec b/python-imbox.spec index 42fd1a2..f1a2436 100644 --- a/python-imbox.spec +++ b/python-imbox.spec @@ -1,7 +1,7 @@ # # spec file for package python-imbox # -# Copyright (c) 2020 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,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 Name: python-imbox Version: 0.9.8 Release: 0 @@ -28,7 +26,9 @@ URL: https://github.com/martinrusev/imbox Source: https://files.pythonhosted.org/packages/source/i/imbox/imbox-%{version}.tar.gz BuildRequires: %{python_module chardet} BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-chardet @@ -41,15 +41,16 @@ Python library for reading IMAP mailboxes and converting email content to machin %setup -q -n imbox-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/imbox +%{python_sitelib}/imbox-%{version}*-info %changelog