forked from pool/python-mobi
- Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mobi?expand=0&rev=8
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 2 12:53:24 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to pip-based build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 10 17:24:04 UTC 2024 - Michal Suchanek <msuchanek@suse.com>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user