File uad-ng.spec of Package uad-ng

#
# spec file for package uad-ng
#
# Copyright (c) 2024 Boian Berberov
# Copyright (c) 2024 mantarimay
#
# 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  full_name  universal-android-debloater-next-generation

Name:           uad-ng
Version:        1.0.3
Release:        0
Summary:        Cross-platform GUI written in Rust using ADB to debloat non-rooted Android devices
License:        GPL-3.0-or-later
URL:            https://github.com/Universal-Debloater-Alliance/%{full_name}

Source0:        %{url}/archive/refs/tags/v%{version}.tar.gz
Source1:        vendor.tar.zst

%if 0%{?suse_version}
BuildRequires:  cargo-packaging
%endif

%if 0%{?fedora}
BuildRequires:  cargo-rpm-macros >= 24
%endif

%if 0%{?rhel} == 9
# BuildRequires:  rust-toolset
BuildRequires:  cargo-rpm-macros >= 24
%endif

%if 0%{?mageia}
BuildRequires:  cargo-rpm-macros >= 24
%endif

Requires:       android-tools

%description
Cross-platform GUI written in Rust using ADB to debloat non-rooted Android devices


%prep
%setup -q -n %{full_name}-%{version} -a 1
%__rm .cargo/config


%build
%{cargo_build} --no-default-features --features wgpu,no-self-update


%check
%{cargo_test}


%install
%{cargo_install}


%files
%license LICENSE
%{_bindir}/%{name}


%changelog
openSUSE Build Service is sponsored by