mirror of
https://abf.rosa.ru/djam/asusctl.git
synced 2025-02-23 16:52:57 +00:00
6.0.12
This commit is contained in:
parent
af5845214b
commit
873d207d1a
1 changed files with 23 additions and 8 deletions
31
asusctl.spec
31
asusctl.spec
|
@ -6,6 +6,7 @@
|
||||||
%global rustflags -Clink-arg=-Wl,-z,relro,-z,now
|
%global rustflags -Clink-arg=-Wl,-z,relro,-z,now
|
||||||
|
|
||||||
%define vendor_id 386fd37e8a3185dba7ec57dacdb025fc
|
%define vendor_id 386fd37e8a3185dba7ec57dacdb025fc
|
||||||
|
%define rustver 1.83.0
|
||||||
|
|
||||||
Summary: Control fan speeds, LEDs, graphics modes, and charge levels for ASUS notebooks
|
Summary: Control fan speeds, LEDs, graphics modes, and charge levels for ASUS notebooks
|
||||||
Name: asusctl
|
Name: asusctl
|
||||||
|
@ -20,12 +21,11 @@ Source1: https://gitlab.com/-/project/20328305/uploads/%{vendor_id}/vendo
|
||||||
Source2: cargo_config
|
Source2: cargo_config
|
||||||
Source1000: %{name}.rpmlintrc
|
Source1000: %{name}.rpmlintrc
|
||||||
Patch0: %{name}-makefile.patch
|
Patch0: %{name}-makefile.patch
|
||||||
BuildRequires: cargo
|
%if %{mdvver} > 201610
|
||||||
#BuildRequires: rust-packaging
|
|
||||||
BuildRequires: clang-devel
|
|
||||||
BuildRequires: cmake
|
|
||||||
BuildRequires: rust
|
BuildRequires: rust
|
||||||
BuildRequires: rust-std-static
|
BuildRequires: cargo
|
||||||
|
%endif
|
||||||
|
BuildRequires: cmake
|
||||||
BuildRequires: pkgconfig(dbus-1)
|
BuildRequires: pkgconfig(dbus-1)
|
||||||
BuildRequires: pkgconfig(libudev)
|
BuildRequires: pkgconfig(libudev)
|
||||||
BuildRequires: pkgconfig(gtk+-3.0)
|
BuildRequires: pkgconfig(gtk+-3.0)
|
||||||
|
@ -33,6 +33,8 @@ BuildRequires: pkgconfig(gdk-3.0)
|
||||||
BuildRequires: pkgconfig(systemd)
|
BuildRequires: pkgconfig(systemd)
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
BuildRequires: imagemagick
|
BuildRequires: imagemagick
|
||||||
|
BuildRequires: curl
|
||||||
|
BuildRequires: git-core
|
||||||
Requires: %{_lib}appindicator3-gir0.1
|
Requires: %{_lib}appindicator3-gir0.1
|
||||||
Recommends: power-profiles-daemon
|
Recommends: power-profiles-daemon
|
||||||
|
|
||||||
|
@ -91,7 +93,7 @@ a notification service, and ability to run in the background.
|
||||||
%setup -q
|
%setup -q
|
||||||
#setup -D -T -a 1
|
#setup -D -T -a 1
|
||||||
|
|
||||||
%patch0 -p1
|
#patch0 -p1
|
||||||
|
|
||||||
#mv Cargo.lock{,.bak}
|
#mv Cargo.lock{,.bak}
|
||||||
#cargo_prep
|
#cargo_prep
|
||||||
|
@ -99,16 +101,29 @@ a notification service, and ability to run in the background.
|
||||||
#sed -i 's|replace-with = "local-registry"|replace-with = "vendored-sources"|' .cargo/config
|
#sed -i 's|replace-with = "local-registry"|replace-with = "vendored-sources"|' .cargo/config
|
||||||
#cat %{SOURCE2} >> .cargo/config
|
#cat %{SOURCE2} >> .cargo/config
|
||||||
|
|
||||||
|
%if %{mdvver} <= 201610
|
||||||
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs |\
|
||||||
|
sh -s -- -y --profile default --default-toolchain %{rustver}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export RUSTFLAGS="%{rustflags}"
|
#export RUSTFLAGS="%{rustflags}"
|
||||||
#cargo_build
|
#cargo_build
|
||||||
|
|
||||||
|
%if %{mdvver} <= 201610
|
||||||
|
source "$HOME/.cargo/env"
|
||||||
|
%endif
|
||||||
|
|
||||||
cargo build --release
|
cargo build --release
|
||||||
#--frozen
|
#--frozen
|
||||||
#--offline
|
#--offline
|
||||||
#--config .cargo/config.toml
|
#--config .cargo/config.toml
|
||||||
|
|
||||||
%install
|
%install
|
||||||
export RUSTFLAGS="%{rustflags}"
|
#export RUSTFLAGS="%{rustflags}"
|
||||||
#mkdir -p "%{buildroot}/%{_bindir}" "%{buildroot}%{_docdir}"
|
#mkdir -p "%{buildroot}/%{_bindir}" "%{buildroot}%{_docdir}"
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue