15
0
Files
python-epubmerge/python-epubmerge.spec
Matej Cepl 094b4518ad - Upgrade to 2.9.0:
- Update translations.
  - Set allowZip64=True when writing zip files. Should only
    matter for files >2G.
  - Update cover view as well as tags and library list on new
    book create.
  - Copy six.ensure_binary for Calibre v3.
  - Reduce debug output.
  - Changes for eventual Python3 migration of Calibre.
  - Add 'current time' option to custom datetime columns.
  - Add a check and error message for unsupported epub3.
- Rewrite SPEC into the standard pythonish one.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-epubmerge?expand=0&rev=4
2020-04-20 17:00:22 +00:00

75 lines
2.6 KiB
RPMSpec

#
# spec file for package python-epubmerge
#
# Copyright (c) 2020 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/
#
%define upname EpubMerge
%define upnamedown epubmerge
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-epubmerge
Version: 2.9.0
Release: 0
Summary: EpubMerge Calibre Plugin
License: GPL-3.0-only
Group: Development/Languages/Python
URL: https://github.com/JimmXinu/EpubMerge
Source: https://github.com/JimmXinu/EpubMerge/archive/v%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
This plugin provides the ability to create new EPUBs by combining the contents
of existing (non-DRM) EPUB format eBooks.
Main Features of EpubMerge Plugin:
- Select a list of stories in calibre,
- Order them,
- Edit the metadata for the new combined eBook, and then,
- Merge the contents of the EPUBs together into the new eBook, now
including cover from metadata if set.
- UnMerge previously merged epubs if metadata was saved during merge.
- Configurably able to save the metadata for each merged book for UnMerging
later if desired. (Defaults to On.)
- Configurably able to populate custom columns from source books.
- Options now stored inside the Library rather than an external JSON file.
- CLI
There are a few configurable options: whether or not to insert a Table of
Contents entry for each merged book (with it's original TOC nested underneath
it), an option to flatten the TOC down to one level only, and including the
merged books comments. These options are stored by Library.
%prep
%setup -q -n %{upname}-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%license LICENSE
%doc README.md
%{_bindir}/%{upnamedown}
%{python_sitelib}/%{upname}*
%changelog