File yubioath-flutter.spec of Package yubioath-flutter

#
# spec file for package yubioath-flutter
#
# Copyright (c) 2022 SUSE LLC
#
# 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 pythons python311

Name:           yubioath-flutter
Version:        6.0.2
Release:        0
Summary:        Graphical interface for displaying OATH codes with a Yubikey
License:        GPL-3.0-or-later and Apache-2.0
Group:          Productivity/Security
URL:            https://developers.yubico.com/yubioath-flutter/
Source0:        https://developers.yubico.com/yubioath-flutter/Releases/%{name}-%{version}.tar.gz
Source1:        flutter_linux_3.3.9-stable.tar.xz
BuildRequires:  %{python_module base >= 3.8}
BuildRequires:  %{python_module poetry}
BuildRequires:  fdupes
BuildRequires:  git-core
BuildRequires:  python-rpm-macros
# Requires:       libqt5-qtgraphicaleffects
# Requires:       libqt5-qtquickcontrols2
# Requires:       pyotherside
Requires:       yubikey-manager >= 5

%description
The Yubico Authenticator is a graphical desktop tool for generating
Open AuTHentication (OATH) event-based HOTP and time-based TOTP
one-time password codes, with the help of a Yubikey NEO that protects
the shared secrets.

%prep
%autosetup
tar xvf %{S:1}
export PATH="$PATH:`pwd`/flutter/bin"

%build
flutter/bin/flutter config --no-analytics
flutter/bin/flutter build linux

%install
cp build/linux %{buildroot}

%files
%license COPYING
%doc NEWS README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/com.yubico.yubioath.svg
%exclude %{_includedir}/*.h

%changelog
openSUSE Build Service is sponsored by