python-fanficfare/python-fanficfare.spec
Matej Cepl 6f5a246ac5 - Update to 3.13.0:
- Add some code to handle 24 hr clocks w/o changing adapters.
  - Don't escape # in URLs, causes problems with ficbook.net.
  - Bypass expired SSL cert by not using SSL.
    adapter_thehookupzonenet
  - Bypass expired SSL cert by not using SSL.
    adapter_spikeluvercom
  - Remove site twilightarchives.com - Closed as per web site.
  - Remove site lotrfanfiction.com - Closed as per web site.
  - Remove site www.13hours.org. Moved to AO3.
  - Add site specific chapterslashtotal and chapterstotal for
    adapter_archiveofourownorg.
  - Fixes for adapter_webnovelcom site changes to JSON.
  - Add parentforums site specific metadata for base_xenforo,
    include partial list in category.
  - Add user/pass to adapter_fictionhuntcom, required to see
    chapter text now.
  - Discard cookie cache on library change--might use different
    users/settings.
  - At least one efiction site said Completed: Completed instead
    of Yes.
  - Adding some html class attrs to epub output for ease of CSS.
  - Add --no-output CLI option. Closes #443
  - Save cookiejar between downloads during same calibre session,
    including BG jobs.
  - Avoid post URLs in XenForo notification emails for QQ & AH
    too.
  - Avoid post URLs in XenForo notification emails better w/o
    catching post in thread title. Probably.
  - Fix for 404 error on XF always_login. Closes #438

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=28
2019-11-15 19:48:55 +00:00

88 lines
2.8 KiB
RPMSpec

#
# spec file for package python-fanficfare
#
# Copyright (c) 2019 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
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-fanficfare
Version: 3.13.0
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