2021-09-14 10:43:15 +02:00
|
|
|
#
|
2021-11-27 14:31:19 +01:00
|
|
|
# spec file for package epy
|
2021-09-14 10:43:15 +02:00
|
|
|
#
|
2022-01-08 08:39:58 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2021-09-14 10:43:15 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2021-11-27 14:31:19 +01:00
|
|
|
|
2021-09-14 10:43:15 +02:00
|
|
|
Name: epy
|
2022-01-09 00:30:44 +01:00
|
|
|
Version: 2022.1.8+git.1641653565.c1f9b4e
|
2021-09-14 10:43:15 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: CLI ebook reader
|
2021-11-27 14:31:19 +01:00
|
|
|
License: GPL-3.0-only
|
2021-09-14 10:43:15 +02:00
|
|
|
URL: https://github.com/wustho/epy
|
2021-11-27 14:34:19 +01:00
|
|
|
# Source: https://files.pythonhosted.org/packages/source/e/epy-reader/epy-reader-%%{version}.tar.gz#/epy-%%{version}.tar.gz
|
|
|
|
Source: epy-%{version}.tar.gz
|
2021-09-14 10:43:15 +02:00
|
|
|
BuildRequires: fdupes
|
2021-11-27 14:31:19 +01:00
|
|
|
BuildRequires: python3-mobi
|
|
|
|
BuildRequires: python3-setuptools
|
2021-09-14 10:43:15 +02:00
|
|
|
Requires: python3-mobi
|
|
|
|
Suggests: sdcv
|
|
|
|
Suggests: dictd
|
2021-12-20 20:40:25 +01:00
|
|
|
Suggests: mimic
|
2021-09-14 10:43:15 +02:00
|
|
|
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
|
2021-11-27 14:31:19 +01:00
|
|
|
%autosetup -p1 -n epy-%{version}
|
2021-09-14 10:43:15 +02:00
|
|
|
|
2022-01-08 08:39:58 +01:00
|
|
|
# All those shebangs are just harmful
|
|
|
|
find . -name \*.py -exec sed -i "1{/#!\/usr\/bin\/env python/d}" '{}' \;
|
|
|
|
|
2021-09-14 10:43:15 +02:00
|
|
|
%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
|