forked from pool/python-fanficfare
Matej Cepl
c5c9ca2077
- 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
83 lines
2.7 KiB
RPMSpec
83 lines
2.7 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.3.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: 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.
|
|
|
|
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
|
|
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}/%{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
|