backport: 'fix(asusctl): track versions properly' (#7129) (#7131)

(cherry picked from commit d52359328d)

Signed-off-by: Owen-sz <owen@fyralabs.com>
Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
This commit is contained in:
Raboneko
2025-11-04 21:58:08 -08:00
committed by GitHub
parent 61457b0311
commit 3d11c96602
+4 -8
View File
@@ -1,18 +1,14 @@
%global debug_package %{nil}
%global commit c9e76f327376c8bb6ab4e4cc5187954aa8cdc538
%global commit_date 20251020
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: asusctl
Version: %commit_date.%shortcommit
Version: 6.1.16
Release: 1%?dist
Summary: A control daemon, CLI tools, and a collection of crates for interacting with ASUS ROG laptops
URL: https://gitlab.com/asus-linux/asusctl
Source0: %url/-/archive/%commit/asusctl-%commit.tar.gz
Source0: %url/-/archive/%version/asusctl-%version.tar.gz
License: MPL-2.0
Patch0: fix-makefile.patch
BuildRequires: anda-srpm-macros cargo-rpm-macros systemd-rpm-macros mold rust-udev-devel clang-devel
BuildRequires: anda-srpm-macros cargo-rpm-macros systemd-rpm-macros mold rust-udev-devel clang-devel
BuildRequires: desktop-file-utils
BuildRequires: cmake
BuildRequires: rust
@@ -39,7 +35,7 @@ A one-stop-shop GUI tool for asusd/asusctl. It aims to provide most controls,
a notification service, and ability to run in the background.
%prep
%autosetup -p1 -n asusctl-%commit
%autosetup -p1 -n asusctl-%version
%cargo_prep_online
%build