1
0
python-fanficfare/python-fanficfare.spec

90 lines
2.9 KiB
RPMSpec
Raw Normal View History

Accepting request 640896 from home:mcepl - Update to 3.0.0: * Update support for various sites * adapter_chosentwofanficcom: use pagecache and extracategories:Buffy the Vampire Slayer * Add --no-meta-chapters/-z CLI option. * Restore cursor in finally: clauses in case of issues.(plugin) * Update Translations * Tweak mobi output--move TOC to end. * Improve CLI --save-cache, save on each fetch/post, fix a py2/py3 cross bug. * Small fix for <> appearing in text format. * Add latestonly option to mark_new_chapters feature to remove pre-existing (new) chpater marks on update and only mark chapters that are new in this update. Closes #330 * Attempting to get password protected stories in FimF working again. * Fix mobi output -- Fix an encoding issue, Kindle Goto-TOC works, TOC links are more accurate * Many, many changes to make code run on both python 2.7 and python 3. - Package also LICENSE and README.md - Update to version 2.28.0+git.1534354069.445b74bc: * Bump Test Version 2.37.7 * Include LICENSE, etc differently to not end up installed in /usr/local * Bump Test Version 2.37.6 * Cleanup Web Service HTML & CSS a bit. Email ebooks disabled. * Bump Test Version 2.37.4 * Add DESCRIPTION.rst, LICENSE, README.md to pip package. Closes #329 - Update to version 2.28.0+git.1534190226.9694cfa8: * Use chapters collected, not all chapter count for determining TOC inclusion. Closes #328 * Web: stripHTML() on allrecent descriptions. * Web: Save output format setting in cookie. * Put Nook STR Cover 'fix' back in. * Bump Test Version 2.37.3 * MOBI Debug output * Fix for mobi output--link to TOC works again--was broken by html5lib enforcing html5 rules. * Fix for mobi broken page breaks at 'file' boundries and inline 'TOC' links. * Fix for mobi issue with 0 byte record markers being misplaced. * Fix a stray print to log in mobihtml.py - Initial packaging effort OBS-URL: https://build.opensuse.org/request/show/640896 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=1
2018-10-09 23:18:27 +02:00
#
# spec file for package python-fanficfare
#
# Copyright (c) 2020 SUSE LLC
Accepting request 640896 from home:mcepl - Update to 3.0.0: * Update support for various sites * adapter_chosentwofanficcom: use pagecache and extracategories:Buffy the Vampire Slayer * Add --no-meta-chapters/-z CLI option. * Restore cursor in finally: clauses in case of issues.(plugin) * Update Translations * Tweak mobi output--move TOC to end. * Improve CLI --save-cache, save on each fetch/post, fix a py2/py3 cross bug. * Small fix for <> appearing in text format. * Add latestonly option to mark_new_chapters feature to remove pre-existing (new) chpater marks on update and only mark chapters that are new in this update. Closes #330 * Attempting to get password protected stories in FimF working again. * Fix mobi output -- Fix an encoding issue, Kindle Goto-TOC works, TOC links are more accurate * Many, many changes to make code run on both python 2.7 and python 3. - Package also LICENSE and README.md - Update to version 2.28.0+git.1534354069.445b74bc: * Bump Test Version 2.37.7 * Include LICENSE, etc differently to not end up installed in /usr/local * Bump Test Version 2.37.6 * Cleanup Web Service HTML & CSS a bit. Email ebooks disabled. * Bump Test Version 2.37.4 * Add DESCRIPTION.rst, LICENSE, README.md to pip package. Closes #329 - Update to version 2.28.0+git.1534190226.9694cfa8: * Use chapters collected, not all chapter count for determining TOC inclusion. Closes #328 * Web: stripHTML() on allrecent descriptions. * Web: Save output format setting in cookie. * Put Nook STR Cover 'fix' back in. * Bump Test Version 2.37.3 * MOBI Debug output * Fix for mobi output--link to TOC works again--was broken by html5lib enforcing html5 rules. * Fix for mobi broken page breaks at 'file' boundries and inline 'TOC' links. * Fix for mobi issue with 0 byte record markers being misplaced. * Fix a stray print to log in mobihtml.py - Initial packaging effort OBS-URL: https://build.opensuse.org/request/show/640896 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=1
2018-10-09 23:18:27 +02:00
#
# 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/
Accepting request 640896 from home:mcepl - Update to 3.0.0: * Update support for various sites * adapter_chosentwofanficcom: use pagecache and extracategories:Buffy the Vampire Slayer * Add --no-meta-chapters/-z CLI option. * Restore cursor in finally: clauses in case of issues.(plugin) * Update Translations * Tweak mobi output--move TOC to end. * Improve CLI --save-cache, save on each fetch/post, fix a py2/py3 cross bug. * Small fix for <> appearing in text format. * Add latestonly option to mark_new_chapters feature to remove pre-existing (new) chpater marks on update and only mark chapters that are new in this update. Closes #330 * Attempting to get password protected stories in FimF working again. * Fix mobi output -- Fix an encoding issue, Kindle Goto-TOC works, TOC links are more accurate * Many, many changes to make code run on both python 2.7 and python 3. - Package also LICENSE and README.md - Update to version 2.28.0+git.1534354069.445b74bc: * Bump Test Version 2.37.7 * Include LICENSE, etc differently to not end up installed in /usr/local * Bump Test Version 2.37.6 * Cleanup Web Service HTML & CSS a bit. Email ebooks disabled. * Bump Test Version 2.37.4 * Add DESCRIPTION.rst, LICENSE, README.md to pip package. Closes #329 - Update to version 2.28.0+git.1534190226.9694cfa8: * Use chapters collected, not all chapter count for determining TOC inclusion. Closes #328 * Web: stripHTML() on allrecent descriptions. * Web: Save output format setting in cookie. * Put Nook STR Cover 'fix' back in. * Bump Test Version 2.37.3 * MOBI Debug output * Fix for mobi output--link to TOC works again--was broken by html5lib enforcing html5 rules. * Fix for mobi broken page breaks at 'file' boundries and inline 'TOC' links. * Fix for mobi issue with 0 byte record markers being misplaced. * Fix a stray print to log in mobihtml.py - Initial packaging effort OBS-URL: https://build.opensuse.org/request/show/640896 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=1
2018-10-09 23:18:27 +02:00
#
Accepting request 662669 from home:mcepl - Update to version 3.3.9: * Fix metadata parsing for adapter_siyecouk * Fix adapter_whoficcom for site changes. * Update translations. * Fix AO3 logout url used to detect when already logged in. * Add conditionals_use_lists(default:true) setting for replace_metadata & Include/Exclude metadata conditionals. Might change existing behavior for some users. * Remove outdated comment. * Allow ==, !=, =~ and !~ in replace_metadata conditionals like in/exclude_metadata. * Additional metadata edit recursion proofing. * Allow animated gifs through Calibre Image proc -- need to remove gif.py later. * Update some comments in adapter_archiveofourownorg * Additional fix for AO3 login site changes. * Fix for AO3 login site changes. * Update translations * Force Translation Update * Add bookmarkprivate and bookmarkrec site-specific metadata to adapter_archiveofourownorg * Accept archiveofourown.com for archiveofourown.org. archiveofourown.org remains the 'canonical' domain. * Update translations. * Workaround for adapter_hentaifoundrycom bad dateUpdated value. * New Site: www.hentai-foundry.com - Stories only. * Improve recursion-proofing of replace_metadata for performance and duplicate lines. * Don't cache file: URLs. Option --save-cache can mask changes to _filelist files while debugging. * Don't sleep when fetching file: URLs. * Remove defunct site www.artemis-fowl.com * Remove defunct site asr3.slashzone.org * Remove defunct site tolkienfanfiction.com * Remove defunct site fanfiction.tenhawkpresents.com * Remove defunct site unknowableroom.org * Remove defunct site mujaji.net * Update adapter_harrypotterfanfictioncom for site change. * Change for adapter_storiesonlinenet for 'Full Access' stories. - Switch from pull commits to the released tarballs again. OBS-URL: https://build.opensuse.org/request/show/662669 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=9
2019-01-03 14:59:04 +01:00
%define modname FanFicFare
%define modnamedown fanficfare
%define skip_python2 1
Accepting request 640896 from home:mcepl - Update to 3.0.0: * Update support for various sites * adapter_chosentwofanficcom: use pagecache and extracategories:Buffy the Vampire Slayer * Add --no-meta-chapters/-z CLI option. * Restore cursor in finally: clauses in case of issues.(plugin) * Update Translations * Tweak mobi output--move TOC to end. * Improve CLI --save-cache, save on each fetch/post, fix a py2/py3 cross bug. * Small fix for <> appearing in text format. * Add latestonly option to mark_new_chapters feature to remove pre-existing (new) chpater marks on update and only mark chapters that are new in this update. Closes #330 * Attempting to get password protected stories in FimF working again. * Fix mobi output -- Fix an encoding issue, Kindle Goto-TOC works, TOC links are more accurate * Many, many changes to make code run on both python 2.7 and python 3. - Package also LICENSE and README.md - Update to version 2.28.0+git.1534354069.445b74bc: * Bump Test Version 2.37.7 * Include LICENSE, etc differently to not end up installed in /usr/local * Bump Test Version 2.37.6 * Cleanup Web Service HTML & CSS a bit. Email ebooks disabled. * Bump Test Version 2.37.4 * Add DESCRIPTION.rst, LICENSE, README.md to pip package. Closes #329 - Update to version 2.28.0+git.1534190226.9694cfa8: * Use chapters collected, not all chapter count for determining TOC inclusion. Closes #328 * Web: stripHTML() on allrecent descriptions. * Web: Save output format setting in cookie. * Put Nook STR Cover 'fix' back in. * Bump Test Version 2.37.3 * MOBI Debug output * Fix for mobi output--link to TOC works again--was broken by html5lib enforcing html5 rules. * Fix for mobi broken page breaks at 'file' boundries and inline 'TOC' links. * Fix for mobi issue with 0 byte record markers being misplaced. * Fix a stray print to log in mobihtml.py - Initial packaging effort OBS-URL: https://build.opensuse.org/request/show/640896 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=1
2018-10-09 23:18:27 +02:00
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-fanficfare
Version: 3.19.0
Accepting request 640896 from home:mcepl - Update to 3.0.0: * Update support for various sites * adapter_chosentwofanficcom: use pagecache and extracategories:Buffy the Vampire Slayer * Add --no-meta-chapters/-z CLI option. * Restore cursor in finally: clauses in case of issues.(plugin) * Update Translations * Tweak mobi output--move TOC to end. * Improve CLI --save-cache, save on each fetch/post, fix a py2/py3 cross bug. * Small fix for <> appearing in text format. * Add latestonly option to mark_new_chapters feature to remove pre-existing (new) chpater marks on update and only mark chapters that are new in this update. Closes #330 * Attempting to get password protected stories in FimF working again. * Fix mobi output -- Fix an encoding issue, Kindle Goto-TOC works, TOC links are more accurate * Many, many changes to make code run on both python 2.7 and python 3. - Package also LICENSE and README.md - Update to version 2.28.0+git.1534354069.445b74bc: * Bump Test Version 2.37.7 * Include LICENSE, etc differently to not end up installed in /usr/local * Bump Test Version 2.37.6 * Cleanup Web Service HTML & CSS a bit. Email ebooks disabled. * Bump Test Version 2.37.4 * Add DESCRIPTION.rst, LICENSE, README.md to pip package. Closes #329 - Update to version 2.28.0+git.1534190226.9694cfa8: * Use chapters collected, not all chapter count for determining TOC inclusion. Closes #328 * Web: stripHTML() on allrecent descriptions. * Web: Save output format setting in cookie. * Put Nook STR Cover 'fix' back in. * Bump Test Version 2.37.3 * MOBI Debug output * Fix for mobi output--link to TOC works again--was broken by html5lib enforcing html5 rules. * Fix for mobi broken page breaks at 'file' boundries and inline 'TOC' links. * Fix for mobi issue with 0 byte record markers being misplaced. * Fix a stray print to log in mobihtml.py - Initial packaging effort OBS-URL: https://build.opensuse.org/request/show/640896 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=1
2018-10-09 23:18:27 +02:00
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
Accepting request 640896 from home:mcepl - Update to 3.0.0: * Update support for various sites * adapter_chosentwofanficcom: use pagecache and extracategories:Buffy the Vampire Slayer * Add --no-meta-chapters/-z CLI option. * Restore cursor in finally: clauses in case of issues.(plugin) * Update Translations * Tweak mobi output--move TOC to end. * Improve CLI --save-cache, save on each fetch/post, fix a py2/py3 cross bug. * Small fix for <> appearing in text format. * Add latestonly option to mark_new_chapters feature to remove pre-existing (new) chpater marks on update and only mark chapters that are new in this update. Closes #330 * Attempting to get password protected stories in FimF working again. * Fix mobi output -- Fix an encoding issue, Kindle Goto-TOC works, TOC links are more accurate * Many, many changes to make code run on both python 2.7 and python 3. - Package also LICENSE and README.md - Update to version 2.28.0+git.1534354069.445b74bc: * Bump Test Version 2.37.7 * Include LICENSE, etc differently to not end up installed in /usr/local * Bump Test Version 2.37.6 * Cleanup Web Service HTML & CSS a bit. Email ebooks disabled. * Bump Test Version 2.37.4 * Add DESCRIPTION.rst, LICENSE, README.md to pip package. Closes #329 - Update to version 2.28.0+git.1534190226.9694cfa8: * Use chapters collected, not all chapter count for determining TOC inclusion. Closes #328 * Web: stripHTML() on allrecent descriptions. * Web: Save output format setting in cookie. * Put Nook STR Cover 'fix' back in. * Bump Test Version 2.37.3 * MOBI Debug output * Fix for mobi output--link to TOC works again--was broken by html5lib enforcing html5 rules. * Fix for mobi broken page breaks at 'file' boundries and inline 'TOC' links. * Fix for mobi issue with 0 byte record markers being misplaced. * Fix a stray print to log in mobihtml.py - Initial packaging effort OBS-URL: https://build.opensuse.org/request/show/640896 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=1
2018-10-09 23:18:27 +02:00
BuildRequires: %{python_module beautifulsoup4}
BuildRequires: %{python_module chardet}
BuildRequires: %{python_module html2text}
BuildRequires: %{python_module html5lib}
BuildRequires: %{python_module setuptools >= 17.1}
BuildRequires: dos2unix
Accepting request 640896 from home:mcepl - Update to 3.0.0: * Update support for various sites * adapter_chosentwofanficcom: use pagecache and extracategories:Buffy the Vampire Slayer * Add --no-meta-chapters/-z CLI option. * Restore cursor in finally: clauses in case of issues.(plugin) * Update Translations * Tweak mobi output--move TOC to end. * Improve CLI --save-cache, save on each fetch/post, fix a py2/py3 cross bug. * Small fix for <> appearing in text format. * Add latestonly option to mark_new_chapters feature to remove pre-existing (new) chpater marks on update and only mark chapters that are new in this update. Closes #330 * Attempting to get password protected stories in FimF working again. * Fix mobi output -- Fix an encoding issue, Kindle Goto-TOC works, TOC links are more accurate * Many, many changes to make code run on both python 2.7 and python 3. - Package also LICENSE and README.md - Update to version 2.28.0+git.1534354069.445b74bc: * Bump Test Version 2.37.7 * Include LICENSE, etc differently to not end up installed in /usr/local * Bump Test Version 2.37.6 * Cleanup Web Service HTML & CSS a bit. Email ebooks disabled. * Bump Test Version 2.37.4 * Add DESCRIPTION.rst, LICENSE, README.md to pip package. Closes #329 - Update to version 2.28.0+git.1534190226.9694cfa8: * Use chapters collected, not all chapter count for determining TOC inclusion. Closes #328 * Web: stripHTML() on allrecent descriptions. * Web: Save output format setting in cookie. * Put Nook STR Cover 'fix' back in. * Bump Test Version 2.37.3 * MOBI Debug output * Fix for mobi output--link to TOC works again--was broken by html5lib enforcing html5 rules. * Fix for mobi broken page breaks at 'file' boundries and inline 'TOC' links. * Fix for mobi issue with 0 byte record markers being misplaced. * Fix a stray print to log in mobihtml.py - Initial packaging effort OBS-URL: https://build.opensuse.org/request/show/640896 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=1
2018-10-09 23:18:27 +02:00
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-beautifulsoup4
Requires: python-chardet
Requires: python-html2text
Requires: python-html5lib
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 12:19:32 +02:00
Requires: python-setuptools
Accepting request 640896 from home:mcepl - Update to 3.0.0: * Update support for various sites * adapter_chosentwofanficcom: use pagecache and extracategories:Buffy the Vampire Slayer * Add --no-meta-chapters/-z CLI option. * Restore cursor in finally: clauses in case of issues.(plugin) * Update Translations * Tweak mobi output--move TOC to end. * Improve CLI --save-cache, save on each fetch/post, fix a py2/py3 cross bug. * Small fix for <> appearing in text format. * Add latestonly option to mark_new_chapters feature to remove pre-existing (new) chpater marks on update and only mark chapters that are new in this update. Closes #330 * Attempting to get password protected stories in FimF working again. * Fix mobi output -- Fix an encoding issue, Kindle Goto-TOC works, TOC links are more accurate * Many, many changes to make code run on both python 2.7 and python 3. - Package also LICENSE and README.md - Update to version 2.28.0+git.1534354069.445b74bc: * Bump Test Version 2.37.7 * Include LICENSE, etc differently to not end up installed in /usr/local * Bump Test Version 2.37.6 * Cleanup Web Service HTML & CSS a bit. Email ebooks disabled. * Bump Test Version 2.37.4 * Add DESCRIPTION.rst, LICENSE, README.md to pip package. Closes #329 - Update to version 2.28.0+git.1534190226.9694cfa8: * Use chapters collected, not all chapter count for determining TOC inclusion. Closes #328 * Web: stripHTML() on allrecent descriptions. * Web: Save output format setting in cookie. * Put Nook STR Cover 'fix' back in. * Bump Test Version 2.37.3 * MOBI Debug output * Fix for mobi output--link to TOC works again--was broken by html5lib enforcing html5 rules. * Fix for mobi broken page breaks at 'file' boundries and inline 'TOC' links. * Fix for mobi issue with 0 byte record markers being misplaced. * Fix a stray print to log in mobihtml.py - Initial packaging effort OBS-URL: https://build.opensuse.org/request/show/640896 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=1
2018-10-09 23:18:27 +02:00
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.
Accepting request 640896 from home:mcepl - Update to 3.0.0: * Update support for various sites * adapter_chosentwofanficcom: use pagecache and extracategories:Buffy the Vampire Slayer * Add --no-meta-chapters/-z CLI option. * Restore cursor in finally: clauses in case of issues.(plugin) * Update Translations * Tweak mobi output--move TOC to end. * Improve CLI --save-cache, save on each fetch/post, fix a py2/py3 cross bug. * Small fix for <> appearing in text format. * Add latestonly option to mark_new_chapters feature to remove pre-existing (new) chpater marks on update and only mark chapters that are new in this update. Closes #330 * Attempting to get password protected stories in FimF working again. * Fix mobi output -- Fix an encoding issue, Kindle Goto-TOC works, TOC links are more accurate * Many, many changes to make code run on both python 2.7 and python 3. - Package also LICENSE and README.md - Update to version 2.28.0+git.1534354069.445b74bc: * Bump Test Version 2.37.7 * Include LICENSE, etc differently to not end up installed in /usr/local * Bump Test Version 2.37.6 * Cleanup Web Service HTML & CSS a bit. Email ebooks disabled. * Bump Test Version 2.37.4 * Add DESCRIPTION.rst, LICENSE, README.md to pip package. Closes #329 - Update to version 2.28.0+git.1534190226.9694cfa8: * Use chapters collected, not all chapter count for determining TOC inclusion. Closes #328 * Web: stripHTML() on allrecent descriptions. * Web: Save output format setting in cookie. * Put Nook STR Cover 'fix' back in. * Bump Test Version 2.37.3 * MOBI Debug output * Fix for mobi output--link to TOC works again--was broken by html5lib enforcing html5 rules. * Fix for mobi broken page breaks at 'file' boundries and inline 'TOC' links. * Fix for mobi issue with 0 byte record markers being misplaced. * Fix a stray print to log in mobihtml.py - Initial packaging effort OBS-URL: https://build.opensuse.org/request/show/640896 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=1
2018-10-09 23:18:27 +02:00
FanFicFare is the rename and move of the FanFictionDownLoader (AKA FFDL, AKA fanficdownloader) project.
Accepting request 640896 from home:mcepl - Update to 3.0.0: * Update support for various sites * adapter_chosentwofanficcom: use pagecache and extracategories:Buffy the Vampire Slayer * Add --no-meta-chapters/-z CLI option. * Restore cursor in finally: clauses in case of issues.(plugin) * Update Translations * Tweak mobi output--move TOC to end. * Improve CLI --save-cache, save on each fetch/post, fix a py2/py3 cross bug. * Small fix for <> appearing in text format. * Add latestonly option to mark_new_chapters feature to remove pre-existing (new) chpater marks on update and only mark chapters that are new in this update. Closes #330 * Attempting to get password protected stories in FimF working again. * Fix mobi output -- Fix an encoding issue, Kindle Goto-TOC works, TOC links are more accurate * Many, many changes to make code run on both python 2.7 and python 3. - Package also LICENSE and README.md - Update to version 2.28.0+git.1534354069.445b74bc: * Bump Test Version 2.37.7 * Include LICENSE, etc differently to not end up installed in /usr/local * Bump Test Version 2.37.6 * Cleanup Web Service HTML & CSS a bit. Email ebooks disabled. * Bump Test Version 2.37.4 * Add DESCRIPTION.rst, LICENSE, README.md to pip package. Closes #329 - Update to version 2.28.0+git.1534190226.9694cfa8: * Use chapters collected, not all chapter count for determining TOC inclusion. Closes #328 * Web: stripHTML() on allrecent descriptions. * Web: Save output format setting in cookie. * Put Nook STR Cover 'fix' back in. * Bump Test Version 2.37.3 * MOBI Debug output * Fix for mobi output--link to TOC works again--was broken by html5lib enforcing html5 rules. * Fix for mobi broken page breaks at 'file' boundries and inline 'TOC' links. * Fix for mobi issue with 0 byte record markers being misplaced. * Fix a stray print to log in mobihtml.py - Initial packaging effort OBS-URL: https://build.opensuse.org/request/show/640896 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=1
2018-10-09 23:18:27 +02:00
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
Accepting request 640896 from home:mcepl - Update to 3.0.0: * Update support for various sites * adapter_chosentwofanficcom: use pagecache and extracategories:Buffy the Vampire Slayer * Add --no-meta-chapters/-z CLI option. * Restore cursor in finally: clauses in case of issues.(plugin) * Update Translations * Tweak mobi output--move TOC to end. * Improve CLI --save-cache, save on each fetch/post, fix a py2/py3 cross bug. * Small fix for <> appearing in text format. * Add latestonly option to mark_new_chapters feature to remove pre-existing (new) chpater marks on update and only mark chapters that are new in this update. Closes #330 * Attempting to get password protected stories in FimF working again. * Fix mobi output -- Fix an encoding issue, Kindle Goto-TOC works, TOC links are more accurate * Many, many changes to make code run on both python 2.7 and python 3. - Package also LICENSE and README.md - Update to version 2.28.0+git.1534354069.445b74bc: * Bump Test Version 2.37.7 * Include LICENSE, etc differently to not end up installed in /usr/local * Bump Test Version 2.37.6 * Cleanup Web Service HTML & CSS a bit. Email ebooks disabled. * Bump Test Version 2.37.4 * Add DESCRIPTION.rst, LICENSE, README.md to pip package. Closes #329 - Update to version 2.28.0+git.1534190226.9694cfa8: * Use chapters collected, not all chapter count for determining TOC inclusion. Closes #328 * Web: stripHTML() on allrecent descriptions. * Web: Save output format setting in cookie. * Put Nook STR Cover 'fix' back in. * Bump Test Version 2.37.3 * MOBI Debug output * Fix for mobi output--link to TOC works again--was broken by html5lib enforcing html5 rules. * Fix for mobi broken page breaks at 'file' boundries and inline 'TOC' links. * Fix for mobi issue with 0 byte record markers being misplaced. * Fix a stray print to log in mobihtml.py - Initial packaging effort OBS-URL: https://build.opensuse.org/request/show/640896 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=1
2018-10-09 23:18:27 +02:00
%prep
Accepting request 662669 from home:mcepl - Update to version 3.3.9: * Fix metadata parsing for adapter_siyecouk * Fix adapter_whoficcom for site changes. * Update translations. * Fix AO3 logout url used to detect when already logged in. * Add conditionals_use_lists(default:true) setting for replace_metadata & Include/Exclude metadata conditionals. Might change existing behavior for some users. * Remove outdated comment. * Allow ==, !=, =~ and !~ in replace_metadata conditionals like in/exclude_metadata. * Additional metadata edit recursion proofing. * Allow animated gifs through Calibre Image proc -- need to remove gif.py later. * Update some comments in adapter_archiveofourownorg * Additional fix for AO3 login site changes. * Fix for AO3 login site changes. * Update translations * Force Translation Update * Add bookmarkprivate and bookmarkrec site-specific metadata to adapter_archiveofourownorg * Accept archiveofourown.com for archiveofourown.org. archiveofourown.org remains the 'canonical' domain. * Update translations. * Workaround for adapter_hentaifoundrycom bad dateUpdated value. * New Site: www.hentai-foundry.com - Stories only. * Improve recursion-proofing of replace_metadata for performance and duplicate lines. * Don't cache file: URLs. Option --save-cache can mask changes to _filelist files while debugging. * Don't sleep when fetching file: URLs. * Remove defunct site www.artemis-fowl.com * Remove defunct site asr3.slashzone.org * Remove defunct site tolkienfanfiction.com * Remove defunct site fanfiction.tenhawkpresents.com * Remove defunct site unknowableroom.org * Remove defunct site mujaji.net * Update adapter_harrypotterfanfictioncom for site change. * Change for adapter_storiesonlinenet for 'Full Access' stories. - Switch from pull commits to the released tarballs again. OBS-URL: https://build.opensuse.org/request/show/662669 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=9
2019-01-03 14:59:04 +01:00
%setup -q -n %{modname}-%{version}
Accepting request 640896 from home:mcepl - Update to 3.0.0: * Update support for various sites * adapter_chosentwofanficcom: use pagecache and extracategories:Buffy the Vampire Slayer * Add --no-meta-chapters/-z CLI option. * Restore cursor in finally: clauses in case of issues.(plugin) * Update Translations * Tweak mobi output--move TOC to end. * Improve CLI --save-cache, save on each fetch/post, fix a py2/py3 cross bug. * Small fix for <> appearing in text format. * Add latestonly option to mark_new_chapters feature to remove pre-existing (new) chpater marks on update and only mark chapters that are new in this update. Closes #330 * Attempting to get password protected stories in FimF working again. * Fix mobi output -- Fix an encoding issue, Kindle Goto-TOC works, TOC links are more accurate * Many, many changes to make code run on both python 2.7 and python 3. - Package also LICENSE and README.md - Update to version 2.28.0+git.1534354069.445b74bc: * Bump Test Version 2.37.7 * Include LICENSE, etc differently to not end up installed in /usr/local * Bump Test Version 2.37.6 * Cleanup Web Service HTML & CSS a bit. Email ebooks disabled. * Bump Test Version 2.37.4 * Add DESCRIPTION.rst, LICENSE, README.md to pip package. Closes #329 - Update to version 2.28.0+git.1534190226.9694cfa8: * Use chapters collected, not all chapter count for determining TOC inclusion. Closes #328 * Web: stripHTML() on allrecent descriptions. * Web: Save output format setting in cookie. * Put Nook STR Cover 'fix' back in. * Bump Test Version 2.37.3 * MOBI Debug output * Fix for mobi output--link to TOC works again--was broken by html5lib enforcing html5 rules. * Fix for mobi broken page breaks at 'file' boundries and inline 'TOC' links. * Fix for mobi issue with 0 byte record markers being misplaced. * Fix a stray print to log in mobihtml.py - Initial packaging effort OBS-URL: https://build.opensuse.org/request/show/640896 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=1
2018-10-09 23:18:27 +02:00
sed -i -e '/^#!\/usr\/bin\/python/d' fanficfare/mobi{,html}.py
dos2unix DESCRIPTION.rst README.md
Accepting request 640896 from home:mcepl - Update to 3.0.0: * Update support for various sites * adapter_chosentwofanficcom: use pagecache and extracategories:Buffy the Vampire Slayer * Add --no-meta-chapters/-z CLI option. * Restore cursor in finally: clauses in case of issues.(plugin) * Update Translations * Tweak mobi output--move TOC to end. * Improve CLI --save-cache, save on each fetch/post, fix a py2/py3 cross bug. * Small fix for <> appearing in text format. * Add latestonly option to mark_new_chapters feature to remove pre-existing (new) chpater marks on update and only mark chapters that are new in this update. Closes #330 * Attempting to get password protected stories in FimF working again. * Fix mobi output -- Fix an encoding issue, Kindle Goto-TOC works, TOC links are more accurate * Many, many changes to make code run on both python 2.7 and python 3. - Package also LICENSE and README.md - Update to version 2.28.0+git.1534354069.445b74bc: * Bump Test Version 2.37.7 * Include LICENSE, etc differently to not end up installed in /usr/local * Bump Test Version 2.37.6 * Cleanup Web Service HTML & CSS a bit. Email ebooks disabled. * Bump Test Version 2.37.4 * Add DESCRIPTION.rst, LICENSE, README.md to pip package. Closes #329 - Update to version 2.28.0+git.1534190226.9694cfa8: * Use chapters collected, not all chapter count for determining TOC inclusion. Closes #328 * Web: stripHTML() on allrecent descriptions. * Web: Save output format setting in cookie. * Put Nook STR Cover 'fix' back in. * Bump Test Version 2.37.3 * MOBI Debug output * Fix for mobi output--link to TOC works again--was broken by html5lib enforcing html5 rules. * Fix for mobi broken page breaks at 'file' boundries and inline 'TOC' links. * Fix for mobi issue with 0 byte record markers being misplaced. * Fix a stray print to log in mobihtml.py - Initial packaging effort OBS-URL: https://build.opensuse.org/request/show/640896 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=1
2018-10-09 23:18:27 +02:00
%build
%python_build
%install
%python_install
Accepting request 662669 from home:mcepl - Update to version 3.3.9: * Fix metadata parsing for adapter_siyecouk * Fix adapter_whoficcom for site changes. * Update translations. * Fix AO3 logout url used to detect when already logged in. * Add conditionals_use_lists(default:true) setting for replace_metadata & Include/Exclude metadata conditionals. Might change existing behavior for some users. * Remove outdated comment. * Allow ==, !=, =~ and !~ in replace_metadata conditionals like in/exclude_metadata. * Additional metadata edit recursion proofing. * Allow animated gifs through Calibre Image proc -- need to remove gif.py later. * Update some comments in adapter_archiveofourownorg * Additional fix for AO3 login site changes. * Fix for AO3 login site changes. * Update translations * Force Translation Update * Add bookmarkprivate and bookmarkrec site-specific metadata to adapter_archiveofourownorg * Accept archiveofourown.com for archiveofourown.org. archiveofourown.org remains the 'canonical' domain. * Update translations. * Workaround for adapter_hentaifoundrycom bad dateUpdated value. * New Site: www.hentai-foundry.com - Stories only. * Improve recursion-proofing of replace_metadata for performance and duplicate lines. * Don't cache file: URLs. Option --save-cache can mask changes to _filelist files while debugging. * Don't sleep when fetching file: URLs. * Remove defunct site www.artemis-fowl.com * Remove defunct site asr3.slashzone.org * Remove defunct site tolkienfanfiction.com * Remove defunct site fanfiction.tenhawkpresents.com * Remove defunct site unknowableroom.org * Remove defunct site mujaji.net * Update adapter_harrypotterfanfictioncom for site change. * Change for adapter_storiesonlinenet for 'Full Access' stories. - Switch from pull commits to the released tarballs again. OBS-URL: https://build.opensuse.org/request/show/662669 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=9
2019-01-03 14:59:04 +01:00
%python_clone -a %{buildroot}%{_bindir}/%{modnamedown}
Accepting request 640896 from home:mcepl - Update to 3.0.0: * Update support for various sites * adapter_chosentwofanficcom: use pagecache and extracategories:Buffy the Vampire Slayer * Add --no-meta-chapters/-z CLI option. * Restore cursor in finally: clauses in case of issues.(plugin) * Update Translations * Tweak mobi output--move TOC to end. * Improve CLI --save-cache, save on each fetch/post, fix a py2/py3 cross bug. * Small fix for <> appearing in text format. * Add latestonly option to mark_new_chapters feature to remove pre-existing (new) chpater marks on update and only mark chapters that are new in this update. Closes #330 * Attempting to get password protected stories in FimF working again. * Fix mobi output -- Fix an encoding issue, Kindle Goto-TOC works, TOC links are more accurate * Many, many changes to make code run on both python 2.7 and python 3. - Package also LICENSE and README.md - Update to version 2.28.0+git.1534354069.445b74bc: * Bump Test Version 2.37.7 * Include LICENSE, etc differently to not end up installed in /usr/local * Bump Test Version 2.37.6 * Cleanup Web Service HTML & CSS a bit. Email ebooks disabled. * Bump Test Version 2.37.4 * Add DESCRIPTION.rst, LICENSE, README.md to pip package. Closes #329 - Update to version 2.28.0+git.1534190226.9694cfa8: * Use chapters collected, not all chapter count for determining TOC inclusion. Closes #328 * Web: stripHTML() on allrecent descriptions. * Web: Save output format setting in cookie. * Put Nook STR Cover 'fix' back in. * Bump Test Version 2.37.3 * MOBI Debug output * Fix for mobi output--link to TOC works again--was broken by html5lib enforcing html5 rules. * Fix for mobi broken page breaks at 'file' boundries and inline 'TOC' links. * Fix for mobi issue with 0 byte record markers being misplaced. * Fix a stray print to log in mobihtml.py - Initial packaging effort OBS-URL: https://build.opensuse.org/request/show/640896 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=1
2018-10-09 23:18:27 +02:00
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative fanficfare
%postun
%python_uninstall_alternative fanficfare
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 12:19:32 +02:00
%check
# no upstream tests
Accepting request 640896 from home:mcepl - Update to 3.0.0: * Update support for various sites * adapter_chosentwofanficcom: use pagecache and extracategories:Buffy the Vampire Slayer * Add --no-meta-chapters/-z CLI option. * Restore cursor in finally: clauses in case of issues.(plugin) * Update Translations * Tweak mobi output--move TOC to end. * Improve CLI --save-cache, save on each fetch/post, fix a py2/py3 cross bug. * Small fix for <> appearing in text format. * Add latestonly option to mark_new_chapters feature to remove pre-existing (new) chpater marks on update and only mark chapters that are new in this update. Closes #330 * Attempting to get password protected stories in FimF working again. * Fix mobi output -- Fix an encoding issue, Kindle Goto-TOC works, TOC links are more accurate * Many, many changes to make code run on both python 2.7 and python 3. - Package also LICENSE and README.md - Update to version 2.28.0+git.1534354069.445b74bc: * Bump Test Version 2.37.7 * Include LICENSE, etc differently to not end up installed in /usr/local * Bump Test Version 2.37.6 * Cleanup Web Service HTML & CSS a bit. Email ebooks disabled. * Bump Test Version 2.37.4 * Add DESCRIPTION.rst, LICENSE, README.md to pip package. Closes #329 - Update to version 2.28.0+git.1534190226.9694cfa8: * Use chapters collected, not all chapter count for determining TOC inclusion. Closes #328 * Web: stripHTML() on allrecent descriptions. * Web: Save output format setting in cookie. * Put Nook STR Cover 'fix' back in. * Bump Test Version 2.37.3 * MOBI Debug output * Fix for mobi output--link to TOC works again--was broken by html5lib enforcing html5 rules. * Fix for mobi broken page breaks at 'file' boundries and inline 'TOC' links. * Fix for mobi issue with 0 byte record markers being misplaced. * Fix a stray print to log in mobihtml.py - Initial packaging effort OBS-URL: https://build.opensuse.org/request/show/640896 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=1
2018-10-09 23:18:27 +02:00
%files %{python_files}
%license LICENSE
%doc DESCRIPTION.rst README.md
Accepting request 662669 from home:mcepl - Update to version 3.3.9: * Fix metadata parsing for adapter_siyecouk * Fix adapter_whoficcom for site changes. * Update translations. * Fix AO3 logout url used to detect when already logged in. * Add conditionals_use_lists(default:true) setting for replace_metadata & Include/Exclude metadata conditionals. Might change existing behavior for some users. * Remove outdated comment. * Allow ==, !=, =~ and !~ in replace_metadata conditionals like in/exclude_metadata. * Additional metadata edit recursion proofing. * Allow animated gifs through Calibre Image proc -- need to remove gif.py later. * Update some comments in adapter_archiveofourownorg * Additional fix for AO3 login site changes. * Fix for AO3 login site changes. * Update translations * Force Translation Update * Add bookmarkprivate and bookmarkrec site-specific metadata to adapter_archiveofourownorg * Accept archiveofourown.com for archiveofourown.org. archiveofourown.org remains the 'canonical' domain. * Update translations. * Workaround for adapter_hentaifoundrycom bad dateUpdated value. * New Site: www.hentai-foundry.com - Stories only. * Improve recursion-proofing of replace_metadata for performance and duplicate lines. * Don't cache file: URLs. Option --save-cache can mask changes to _filelist files while debugging. * Don't sleep when fetching file: URLs. * Remove defunct site www.artemis-fowl.com * Remove defunct site asr3.slashzone.org * Remove defunct site tolkienfanfiction.com * Remove defunct site fanfiction.tenhawkpresents.com * Remove defunct site unknowableroom.org * Remove defunct site mujaji.net * Update adapter_harrypotterfanfictioncom for site change. * Change for adapter_storiesonlinenet for 'Full Access' stories. - Switch from pull commits to the released tarballs again. OBS-URL: https://build.opensuse.org/request/show/662669 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=9
2019-01-03 14:59:04 +01:00
%python_alternative %{_bindir}/%{modnamedown}
Accepting request 640896 from home:mcepl - Update to 3.0.0: * Update support for various sites * adapter_chosentwofanficcom: use pagecache and extracategories:Buffy the Vampire Slayer * Add --no-meta-chapters/-z CLI option. * Restore cursor in finally: clauses in case of issues.(plugin) * Update Translations * Tweak mobi output--move TOC to end. * Improve CLI --save-cache, save on each fetch/post, fix a py2/py3 cross bug. * Small fix for <> appearing in text format. * Add latestonly option to mark_new_chapters feature to remove pre-existing (new) chpater marks on update and only mark chapters that are new in this update. Closes #330 * Attempting to get password protected stories in FimF working again. * Fix mobi output -- Fix an encoding issue, Kindle Goto-TOC works, TOC links are more accurate * Many, many changes to make code run on both python 2.7 and python 3. - Package also LICENSE and README.md - Update to version 2.28.0+git.1534354069.445b74bc: * Bump Test Version 2.37.7 * Include LICENSE, etc differently to not end up installed in /usr/local * Bump Test Version 2.37.6 * Cleanup Web Service HTML & CSS a bit. Email ebooks disabled. * Bump Test Version 2.37.4 * Add DESCRIPTION.rst, LICENSE, README.md to pip package. Closes #329 - Update to version 2.28.0+git.1534190226.9694cfa8: * Use chapters collected, not all chapter count for determining TOC inclusion. Closes #328 * Web: stripHTML() on allrecent descriptions. * Web: Save output format setting in cookie. * Put Nook STR Cover 'fix' back in. * Bump Test Version 2.37.3 * MOBI Debug output * Fix for mobi output--link to TOC works again--was broken by html5lib enforcing html5 rules. * Fix for mobi broken page breaks at 'file' boundries and inline 'TOC' links. * Fix for mobi issue with 0 byte record markers being misplaced. * Fix a stray print to log in mobihtml.py - Initial packaging effort OBS-URL: https://build.opensuse.org/request/show/640896 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=1
2018-10-09 23:18:27 +02:00
%{python_sitelib}/*
%changelog