2018-10-09 23:18:27 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-fanficfare
|
|
|
|
#
|
2019-01-03 14:59:04 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
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
|
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
|
2019-01-03 14:59:04 +01:00
|
|
|
Version: 3.3.0
|
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
|
2019-01-03 14:59:04 +01:00
|
|
|
Source: https://github.com/JimmXinu/%{modname}/archive/v%{version}/%{modname}-%{version}.tar.gz
|
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
|
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
|
2019-01-03 14:59:04 +01:00
|
|
|
%setup -q -n %{modname}-%{version}
|
2018-10-09 23:18:27 +02:00
|
|
|
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
|
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
|
|
|
|
|
|
|
|
%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
|