File kcc.spec of Package kcc

#
# spec file for package kcc
#
# 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 http://bugs.opensuse.org/


Name:           kcc
Version:        5.6.3
Release:        0
Summary:        Kindle Comic Converter
License:        ISC
Group:          Development/Tools/Doc Generators
Url:            https://github.com/ciromattia/kcc
Source:         https://github.com/ciromattia/kcc/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  fdupes
Requires:       python3-qt5 >= 5.6.0
Requires:       python3-Pillow >= 5.2.0
Requires:       python3-psutil >= 5.0.0
Requires:       python3-python-slugify >= 1.2.1
Requires:       python3-raven >= 6.0.0
Requires:       python3-mozjpeg-lossless-optimization
Requires:       python3-distro
BuildArch:      noarch

%description
Kindle Comic Converter is a Python app to convert comic/manga files or
folders to EPUB, Panel View MOBI or E-Ink optimized CBZ.

%prep
%setup -q

%build
%python3_build

%install
%python3_install
%fdupes %{buildroot}%{python3_sitelib}
# hack
rm %{buildroot}%{python3_sitelib}/*.egg-info/requires.txt

%files
%doc README.md
%license LICENSE.txt
%{_bindir}/kcc
%{_bindir}/kcc-c2e
%{_bindir}/kcc-c2p
%{python3_sitelib}/*

%changelog
openSUSE Build Service is sponsored by