1
0
python-fanficfare/python-fanficfare.spec
Matej Cepl 36325e3826 Accepting request 698709 from home:mcepl:branches:devel:languages:python
- Update to 3.7.0:
  - Update translations
  - Revert "Remove defunct site www.destinysgateway.com"
  - Recognize destinysgateway.com and www.destinysgateway.com
  - Remove ncisfic.com -- moved to AO3.
  - Fix date format for adapter_gluttonyfictioncom
  - Comment out some old debugs.
  - Add debug output for encoding used.
  - Fix some comments.
  - Add another StoryDoesNotExist string for
    adapter_fanfictionnet
  - Closes #390 - RoyalRoad click link in emails.
  - Update a comment link in setup.py.
  - Include status 'Hiatus' for adapter_royalroadcom.
  - Correct a comment in defaults.ini.
  - Fix for saved custom column metadata and boolean values.
  - Add bookmarked site specific metadata for
    adapter_archiveofourownorg.
  - Fix for PI saved metadata not reading False & empty strings.
  - More fixing for bool metadata values--convert to string when
    set.
  - Add remove_authorfootnotes_on_update feature for AO3.
  - Update Translations.

OBS-URL: https://build.opensuse.org/request/show/698709
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fanficfare?expand=0&rev=15
2019-04-28 05:31:24 +00:00

84 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.7.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(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
%files %{python_files}
%license LICENSE
%doc DESCRIPTION.rst README.md
%python_alternative %{_bindir}/%{modnamedown}
%{python_sitelib}/*
%changelog