epy/epy.spec
Matej Cepl 71b0703407 - Update to version 2021.10.23+git.1641627031.7bd659d:
* .mkpkg -> Makefile
  * Patch PKGBUILD

- Update to version 2021.10.23+git.1641622438.69c2f80:
  * Hotfix: curses has no attrib window in termux
  * Added default color config
  * Added PKGBUILD for Arch
  * Adjust setup.py and pyproject.toml to include epy_extras
  * Cleanup on failed ebook initialization
  * Initial prepackaging kindleunpack with epy
  * Use setuptools as setup backend instead of poetry
  * Update version and README.md
  * Change history matching key from filepath to title author
  * Initial library implementation
  * Always calculate reading_progress whenever possible, just not always shown
  * Refactor attribute name
  * Fixed book metadata
  * Add (sup|sub)script lookup table
  * Implement HTMLtoLines._group_spans_by_row()
  * Hotfix: adjust starting_line for inline style
  * Add text mark/span grouper method
  * Initial refactor: inline styling
  * Add ipdb dev dependency
  * Hotfix: Skip adding toc entry for empty label name
  * Update development env using poetry
  * Fix path resolver for Mobi.get_img_bytstr()
  * Add tests
  * Add requirements-dev.txt
  * Add support for Epub==v1.0 and simplify path resolver

OBS-URL: https://build.opensuse.org/package/show/Education/epy?expand=0&rev=9
2022-01-08 07:39:58 +00:00

71 lines
2.0 KiB
RPMSpec

#
# spec file for package epy
#
# Copyright (c) 2022 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.10.23+git.1641627031.7bd659d
Release: 0
Summary: CLI ebook reader
License: GPL-3.0-only
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
Source: epy-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python3-mobi
BuildRequires: python3-setuptools
Requires: python3-mobi
Suggests: sdcv
Suggests: dictd
Suggests: mimic
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
%autosetup -p1 -n epy-%{version}
# All those shebangs are just harmful
find . -name \*.py -exec sed -i "1{/#!\/usr\/bin\/env python/d}" '{}' \;
%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