File airshipper.spec of Package airshipper

#
# spec file for package airshipper
#
# Copyright (c) 2026 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/
#

Name:           airshipper
Version:        0.17.0
Release:        0
Summary:        A cross-platform Veloren launcher
License:        GPL-3.0-only
URL:            https://gitlab.com:/veloren/airshipper
Source0:        %{name}-%{version}.tar.zst
Source1:        vendor.tar.zst
BuildRequires:  cargo-packaging
BuildRequires:  libopenssl-devel

%description
A cross-platform Veloren launcher

%prep
%setup -q
%setup -q -T -D -a 1

%build
%{cargo_build}

%check
%cargo_test

%install
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/
mkdir -p %{buildroot}%{_datadir}/metainfo/
mkdir -p %{buildroot}%{_datadir}/applications/
install -Dm 755 target/release/%{name}                               %{buildroot}%{_bindir}/%{name}
install -Dm 755 target/release/%{name}-server                        %{buildroot}%{_bindir}/%{name}-server
install -Dm 644 client/assets/net.veloren.airshipper.png             %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/
install -Dm 644 client/assets/net.veloren.airshipper.metainfo.xml    %{buildroot}%{_datadir}/metainfo/
install -Dm 644 client/assets/net.veloren.airshipper.desktop         %{buildroot}%{_datadir}/applications/

%files
%license LICENSE
%doc README.md TROUBLESHOOTING.md
%{_bindir}/%{name}
%{_bindir}/%{name}-server
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/256x256
%dir %{_datadir}/icons/hicolor/256x256/apps
%{_datadir}/icons/hicolor/256x256/apps/net.veloren.airshipper.png
%{_datadir}/metainfo/net.veloren.airshipper.metainfo.xml
%{_datadir}/applications/net.veloren.airshipper.desktop

%pre

%post

%preun

%postun

%changelog
openSUSE Build Service is sponsored by