File kraken-desktop.spec of Package kraken-desktop

#
# spec file for package kraken-desktop
#
# Copyright (c) 2026 SUSE LLC and contributors
#
# 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 brand_name kraken

Name:           %{brand_name}-desktop
Version:        1.12.0
Release:        0
Summary:        Kraken crypto exchange desktop client
License:        Payward
Group:          Productivity/Other
URL:            https://www.%{brand_name}.com/desktop
ExclusiveArch:  x86_64
Source0:        %{name}-%{version}.tar.xz
Source1:        %{brand_name}.png

%define prog_name %{brand_name}_desktop
%define install_dir /opt

%description
Kraken Desktop supports live data and order execution across Kraken Spot, Margin, and Futures markets.

%prep
%setup -q -c
echo "Categories=Office;Finance;" >> %{brand_name}.desktop

%build
%{__strip} %{prog_name}

%install
%{__mkdir_p} %{buildroot}%{_bindir}
%{__mkdir_p} %{buildroot}%{_datadir}/applications
%{__mkdir_p} %{buildroot}%{_datadir}/pixmaps
%{__mkdir_p} %{buildroot}%{install_dir}/%{name}
%{__cp} -a -t %{buildroot}%{install_dir}/%{name} %{_builddir}/%{name}-%{version}/*
%{__ln_s} %{install_dir}/%{name}/%{prog_name} %{buildroot}%{_bindir}
%{__cp} -a %{buildroot}%{install_dir}/%{name}/%{brand_name}.desktop %{buildroot}%{_datadir}/applications/
%{__cp} -a %{S:1} %{buildroot}%{_datadir}/pixmaps/

%check

%files
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/%{prog_name}
%{_datadir}/applications/%{brand_name}.desktop
%{_datadir}/pixmaps/%{brand_name}.png
%dir %{install_dir}
%{install_dir}/%{name}

%changelog
openSUSE Build Service is sponsored by