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/
#

%{?sle15_python_module_pythons}
Name:           yubioath-flutter
Version:        6.3.0
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://github.com/Yubico/yubioath-flutter/archive/refs/tags/6.3.0.tar.gz
Source1:        flutter_linux_3.16.2-stable.tar.xz
Source2:        pub-cache.tar.xz
BuildRequires:  %{python_module base >= 3.8}
BuildRequires:  %{python_module poetry}
BuildRequires:  fdupes
BuildRequires:  git-core
BuildRequires:  cmake
BuildRequires:  ninja
BuildRequires:  python-rpm-macros
BuildRequires:  clang15-devel
BuildRequires:  llvm15-devel
BuildRequires:  gcc-c++
# 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}
pushd /home/abuild
tar xvf %{S:2}
popd
export PATH="$PATH:`pwd`/flutter/bin"

%build
flutter/bin/dart pub get --offline
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