1
0
python-fanficfare/python-fanficfare.spec
Tomáš Chvátal 2cfd4d9636 Accepting request 719799 from home:pgajdos
- version update to 3.10.1
  * Additional error checking and output for IMAP4 fetch.
  * Add always_include_first_post_chapters to base_xenforoforum_adapter
  * XF posts can include a tags without href, look for href searching for links. Closes #417
  * Add work around to fix XF2 issue with multiple '...' in threadmarks.
  * Tweak getting URLs from email for SV XF2 changes, don't get post URLs.
  * Changes to adapter_forumssufficientvelocitycom for XenForo2 migration.
  * Fix for Plugin: Group reported results better for meta-only updates.
  * Plugin: Group reported results better.
  * Add a de-dup check to XF threadmark collection due to at least one SB story having TM bug.
  * Adjust reader_posts_per_page for forum.questionablequesting.com.
  * adapter_wuxiaworldco: Don't include grayed out 'In preparation' chapters
  * Move BS version debug so it doesn't appear in CLI without -d.
  * Fix for regression on XF not-first index post.
  * Fix for a corner-case global_cache written by py2, then read by py3 bug.
  * Update included dependencies -- mostly for Calibre 2.85.1.
  * adapter_asianfanficscom json fixes - thanks oh45454545
  * adapter_asianfanficscom foreword json fix - thanks oh45454545
  * Change metadata separator to ' & ' when filling 'Contains names' custom columns.
  * Fix for adapter_asianfanficscom change for views metadata
  * Fix for site change adapter_novelonlinefullcom
  * More fixes for adapter_asianfanficscom site now giving different HTML to FFF.
  * Fix for some(older?) adapter_asianfanficscom stories not have json links.
  * Fixes for site changes adapter_asianfanficscom
  * Fix for extended chars in text email imap fetchs on py3.
  * Show debug output BeautifulSoup version.
  * adapter_mediaminerorg: Fix for not finding a block in chapter download.
  * Fix for newer BS4/soupsieve enforcing CSS selector rules about :/ chars.
  * Fix for site date change adapter_wuxiaworldcom

OBS-URL: https://build.opensuse.org/request/show/719799
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=21
2019-07-30 10:19:32 +00:00

88 lines
2.8 KiB
RPMSpec

#
# spec file for package python-fanficfare
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-fanficfare
Version: 3.10.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
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