14
0
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:
2025-06-02 12:53:34 +00:00
committed by Git OBS Bridge
commit d533f0cb3a
5 changed files with 135 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
mobi-0.3.3.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:919f60c3834c5885012210afc84a03a457fb8e58587037060a095b63ac832524
size 90864

42
python-mobi.changes Normal file
View File

@@ -0,0 +1,42 @@
-------------------------------------------------------------------
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>
- Build for python 3.11 on Leap
-------------------------------------------------------------------
Thu Sep 29 16:33:34 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update version 0.3.3
* Downgrade pytest
* Update dependencies and switch to poetry.core.masonry.api.
* Remove python 3.6 support (EOL)
* Remove py3.10 from CI
* Downgrade virtualenv in build workflow
* Add GitHub build workflow
* Merge branch 'master' of https://github.com/iscc/mobi
- Update version 0.3.2 with updated dependencies.
* Merge pull request #7 from dm9pZCAq/master
* mobiml2xhtml.py: fix python2 code
- Update Version 0.3.1 fixes #3
* Update dependencies.
* Merge pull request #2 from rpdelaney/homepage_url
* Fix homepage in pyproject.toml
* Add support for file-like inputs
* Add support for mobi7 only and print replica (pdf)
* replace most print calls with logging, bump version
* minimal working epub extraction with test
* wrap command line interface as `mobiunpack`
* add kindleunpack sources and update readme
* add license
* add poetry boilerplate
* add gitignore
-------------------------------------------------------------------
Wed Jul 28 22:09:43 UTC 2021 - Emily Roberts <nopeinomicon@posteo.net>
- Initial package version

66
python-mobi.spec Normal file
View File

@@ -0,0 +1,66 @@
#
# spec file for package python-mobi
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-mobi
Version: 0.3.3
Release: 0
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
BuildArch: noarch
%python_subpackages
%description
Python library for unpacking unencrypted mobi files (forked from KindleUnpack)
%prep
%setup -q -n mobi-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/mobiunpack
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# test files are not installable
%post
%python_install_alternative mobiunpack
%postun
%python_uninstall_alternative mobiunpack
%files %{python_files}
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/mobiunpack
%{python_sitelib}/mobi
%{python_sitelib}/mobi-%{version}*-info
%changelog