Matej Cepl
a61c1e4359
- Add better chapter error reporting, refactor proceed_question code. - Add plugin options to mark success/failed/chapter error individually. - Clear metadata cache after adapter metadata fetch. Cached metadata values may not be replace_metadata processed if fetched before their conditional dependencies. Revealed by AO3 one-shots using title for chapter name. - Re-enable ffnet and bump up sleep times for same. - ffnet fpcom, continue_on_chapter_error:true by default, increase sleep times. - First rough version of reporting continue_on_chapter_error chapters. - Report chapter_error in custom error column and marked (when configured). - Update to cloudscraper v1.2.52 - Increase times between retries on fetch error. - Tweek ffnet/fpcom sleep times again. - slow_down_sleep_time: randomize between 0.5 time and 1.5 time. - Report cloudscraper exceptions as such, plus hide the potentially misleading 'opensource' part. - adapter_fanficsme: do an extra fetch before login for cookie(?) Closes #633 - adapter_webnovelcom: Fixes for site changes. Closes #629 - quotev.com: site change in date parse, use utf8:ignore as first encoding choice. Closes #625 - Update to version 3.28.0+git.1610814197.37cdec2f: OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=64
95 lines
3.0 KiB
RPMSpec
95 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package python-fanficfare
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%define modname FanFicFare
|
|
%define modnamedown fanficfare
|
|
%define skip_python2 1
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-fanficfare
|
|
Version: 3.29.0
|
|
Release: 0
|
|
Summary: Tool for making eBooks from stories on fanfiction and other web sites
|
|
License: GPL-3.0-only
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/JimmXinu/FanFicFare
|
|
Source: https://github.com/JimmXinu/%{modname}/archive/v%{version}/%{modname}-%{version}.tar.gz
|
|
# Source: %%{modname}-%%{version}.tar.gz
|
|
BuildRequires: %{python_module beautifulsoup4}
|
|
BuildRequires: %{python_module chardet}
|
|
BuildRequires: %{python_module cloudscraper}
|
|
BuildRequires: %{python_module html2text}
|
|
BuildRequires: %{python_module html5lib}
|
|
BuildRequires: %{python_module setuptools >= 17.1}
|
|
BuildRequires: dos2unix
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-beautifulsoup4
|
|
Requires: python-chardet
|
|
Requires: python-cloudscraper
|
|
Requires: python-html2text
|
|
Requires: python-html5lib
|
|
Requires: python-setuptools
|
|
Requires(post): update-alternatives
|
|
Requires(postun): update-alternatives
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
FanFicFare is a tool for downloading fanfiction and original stories from various sites into ebook form.
|
|
|
|
FanFicFare is the rename and move of the FanFictionDownLoader (AKA FFDL, AKA fanficdownloader) project.
|
|
|
|
Main Features of FanFicFare:
|
|
- Download fanfiction stories from various sites into ebooks.
|
|
- Create various ebook formats (currently epub, mobi, HTML, txt)
|
|
- Also available as a Calibre plugin (not in this package)
|
|
- Ability to update already downloaded book
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{modname}-%{version}
|
|
|
|
rm -rf included_dependencies/
|
|
|
|
sed -i -e '/^#!\/usr\/bin\/python/d' fanficfare/mobi{,html}.py
|
|
dos2unix DESCRIPTION.rst README.md
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_clone -a %{buildroot}%{_bindir}/%{modnamedown}
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%post
|
|
%python_install_alternative fanficfare
|
|
|
|
%postun
|
|
%python_uninstall_alternative fanficfare
|
|
|
|
%check
|
|
# no upstream tests
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc DESCRIPTION.rst README.md
|
|
%python_alternative %{_bindir}/%{modnamedown}
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|