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> | Wed Jan 10 17:24:04 UTC 2024 - Michal Suchanek <msuchanek@suse.com> | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| # | # | ||||||
| # spec file for package python-mobi | # 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 | # All modifications and additions to the file contributed by third parties | ||||||
| # remain the property of their copyright owners, unless otherwise agreed | # 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 | License:        GPL-3.0-only | ||||||
| URL:            https://github.com/iscc/mobi | URL:            https://github.com/iscc/mobi | ||||||
| Source:         https://files.pythonhosted.org/packages/source/m/mobi/mobi-%{version}.tar.gz | Source:         https://files.pythonhosted.org/packages/source/m/mobi/mobi-%{version}.tar.gz | ||||||
|  | BuildRequires:  %{python_module pip} | ||||||
| BuildRequires:  %{python_module setuptools} | BuildRequires:  %{python_module setuptools} | ||||||
|  | BuildRequires:  %{python_module wheel} | ||||||
| BuildRequires:  fdupes | BuildRequires:  fdupes | ||||||
| BuildRequires:  python-rpm-macros | BuildRequires:  python-rpm-macros | ||||||
| Requires:       python-loguru >= 0.4 | Requires:       python-loguru >= 0.4 | ||||||
| @@ -38,10 +40,10 @@ Python library for unpacking unencrypted mobi files (forked from KindleUnpack) | |||||||
| %setup -q -n mobi-%{version} | %setup -q -n mobi-%{version} | ||||||
|  |  | ||||||
| %build | %build | ||||||
| %python_build | %pyproject_wheel | ||||||
|  |  | ||||||
| %install | %install | ||||||
| %python_install | %pyproject_install | ||||||
| %python_clone -a %{buildroot}%{_bindir}/mobiunpack | %python_clone -a %{buildroot}%{_bindir}/mobiunpack | ||||||
| %python_expand %fdupes %{buildroot}%{$python_sitelib} | %python_expand %fdupes %{buildroot}%{$python_sitelib} | ||||||
|  |  | ||||||
| @@ -58,6 +60,7 @@ Python library for unpacking unencrypted mobi files (forked from KindleUnpack) | |||||||
| %doc README.md | %doc README.md | ||||||
| %license LICENSE | %license LICENSE | ||||||
| %python_alternative %{_bindir}/mobiunpack | %python_alternative %{_bindir}/mobiunpack | ||||||
| %{python_sitelib}/* | %{python_sitelib}/mobi | ||||||
|  | %{python_sitelib}/mobi-%{version}*-info | ||||||
|  |  | ||||||
| %changelog | %changelog | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user