From 3866da51710219d9f4173f9e9c12572220a440dc0db6050961cb60c72f86d580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 2 Jun 2025 12:53:34 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mobi?expand=0&rev=8 --- python-mobi.changes | 5 +++++ python-mobi.spec | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/python-mobi.changes b/python-mobi.changes index b09573f..1befd17 100644 --- a/python-mobi.changes +++ b/python-mobi.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 2 12:53:24 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Wed Jan 10 17:24:04 UTC 2024 - Michal Suchanek diff --git a/python-mobi.spec b/python-mobi.spec index ebe8fe2..98965f9 100644 --- a/python-mobi.spec +++ b/python-mobi.spec @@ -1,7 +1,7 @@ # # spec file for package python-mobi # -# Copyright (c) 2024 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: Library for unpacking unencrypted mobi files License: GPL-3.0-only URL: https://github.com/iscc/mobi Source: https://files.pythonhosted.org/packages/source/m/mobi/mobi-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-loguru >= 0.4 @@ -38,10 +40,10 @@ Python library for unpacking unencrypted mobi files (forked from KindleUnpack) %setup -q -n mobi-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/mobiunpack %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -58,6 +60,7 @@ Python library for unpacking unencrypted mobi files (forked from KindleUnpack) %doc README.md %license LICENSE %python_alternative %{_bindir}/mobiunpack -%{python_sitelib}/* +%{python_sitelib}/mobi +%{python_sitelib}/mobi-%{version}*-info %changelog