From aa9d7d67257018470c8fac5302f32227d486ed92a59c891e949e46df8b3567f4 Mon Sep 17 00:00:00 2001 From: Lars Vogdt Date: Tue, 14 Sep 2021 08:43:15 +0000 Subject: [PATCH] Accepting request 909022 from home:nopeinomicon Useful minimal text-based ebook reader OBS-URL: https://build.opensuse.org/request/show/909022 OBS-URL: https://build.opensuse.org/package/show/Education/epy?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++ epy-2021.7.16.tar.gz | 3 +++ epy.changes | 15 +++++++++++ epy.spec | 64 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 105 insertions(+) create mode 100644 .gitattributes create mode 100644 epy-2021.7.16.tar.gz create mode 100644 epy.changes create mode 100644 epy.spec 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/epy-2021.7.16.tar.gz b/epy-2021.7.16.tar.gz new file mode 100644 index 0000000..572a84a --- /dev/null +++ b/epy-2021.7.16.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:23cf70ce4b2a60b7e8e35afb5609c9a0d2565be7000bf6f0fa69c6156e8efe74 +size 34115 diff --git a/epy.changes b/epy.changes new file mode 100644 index 0000000..4719c2d --- /dev/null +++ b/epy.changes @@ -0,0 +1,15 @@ +------------------------------------------------------------------- +Wed Jul 28 23:20:26 UTC 2021 - Emily Roberts + +- Simplify spec, remove differing python versions from initial package generation +- Change package name to epy as it better reflects the acutal package name on GitHub + +------------------------------------------------------------------- +Wed Jul 28 22:33:02 UTC 2021 - Emily Roberts + +- Add Suggests for supported dictionary applications + +------------------------------------------------------------------- +Wed Jul 28 22:12:31 UTC 2021 - Emily Roberts + +- Initial package version diff --git a/epy.spec b/epy.spec new file mode 100644 index 0000000..efc0665 --- /dev/null +++ b/epy.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-epy-reader +# +# Copyright (c) 2021 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/ +# + +Name: epy +Version: 2021.7.16 +Release: 0 +Summary: CLI ebook reader +License: GPL-3.0 +URL: https://github.com/wustho/epy +Source: https://files.pythonhosted.org/packages/source/e/epy-reader/epy-reader-%{version}.tar.gz#/epy-%{version}.tar.gz +BuildRequires: python3-setuptools +BuildRequires: python3-mobi +BuildRequires: fdupes +Requires: python3-mobi +Suggests: sdcv +Suggests: dictd +BuildArch: noarch + +%description +CLI Ebook reader. Fork of epr with these extra features: + + Supported formats: + Epub (.epub, .epub3) + FictionBook (.fb2) + Mobi (.mobi) + AZW3 (.azw3), some but not all + + Reading progress percentage + Bookmarks + External dictionary integration (sdcv or dict) + Inline formats: bold and italic (depend on terminal and font capability. Italic only supported in python>=3.7) + Text-to-Speech (with additional setup) + Double Spread + +%prep +%setup -q -n epy-reader-%{version} + +%build +python3 setup.py build + +%install +python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%files +%doc README.md +%license LICENSE +%{_bindir}/epy +%{python3_sitelib}/* + +%changelog