From 71c43c483689858255bf1f6920491941d0f40c19 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Tue, 4 Mar 2025 00:45:53 -0800 Subject: [PATCH] UX (pokeget-rs): Make both names executable (#3722) (#3747) * UX: Make both names executable Signed-off-by: Gilver * Oops Signed-off-by: Gilver --------- Signed-off-by: Gilver (cherry picked from commit e0d648389d854daf10de6100ff005f0d9384bf4a) Co-authored-by: Gilver --- anda/misc/pokeget-rs/pokeget-rs.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/anda/misc/pokeget-rs/pokeget-rs.spec b/anda/misc/pokeget-rs/pokeget-rs.spec index cde6f4768d..9902d125b1 100644 --- a/anda/misc/pokeget-rs/pokeget-rs.spec +++ b/anda/misc/pokeget-rs/pokeget-rs.spec @@ -2,10 +2,11 @@ %global pcommit c5aaa610ff2acdf7fd8e2dccd181bca8be9fcb3e %global pshortcommit %(c=%{pcommit}; echo ${c:0:7}) %global pcommit_date 20220622 +%global shortname pokeget -Name: pokeget-rs +Name: %{shortname}-rs Version: 1.6.3 -Release: 1%{?dist} +Release: 2%{?dist} SourceLicense: MIT License: MIT AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (MIT OR Apache-2.0 OR Zlib) AND (MIT OR Apache-2.0) AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT) Summary: A better Rust version of pokeget. @@ -34,13 +35,15 @@ popd %cargo_build %install -install -Dpm755 target/rpm/pokeget %{buildroot}%{_bindir}/%{name} +install -Dpm755 target/rpm/%{shortname} -t %{buildroot}%{_bindir} +ln -sf %{shortname} %{buildroot}%{_bindir}/%{name} %{cargo_license_online} > LICENSE.dependencies %files %license LICENSE LICENSE.dependencies data/%{pname}/license.md %doc README.md %{_bindir}/%{name} +%{_bindir}/%{shortname} %changelog * Sat Mar 01 2025 Gilver E.