From ff2b589accc661f8ec9cb40c3b6c542e2171bf7e Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Thu, 1 Jan 2026 10:46:49 -0800 Subject: [PATCH] feat(tauri): Shell completions (#8808) (#8813) --- anda/tools/tauri/tauri.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/anda/tools/tauri/tauri.spec b/anda/tools/tauri/tauri.spec index a7155f8434..17aa7d1029 100644 --- a/anda/tools/tauri/tauri.spec +++ b/anda/tools/tauri/tauri.spec @@ -3,7 +3,7 @@ Name: rust-tauri Version: 2.9.6 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Command line interface for building Tauri apps License: Apache-2.0 OR MIT URL: https://crates.io/crates/create-tauri-app @@ -24,6 +24,8 @@ License: ((Apache-2.0 OR MIT) AND BSD-3-Clause) AND ((MIT OR Apache-2.0) A %description -n tauri Build smaller, faster, and more secure desktop and mobile applications with a web frontend. +%pkg_completion -n tauri -fz + %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep_online @@ -34,6 +36,11 @@ Build smaller, faster, and more secure desktop and mobile applications with a we %install install -Dpm755 target/rpm/cargo-tauri %{buildroot}%{_bindir}/tauri %{cargo_license_online} > LICENSE.dependencies +mkdir -p %{buildroot}{%{bash_completions_dir},%{fish_completions_dir},%{zsh_completions_dir}} + +#target/rpm/cargo-tauri completions --shell bash --output %{buildroot}%{bash_completions_dir}/tauri || : +target/rpm/cargo-tauri completions --shell fish --output %{buildroot}%{fish_completions_dir}/tauri.fish +target/rpm/cargo-tauri completions --shell zsh --output %{buildroot}%{zsh_completions_dir}/_tauri %files -n tauri %license LICENSE_APACHE-2.0 @@ -43,5 +50,7 @@ install -Dpm755 target/rpm/cargo-tauri %{buildroot}%{_bindir}/tauri %{_bindir}/tauri %changelog +* Thu Jan 1 2026 - 4.6.2-3 +- Added shell completion subpackages * Thu Dec 25 2025 Gilver E. - 4.6.2-1 - Initial package