File gnome-keysign.spec of Package gnome-keysign

# spec file for package gnome-keysign
# 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

Name:           gnome-keysign
Release:        0
Summary:        GNOME OpenGPG key signing helper
License:        GPL-3.0-or-later
Group:          Productivity/Security
Source:         %{name}-%{version}.tar.xz
Patch0:         gnome-keysign-python3-setup.patch

BuildRequires:  gobject-introspection
BuildRequires:  python3-Babel
BuildRequires:  python3-lxml
BuildRequires:  python3-setuptools
BuildRequires:  update-desktop-files
%ifarch aarch64 ppc64 ppc64le riscv64 s390x x86_64
Requires:       gstreamer1(element-zbar)()(64bit)
Requires:       gstreamer1(element-zbar)
Requires:       python3-Twisted
Requires:       python3-avahi
Requires:       python3-cairo
Requires:       python3-dbus-python
Requires:       python3-gobject
Requires:       python3-gobject-Gdk
Requires:       python3-gpg
Requires:       python3-pybluez
Requires:       python3-qrcode
Requires:       python3-requests
Requires:       python3-setuptools

Its purpose is to ease signing other peoples' keys. It is similar
to caff, PIUS, or monkeysign. In fact, it is influenced a lot by
these tools and either reimplements ideas or reuses code.
Consider either of the aboved mentioned tools when you need a much
more mature codebase.

%setup -q
%patch0 -p1

python3 build

python3 install -O1 --skip-build --root %{buildroot}
%suse_update_desktop_file -r org.gnome.Keysign System Security

%license COPYING
%doc README.rst
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/scalable
%dir %{_datadir}/icons/hicolor/scalable/apps