python-fanficfare/python-fanficfare.spec

83 lines
2.7 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) 2018 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/
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
#
%define upname FanFicFare
%define upnamedown fanficfare
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
- Update to version 3.2.1+git.1543262085.5eb1f1f3: * Bump Test Version 3.2.1 * base_xenforoforum_adapter - Fix for buggy threadmarks on SV thread 46020. * Bump Release Version 3.2.0 * Update example.ini. * Bump Test Version 3.1.10 * Add background_color ini verbiage and check before image conversion. * Bump Test Version 3.1.9 * Refactor busy_cursor, busy cursor around saving rejects & settings, bump copyright years. * Move rejectlisturls_data out of settings in to own 'namedspaced' for efficiency. PI Only. * Use saved rejectlist_data. * Reject list changes: show numbers, edit title/author, incomplete save rejects as data. * Add feature for manually editing settings JSON. Only shown in debug mode. * Add verbiage to [www.asianfanfics.com] about site censoring words when not logged in. * Bump Test Version 3.1.8 * Detect 'fake' 404 page (with HTTP 200) for adapter_royalroadcom * Fix defaults.ini order * Bump Test Version 3.1.7 * Fix for adapter_wuxiaworldco for Python3. * Added volumes to chapter titles * Bump Test Version 3.1.6 * Fix adapter_wuxiaworldco description decomposition * Bump Test Version 3.1.5 * Fix for adapter_wuxiaworldcom site change. * Minor improvement to adapter_asianfanficscom logging. * Bump Test Version 3.1.4 * adapter_fanfiktionde login doesn't use ssl.fanfiktion.de anymore. * Bump Test Version 3.1.3 * Update for adapter_storiesonlinenet(& finestories) for login change. * Use a default chapter name when none is given. Problem with adapter_novelonlinefullcom OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=7
2018-12-03 07:51:55 +01:00
Version: 3.2.1+git.1543262085.5eb1f1f3
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: %{upname}-%{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: fdupes
BuildRequires: python-rpm-macros
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
%setup -q -n %{upname}-%{version}
sed -i -e '/^#!\/usr\/bin\/python/d' fanficfare/mobi{,html}.py
for f in DESCRIPTION.rst README.md ; do
tr -d '\r' < $f > $f.new
touch --reference=$f $f.new
mv -f $f.new $f
done
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/%{upnamedown}
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative fanficfare
%postun
%python_uninstall_alternative fanficfare
%files %{python_files}
%license LICENSE
%doc DESCRIPTION.rst README.md
%python_alternative %{_bindir}/%{upnamedown}
%{python_sitelib}/*
%changelog