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