%define _debugsource_template %{nil} %define debug_package %{nil} Name: uad-ng Version: 1.2.0 Release: 3%{?dist} Summary: Cross-platform tool using ADB to debloat non-rooted Android devices License: GPL-3.0-or-later URL: https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: cargo BuildRequires: rust >= 1.85 BuildRequires: gcc BuildRequires: desktop-file-utils BuildRequires: pkgconfig BuildRequires: fontconfig-devel BuildRequires: freetype-devel BuildRequires: libxkbcommon-devel BuildRequires: wayland-devel Requires: android-tools Requires: hicolor-icon-theme Provides: universal-android-debloater-next-generation = %{version}-%{release} Provides: universal-android-debloater = %{version}-%{release} %description Cross-platform GUI tool written in Rust using ADB to debloat non-rooted Android devices. It aims to improve battery life and enhance privacy by removing unnecessary and unwanted carrier and OEM pre-installed system apps. %prep %autosetup -n universal-android-debloater-next-generation-%{version} rm -f rust-toolchain.toml %build export CARGO_HOME=$PWD/.cargo-home export RUSTFLAGS="%{?build_rustflags}" cargo build --release --no-default-features --features wgpu,no-self-update %install install -Dpm 0755 target/release/uad-ng %{buildroot}%{_bindir}/uad-ng install -d %{buildroot}%{_datadir}/applications cat < %{buildroot}%{_datadir}/applications/uad-ng.desktop [Desktop Entry] Type=Application Name=Universal Android Debloater Comment=Debloat non-rooted Android devices with ADB Exec=uad-ng Icon=uad-ng Terminal=false Categories=Development;Utility; Keywords=android;debloater;adb;uad; EOF install -Dpm 0644 resources/assets/logo-dark.png %{buildroot}%{_datadir}/pixmaps/uad-ng.png install -Dpm 0644 resources/assets/logo-dark.png %{buildroot}%{_datadir}/icons/hicolor/512x512/apps/uad-ng.png %check desktop-file-validate %{buildroot}%{_datadir}/applications/uad-ng.desktop %files %license LICENSE %doc README.md %{_bindir}/uad-ng %{_datadir}/applications/uad-ng.desktop %{_datadir}/pixmaps/uad-ng.png %{_datadir}/icons/hicolor/512x512/apps/uad-ng.png %changelog * Wed Aug 19 2026 sachesi - 1.2.0-3 - Fix license file name (LICENSE.md -> LICENSE). * Wed Aug 19 2026 sachesi - 1.2.0-2 - Fix cargo build flags for single crate v1.2.0 release. * Wed Aug 19 2026 sachesi - 1.2.0-1 - Initial package for Copr.