mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-01-22 09:23:19 +01:00
Fix: use direct cargo build instead of cargo_build macro
This commit is contained in:
@@ -92,7 +92,7 @@ EOF
|
||||
%build
|
||||
export RUSTFLAGS="%{rustflags}"
|
||||
%if %{defined fedora}
|
||||
%cargo_build --locked
|
||||
/usr/bin/cargo build --release --locked
|
||||
%else
|
||||
/usr/bin/cargo auditable build --release --locked
|
||||
%endif
|
||||
@@ -100,11 +100,7 @@ export RUSTFLAGS="%{rustflags}"
|
||||
%install
|
||||
export RUSTFLAGS="%{rustflags}"
|
||||
|
||||
%if %{defined fedora}
|
||||
%define _target_dir target/rpm
|
||||
%else
|
||||
%define _target_dir target/release
|
||||
%endif
|
||||
|
||||
# Install binaries
|
||||
install -D -m 0755 %{_target_dir}/asusd %{buildroot}%{_bindir}/asusd
|
||||
|
||||
Reference in New Issue
Block a user