Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE
epy
epy.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File epy.spec of Package epy
# # spec file for package epy # # Copyright (c) 2024 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/ # %global pythons python311 %{?sle15_python_module_pythons} Name: epy Version: 2022.12.11+git.1675870044.c7a87f3 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.xz BuildRequires: %{python_module curses} BuildRequires: %{python_module mobi} BuildRequires: %{python_module pip} BuildRequires: %{python_module poetry-core} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes Requires: python311-curses Requires: python311-mobi Suggests: dictd Suggests: mimic Suggests: sdcv 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 -print0 | while IFS= read -r -d $'\0' script; do sed -i "1{/#!\s*\/usr\/bin\/\(env \)\?python/d}" "$script" chmod -x "$script" done %build python3.11 -mpip wheel --no-deps --disable-pip-version-check --use-pep517 \ --no-build-isolation --progress-bar off --verbose . -w build/ %install python3.11 -mpip install --root %{buildroot} --no-warn-script-location \ --disable-pip-version-check --no-compile --no-deps --progress-bar off \ build/epy_reader-*-py3-none-any.whl %check export PYTHONDONTWRITEBYTECODE=1 export PYTHONPATH=%{buildroot}/%{python311_sitelib} python3.11 -m pytest -v tests %files %doc README.md %license LICENSE %{_bindir}/epy %{python311_sitelib}/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor