2018-10-09 23:18:27 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-fanficfare
|
|
|
|
#
|
- Update to 4.8.0:
- Add fix_relative_text_links feature, defaults to true.
- Make Scribble Hub spoilers & footnotes look nicer PR#733,
thanks Epicpkmn11!
- Add averrating metadata to adapter_novelfull.
- Fix for cover_min_size causing failures with SVG images when
no_image_processing:true.
- Set default slow_down_sleep_time:2 for [www.asianfanfics.com]
- Deviantart date fix (closes #768), also storyId and extratags
changes, thanks jcotton42
- New Site: www.deviantart.com, thanks jcotton42 (see #765 and
#374)
- New Site: psychfic.com (re-added), thanks HappyFaceSpider
Closes #764
- adapter_storiesonlinenet: Take rating from 'Age' field on
scifistories/finestories - Thanks bpothier
- adapter_ficbooknet: Fix for site change.
- Code for FlareSolverr v2.0.X, can't handle images.
- Update translations.
- adapter_royalroadcom: fix for ancient bug reading unixtime
attr that's come back after years. #753
- fictionalley-archive.org: Convert adapter_fictionalleyorg to
adapter_fictionalleyarchiveorg.
- adapter_storiesonlinenet: Fix for site updates, login and
dates.
- adapter_wwwutopiastoriescom: Add
siterating_votes,siterating,siterank_of,siterank,v iews #750
- Fix for more arbitrary py3 incompatibility(MutableSet).
Closes #748
- Update bundled certifi to 2021.10.08
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=78
2022-01-11 18:51:18 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
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.
|
|
|
|
|
2018-10-10 15:24:44 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-10-09 23:18:27 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2019-01-03 14:59:04 +01:00
|
|
|
%define modname FanFicFare
|
|
|
|
%define modnamedown fanficfare
|
2020-01-02 11:04:02 +01:00
|
|
|
%define skip_python2 1
|
2018-10-09 23:18:27 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2018-10-09 23:28:59 +02:00
|
|
|
Name: python-fanficfare
|
2022-05-03 07:47:48 +02:00
|
|
|
Version: 4.12.4
|
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
|
2020-05-03 23:25:59 +02:00
|
|
|
Source: https://github.com/JimmXinu/%{modname}/archive/v%{version}/%{modname}-%{version}.tar.gz
|
2020-12-24 17:19:27 +01:00
|
|
|
# Source: %%{modname}-%%{version}.tar.gz
|
2018-10-09 23:18:27 +02:00
|
|
|
BuildRequires: %{python_module beautifulsoup4}
|
|
|
|
BuildRequires: %{python_module chardet}
|
2021-01-20 22:48:31 +01:00
|
|
|
BuildRequires: %{python_module cloudscraper}
|
2018-10-09 23:18:27 +02:00
|
|
|
BuildRequires: %{python_module html2text}
|
|
|
|
BuildRequires: %{python_module html5lib}
|
2022-02-15 19:33:02 +01:00
|
|
|
BuildRequires: %{python_module requests-file}
|
2018-10-09 23:18:27 +02:00
|
|
|
BuildRequires: %{python_module setuptools >= 17.1}
|
2019-03-19 16:24:01 +01:00
|
|
|
BuildRequires: dos2unix
|
2018-10-09 23:18:27 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-03-19 16:24:01 +01:00
|
|
|
Requires: python-beautifulsoup4
|
|
|
|
Requires: python-chardet
|
2021-01-20 22:48:31 +01:00
|
|
|
Requires: python-cloudscraper
|
2019-03-19 16:24:01 +01:00
|
|
|
Requires: python-html2text
|
|
|
|
Requires: python-html5lib
|
2022-02-15 19:33:02 +01:00
|
|
|
Requires: python-requests-file
|
2019-07-30 12:19:32 +02:00
|
|
|
Requires: python-setuptools
|
2018-10-09 23:18:27 +02:00
|
|
|
Requires(post): update-alternatives
|
2021-02-19 12:07:11 +01:00
|
|
|
Requires(postun):update-alternatives
|
2018-10-09 23:18:27 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2018-10-10 15:24:44 +02:00
|
|
|
FanFicFare is a tool for downloading fanfiction and original stories from various sites into ebook form.
|
2018-10-09 23:18:27 +02:00
|
|
|
|
2018-10-10 15:24:44 +02:00
|
|
|
FanFicFare is the rename and move of the FanFictionDownLoader (AKA FFDL, AKA fanficdownloader) project.
|
2018-10-09 23:18:27 +02:00
|
|
|
|
2018-10-10 15:24:44 +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
|
2018-10-09 23:18:27 +02:00
|
|
|
|
|
|
|
%prep
|
2020-12-24 17:19:27 +01:00
|
|
|
%autosetup -p1 -n %{modname}-%{version}
|
|
|
|
|
|
|
|
rm -rf included_dependencies/
|
|
|
|
|
2022-01-26 08:44:53 +01:00
|
|
|
find . -name \*.py -exec sed -i -e '/^#!\/usr\/bin\/python/d' '{}' \;
|
2019-03-19 16:24:01 +01:00
|
|
|
dos2unix DESCRIPTION.rst README.md
|
2018-10-09 23:18:27 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
2019-01-03 14:59:04 +01:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/%{modnamedown}
|
2018-10-09 23:18:27 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%post
|
|
|
|
%python_install_alternative fanficfare
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative fanficfare
|
|
|
|
|
2019-07-30 12:19:32 +02:00
|
|
|
%check
|
|
|
|
# no upstream tests
|
|
|
|
|
2018-10-09 23:18:27 +02:00
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
|
|
|
%doc DESCRIPTION.rst README.md
|
2019-01-03 14:59:04 +01:00
|
|
|
%python_alternative %{_bindir}/%{modnamedown}
|
2018-10-09 23:18:27 +02:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|