commit d533f0cb3aeb18def85f74da923dd7a684b36b7968a616b322517443a356860d Author: Markéta Machová Date: Mon Jun 2 12:53:34 2025 +0000 - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mobi?expand=0&rev=8 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/mobi-0.3.3.tar.gz b/mobi-0.3.3.tar.gz new file mode 100644 index 0000000..86af2c4 --- /dev/null +++ b/mobi-0.3.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:919f60c3834c5885012210afc84a03a457fb8e58587037060a095b63ac832524 +size 90864 diff --git a/python-mobi.changes b/python-mobi.changes new file mode 100644 index 0000000..1befd17 --- /dev/null +++ b/python-mobi.changes @@ -0,0 +1,42 @@ +------------------------------------------------------------------- +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 + +- Build for python 3.11 on Leap + +------------------------------------------------------------------- +Thu Sep 29 16:33:34 UTC 2022 - Yogalakshmi Arunachalam + +- 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 + +- Initial package version diff --git a/python-mobi.spec b/python-mobi.spec new file mode 100644 index 0000000..98965f9 --- /dev/null +++ b/python-mobi.spec @@ -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