File python3-glBooklet.spec of Package python3-glBooklet

#
# spec file for package python3-glBooklet
#
# 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/
#


Name:           python3-glBooklet
Version:        X
Release:        0
Summary:        Converts PDFs to printable booklet
License:        GPL-3.0-only
Group:          Development/Languages/Python
URL:            https://git.gallochri.com/gallochri/glBooklet
Source:         https://files.pythonhosted.org/packages/source/g/glBooklet/glBooklet-%{version}.tar.gz
BuildRequires:  desktop-file-utils
BuildRequires:  fdupes
BuildRequires:  python3-PyPDF2
BuildRequires:  python3-devel
BuildRequires:  python3-pyqt-distutils
BuildRequires:  python3-qt5
BuildRequires:  python3-rpm-macros
BuildRequires:  python3-setuptools
Requires:       python3-PyPDF2
Requires:       python3-qt5
BuildArch:      noarch

%description
Utility to convert a pdf book into 2 pages-per-sheet double sided booklet ready for printing

%prep
%setup -q -n glBooklet-%{version}

%build
%python3_build

%install
%python3_install

mkdir -p -m0755 %{buildroot}%{_datadir}/{pixmaps,appdata}
install -p -m0644 glBooklet/images/glBooklet.png %{buildroot}%{_datadir}/pixmaps/glBooklet.png

desktop-file-install --dir=%{buildroot}%{_datadir}/applications glBooklet/resources/glBooklet.desktop

%fdupes -s %{buildroot}%{python3_sitelib}/

%files
%doc README.md
%{_bindir}/glBooklet
%{_datadir}/applications/glBooklet.desktop
%{_datadir}/pixmaps/glBooklet.png
%{python3_sitelib}/*

%changelog