forked from pool/python-fanficfare
Matej Cepl
9afcd8e854
- Fix -s site list for adapter_hpfanficarchivecom. - adapter_valentchambercom - requires SSL and only allows w/o www. - adapter_hpfanficarchivecom - SSL cert SSL_ERROR_RX_RECORD_TOO_LONG, back to http - Update translations. - fiction.live - add support for multi route stories, thanks muchtea! - New Site: wuxiaworld.site, thanks, Kolbo5! - Handle more fiction.live URLs -- closes #541, thanks HazelSh! - fiction.live: null handling in format_readerposts -- closes #539, thanks HazelSh! - fiction.live: changed time formats for livetime metadata, chunk timestamps to avoid localized names -- fixes #538, thanks HazelSh! - adapter_occlumencysycophanthexcom needed another 'needs login' string. - Fix anthology comments for changes in how Calibre handles them. - Display number of URLs found for an anthology. - New site fiction.live, thanks HazelSh! - Fix for Anthology bug when no story has a series. - Added a string for translation. - Add a 'shouldn't happen' error check for anthology merge. - Add note about anthologies and epub3 to plugin-defaults.ini - Show busy cursor during anthology merge & update. - adapter_literotica: Fix for language domain name links on author page. - Fix chapter URLs in wuxiaworld.co. - Update for site changes, wuxiaworld.co update -- thanks, teffalump! - More fixes for wuxiaworld.co update -- thanks, teffalump! - Added wuxiaworld.co specific setting dedup_order_chapter_list to optionally apply teffalump's chapter dedup and ordering code. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=52
90 lines
2.9 KiB
RPMSpec
90 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package python-fanficfare
|
|
#
|
|
# 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 modname FanFicFare
|
|
%define modnamedown fanficfare
|
|
%define skip_python2 1
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-fanficfare
|
|
Version: 3.23.1
|
|
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.xz
|
|
BuildRequires: %{python_module beautifulsoup4}
|
|
BuildRequires: %{python_module chardet}
|
|
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-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
|
|
%setup -q -n %{modname}-%{version}
|
|
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
|